📄 three.mdl
字号:
Block { BlockType TransferFcn Name "Motor 1" Position [370, 97, 430, 133] Numerator "[5]" Denominator "[1 5 0]" AbsoluteTolerance "auto" Realization "auto" } Block { BlockType TransferFcn Name "Motor 2" Position [370, 152, 430, 188] Numerator "[10]" Denominator "[ 1 10 0]" AbsoluteTolerance "auto" Realization "auto" } Block { BlockType TransferFcn Name "Motor 3" Position [370, 207, 430, 243] Numerator "[15]" Denominator "[1 15 0]" AbsoluteTolerance "auto" Realization "auto" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [195, 320, 200, 360] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux2" Ports [2, 1] Position [305, 345, 310, 385] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux3" Ports [2, 1] Position [430, 370, 435, 410] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType SignalGenerator Name "Reference" Position [20, 130, 50, 160] WaveForm "square" Amplitude "2" Frequency "0.25" Units "Hertz" VectorParams1D on } Block { BlockType Scope Name "Schedule" Ports [1] Position [260, 206, 290, 234] Floating off Location [41, 112, 1043, 466] Open off NumInputPorts "1" TickLabels "on" ZoomMode "xonly" List { ListType AxesTitles axes1 "%<SignalLabel>" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "8" YMin "0.8" YMax "3.7" SaveToWorkspace off SaveName "ScopeData2" DataFormat "Array" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "u1" Ports [1] Position [225, 15, 255, 45] Orientation "up" Floating off Location [118, 109, 562, 453] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%<SignalLabel>" } Grid "on" TimeRange "10" YMin "-20" YMax "20" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "u2" Ports [1] Position [260, 50, 290, 80] Orientation "up" Floating off Location [118, 109, 562, 453] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%<SignalLabel>" } Grid "on" TimeRange "10" YMin "-8" YMax "8" SaveToWorkspace off SaveName "ScopeData3" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "u3" Ports [1] Position [295, 85, 325, 115] Orientation "up" Floating off Location [118, 109, 562, 453] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%<SignalLabel>" } Grid "on" TimeRange "10" YMin "-4" YMax "4" SaveToWorkspace off SaveName "ScopeData4" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "y1" Ports [1] Position [485, 375, 515, 405] Floating off Location [68, 51, 512, 395] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%<SignalLabel>" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "8" YMin "-2.5" YMax "2.5" SaveToWorkspace off SaveName "ScopeData6" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "y2" Ports [1] Position [330, 350, 360, 380] Floating off Location [593, 124, 1037, 468] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%<SignalLabel>" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "8" YMin "-2.5" YMax "2.5" SaveToWorkspace off SaveName "ScopeData5" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "y3" Ports [1] Position [220, 325, 250, 355] Floating off Location [591, 514, 1035, 858] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%<SignalLabel>" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "8" YMin "-2.5" YMax "2.5" SaveToWorkspace off SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Line { SrcBlock "Clock" SrcPort 1 DstBlock "Display" DstPort 1 } Line { SrcBlock "Computer" SrcPort 1 Points [0, 0; 15, 0] Branch { Points [110, 0; 0, -30] DstBlock "Motor 1" DstPort 1 } Branch { DstBlock "u1" DstPort 1 } } Line { SrcBlock "Motor 1" SrcPort 1 Points [75, 0; 0, 200; -105, 0] Branch { Points [-305, 0; 0, -145] DstBlock "Computer" DstPort 2 } Branch { Points [0, 65] DstBlock "Mux3" DstPort 1 } } Line { SrcBlock "Reference" SrcPort 1 Points [20, 0] Branch { DstBlock "Computer" DstPort 1 } Branch { Points [0, 205] Branch { DstBlock "Mux1" DstPort 2 } Branch { Points [0, 25] Branch { DstBlock "Mux2" DstPort 2 } Branch { Points [0, 25] DstBlock "Mux3" DstPort 2 } } } } Line { SrcBlock "Computer" SrcPort 2 Points [0, 0; 50, 0] Branch { DstBlock "Motor 2" DstPort 1 } Branch { DstBlock "u2" DstPort 1 } } Line { SrcBlock "Computer" SrcPort 3 Points [0, 0; 85, 0] Branch { Points [40, 0; 0, 30] DstBlock "Motor 3" DstPort 1 } Branch { DstBlock "u3" DstPort 1 } } Line { SrcBlock "Computer" SrcPort 4 DstBlock "Schedule" DstPort 1 } Line { SrcBlock "Motor 2" SrcPort 1 Points [50, 0; 0, 125; -200, 0] Branch { Points [-175, 0; 0, -100] DstBlock "Computer" DstPort 3 } Branch { Points [0, 60] DstBlock "Mux2" DstPort 1 } } Line { SrcBlock "Motor 3" SrcPort 1 Points [25, 0; 0, 50; -285, 0] Branch { Points [-55, 0; 0, -55] DstBlock "Computer" DstPort 4 } Branch { Points [0, 55] DstBlock "Mux1" DstPort 1 } } Line { SrcBlock "Mux3" SrcPort 1 DstBlock "y1" DstPort 1 } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "y3" DstPort 1 } Line { SrcBlock "Mux2" SrcPort 1 DstBlock "y2" DstPort 1 } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -