📄 bab2.mdl
字号:
Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "AO2" Position [365, 53, 395, 67] Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "Schedule" Position [370, 98, 400, 112] Port "3" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "AI1" SrcPort 1 Points [5, 0; 0, 20] DstBlock "Mux" DstPort 1 } Line { SrcBlock "AI2" SrcPort 1 Points [10, 0] DstBlock "Mux" DstPort 2 } Line { SrcBlock "TrueTime Kernel" SrcPort 2 DstBlock "Terminator2" DstPort 1 } Line { SrcBlock "Ground2" SrcPort 1 Points [15, 0; 0, -35] DstBlock "TrueTime Kernel" DstPort 2 } Line { SrcBlock "AI3" SrcPort 1 Points [10, 0] DstBlock "Mux" DstPort 3 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "TrueTime Kernel" DstPort 1 } Line { SrcBlock "Ground1" SrcPort 1 Points [25, 0] DstBlock "TrueTime Kernel" DstPort 3 } Line { SrcBlock "TrueTime Kernel" SrcPort 4 DstBlock "Terminator1" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 3 Points [5, 0; 0, 5] DstBlock "Schedule" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 1 Points [10, 0; 0, -15] DstBlock "Demux" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 Points [15, 0; 0, 5] DstBlock "AO2" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 Points [15, 0; 0, -10] DstBlock "AO1" DstPort 1 } Line { SrcBlock "AI4" SrcPort 1 Points [10, 0] DstBlock "Mux" DstPort 4 } } } Block { BlockType Display Name "Display" Ports [1] Position [105, 15, 195, 45] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [449, 65, 491, 70] Orientation "up" NamePlacement "alternate" ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [420, 271, 425, 309] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Reference Name "Reference \npositons" Ports [0, 1] Position [35, 110, 65, 140] SourceBlock "simulink3/Sources/Repeating\nSequence" SourceType "Repeating table" rep_seq_t "[0 1 1 5 5 9 9 13 13 17 17 21 21 25] " rep_seq_y "[0 0 5 5 -3 -3 8 8 0 0 2 2 -7 -7]" } Block { BlockType Scope Name "Schedule" Ports [1] Position [290, 156, 320, 184] Floating off Location [43, 103, 1040, 443] Open off NumInputPorts "1" TickLabels "on" ZoomMode "xonly" List { ListType AxesTitles axes1 "%<SignalLabel>" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "25" YMin "0.8" YMax "2.7" SaveToWorkspace off SaveName "ScopeData1" DataFormat "Array" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "phi" Ports [1] Position [455, 275, 485, 305] Floating off Location [132, 118, 576, 462] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%<SignalLabel>" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "25" YMin "-8" YMax "10" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "u" Ports [1] Position [285, 30, 315, 60] Orientation "up" Floating off Location [594, 536, 1038, 880] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%<SignalLabel>" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "25" YMin "-500" YMax "350" SaveToWorkspace off SaveName "ScopeData3" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "x" Ports [1] Position [455, 15, 485, 45] Orientation "up" Floating off Location [595, 116, 1039, 460] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%<SignalLabel>" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "25" YMin "-8" YMax "10" SaveToWorkspace off SaveName "ScopeData2" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Line { SrcBlock "Clock" SrcPort 1 DstBlock "Display" DstPort 1 } Line { SrcBlock "Ball and Beam Process" SrcPort 2 Points [45, 0] Branch { DstBlock "Mux" DstPort 2 } Branch { Points [20, 0; 0, 90; -370, 0; 0, -80] DstBlock "Computer" DstPort 3 } } Line { SrcBlock "Ball and Beam Process" SrcPort 1 Points [90, 0; 0, 140; -240, 0] Branch { Points [-180, 0; 0, -115] DstBlock "Computer" DstPort 2 } Branch { Points [0, 45] DstBlock "Mux1" DstPort 2 } } Line { SrcBlock "Reference \npositons" SrcPort 1 Points [35, 0] Branch { DstBlock "Computer" DstPort 1 } Branch { Points [0, -35; 355, 0] DstBlock "Mux" DstPort 1 } } Line { SrcBlock "Computer" SrcPort 1 Points [45, 0] Branch { DstBlock "u" DstPort 1 } Branch { DstBlock "Ball and Beam Process" DstPort 1 } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "x" DstPort 1 } Line { SrcBlock "Computer" SrcPort 2 Points [10, 0; 0, 50] Branch { Points [-120, 0] DstBlock "Computer" DstPort 4 } Branch { Points [0, 80] DstBlock "Mux1" DstPort 1 } } Line { SrcBlock "Computer" SrcPort 3 DstBlock "Schedule" DstPort 1 } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "phi" DstPort 1 } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -