📄 chap5_6sim.mdl
字号:
YMax "0.1"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "500000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1, 0, 0, 0, 0]
Position [455, 244, 480, 276]
Floating off
Location [5, 30, 805, 583]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "3"
YMin "-0.1"
YMax "0.1"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "500000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1, 0, 0, 0, 0]
Position [455, 334, 480, 366]
Floating off
Location [5, 30, 805, 583]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "3"
YMin "-0.1"
YMax "0.1"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "500000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [40, 145, 70, 175]
Amplitude "0.10"
Frequency "pi"
Phase "0"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [110, 153, 125, 182]
IconShape "rectangular"
Inputs "-+"
SaturateOnIntegerOverflow on
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [170, 23, 200, 47]
VariableName "t"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace10"
Position [430, 29, 460, 51]
VariableName "u"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace7"
Position [670, 39, 700, 61]
VariableName "y"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace8"
Position [670, 374, 700, 396]
VariableName "g"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace9"
Position [675, 247, 700, 273]
VariableName "f"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "S-Function"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "S-Function1"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 1
Points [60, 0]
Branch {
Points [0, 240; -505, 0; 0, -215]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Mux"
DstPort 2
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0]
Branch {
Points [0, -50]
DstBlock "Mux1"
DstPort 1
}
Branch {
DstBlock "Derivative"
DstPort 1
}
}
Line {
SrcBlock "Derivative"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Demux1"
SrcPort 3
Points [10, 0; 0, 140]
DstBlock "Mux3"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [35, 0; 0, 145]
Branch {
DstBlock "Mux3"
DstPort 2
}
Branch {
Points [0, 25]
DstBlock "Scope5"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [45, 0; 0, 40; 20, 0]
Branch {
DstBlock "Mux2"
DstPort 2
}
Branch {
Points [0, 50]
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [15, 0]
Branch {
Points [15, 0]
Branch {
DstBlock "S-Function1"
DstPort 1
}
Branch {
Points [0, -55; 5, 0]
Branch {
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "To Workspace10"
DstPort 1
}
}
}
Branch {
Points [0, 120; -190, 0; 0, -60]
DstBlock "Mux1"
DstPort 3
}
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "To Workspace7"
DstPort 1
}
}
Line {
SrcBlock "Demux1"
SrcPort 2
Points [30, 0; 0, 35]
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "Mux3"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Scope3"
DstPort 1
}
Branch {
DstBlock "To Workspace8"
DstPort 1
}
}
Line {
SrcBlock "Mux2"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Scope2"
DstPort 1
}
Branch {
DstBlock "To Workspace9"
DstPort 1
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, -85; 505, 0]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -