📄 chap4_3sim.mdl
字号:
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope6"
Ports [1, 0, 0, 0, 0]
Position [185, 193, 210, 217]
Floating off
Location [5, 30, 805, 583]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "1.2"
YMin "0.156"
YMax "0.165"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "50000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope7"
Ports [1, 0, 0, 0, 0]
Position [280, 213, 305, 237]
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.005"
YMax "0.065"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "50000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope8"
Ports [1, 0, 0, 0, 0]
Position [740, 44, 770, 76]
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 "1.475e-005"
YMax "2.025e-005"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "50000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope9"
Ports [1, 0, 0, 0, 0]
Position [430, 368, 455, 392]
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 "-50"
YMax "45"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "50000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave1"
Position [15, 135, 45, 165]
Amplitude "1"
Frequency "1*2*pi"
Phase "0"
SampleTime "0"
}
Block {
BlockType Step
Name "Step"
Position [15, 65, 45, 95]
Time "0"
Before "0"
After "1"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [145, 112, 175, 143]
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1, 0, 0, 0]
Position [680, 42, 710, 73]
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [110, 13, 140, 37]
VariableName "t"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace5"
Position [740, 379, 770, 401]
VariableName "E"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace6"
Position [535, 54, 565, 76]
VariableName "u"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace7"
Position [740, 184, 770, 206]
VariableName "y"
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 "Demux"
SrcPort 2
Points [15, 0; 0, 60]
Branch {
DstBlock "Derivative1"
DstPort 1
}
Branch {
Points [-35, 0; 0, 30]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
DstBlock "Scope10"
DstPort 1
}
}
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [30, 0]
Branch {
Points [0, 0]
Branch {
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [0, -30]
DstBlock "To Workspace6"
DstPort 1
}
}
Branch {
Points [0, 60]
DstBlock "S-Function1"
DstPort 1
}
}
Line {
SrcBlock "S-Function1"
SrcPort 1
DstBlock "Demux2"
DstPort 1
}
Line {
SrcBlock "Derivative"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -45]
DstBlock "Mux1"
DstPort 1
}
Branch {
DstBlock "Derivative"
DstPort 1
}
}
Line {
SrcBlock "Demux2"
SrcPort 1
Points [10, 0]
Branch {
Points [10, 0]
Branch {
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, 275; -565, 0; 0, -280]
DstBlock "Sum"
DstPort 2
}
}
Branch {
Points [0, -75]
DstBlock "Sum1"
DstPort 2
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Scope8"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 2
Points [10, 0; 0, 40; 40, 0]
Branch {
Labels [1, 0]
DstBlock "Scope5"
DstPort 1
}
Branch {
Points [-15, 0; 0, 110]
DstBlock "Mux3"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [40, 0; 0, 70; 50, 0]
Branch {
DstBlock "Scope3"
DstPort 1
}
Branch {
Points [0, 110]
DstBlock "Mux3"
DstPort 2
}
}
Line {
SrcBlock "S-Function2"
SrcPort 1
Points [-20, 0; 0, -90]
Branch {
Points [0, -35]
DstBlock "Scope7"
DstPort 1
}
Branch {
DstBlock "Integrator"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [-10, 0; 0, -55]
Branch {
Points [0, -30]
DstBlock "Mux1"
DstPort 3
}
Branch {
DstBlock "Scope6"
DstPort 1
}
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Mux3"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "E , Ep"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "To Workspace5"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "To Workspace7"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [0, 70; -20, 0]
Branch {
DstBlock "S-Function2"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Scope9"
DstPort 1
}
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "Derivative1"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Points [20, 0; 0, 5]
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "Step"
SrcPort 1
DstBlock "Manual Switch"
DstPort 1
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
Points [5, 0; 0, -55]
DstBlock "Manual Switch"
DstPort 2
}
Line {
SrcBlock "Manual Switch"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [35, 0; 0, -80; 465, 0; 0, 40; 20, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Mux"
DstPort 1
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -