📄 chap4_6sim.mdl
字号:
MaxRows "500000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1, 0, 0, 0, 0]
Position [510, 372, 540, 398]
Floating off
Location [5, 30, 805, 583]
Open off
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 "Scope6"
Ports [1, 0, 0, 0, 0]
Position [670, 174, 690, 206]
Floating off
Location [5, 30, 797, 566]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "3"
YMin "-0.1"
YMax "1"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "500000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope7"
Ports [1, 0, 0, 0, 0]
Position [670, 389, 690, 421]
Floating off
Location [5, 30, 797, 566]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "3"
YMin "-0.1"
YMax "1"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "500000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [20, 175, 50, 205]
Amplitude "0.1"
Frequency "pi"
Phase "0"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [95, 182, 125, 213]
IconShape "rectangular"
Inputs "-+"
SaturateOnIntegerOverflow on
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [110, 38, 140, 62]
VariableName "t"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace6"
Position [495, 44, 525, 66]
VariableName "u"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace7"
Position [735, 64, 765, 86]
VariableName "y"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace8"
Position [735, 189, 765, 211]
VariableName "f"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace9"
Position [740, 379, 770, 401]
VariableName "g"
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 [65, 0]
Branch {
Points [0, 255; -565, 0; 0, -230]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [0, -35]
DstBlock "Mux"
DstPort 2
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [15, 0]
Branch {
Points [0, -35]
DstBlock "Mux1"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "Derivative"
DstPort 1
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, -95; 565, 0; 0, 35]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Derivative"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [35, 0; 0, 135; 35, 0]
Branch {
Points [0, 40]
DstBlock "Scope5"
DstPort 1
}
Branch {
DstBlock "Mux3"
DstPort 2
}
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [45, 0; 0, 55; 15, 0]
Branch {
DstBlock "Mux2"
DstPort 2
}
Branch {
Points [0, 40]
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "S-Function1"
DstPort 1
}
Branch {
Points [0, -70; 10, 0]
Branch {
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "To Workspace6"
DstPort 1
}
}
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "To Workspace7"
DstPort 1
}
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Scope2"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "To Workspace8"
DstPort 1
}
}
Line {
SrcBlock "Mux3"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Scope3"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "To Workspace9"
DstPort 1
}
}
Line {
SrcBlock "Demux1"
SrcPort 2
Points [35, 0; 0, 50; 40, 0]
Branch {
DstBlock "Mux2"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "Scope6"
DstPort 1
}
}
Line {
SrcBlock "Demux1"
SrcPort 3
Points [10, 0; 0, 130; 25, 0]
Branch {
DstBlock "Mux3"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Scope7"
DstPort 1
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -