📄 chap7_10sim.mdl
字号:
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [645, 182, 715, 218]
FunctionName "chap7_10inner"
}
Block {
BlockType "S-Function"
Name "S-Function1"
Ports [1, 1]
Position [330, 168, 390, 202]
FunctionName "chap7_10out"
}
Block {
BlockType "S-Function"
Name "S-Function2"
Ports [1, 1]
Position [765, 184, 845, 216]
FunctionName "chap7_10plant"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [45, 125, 75, 155]
SineType "Time based"
Phase "pi/2"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave1"
Position [40, 215, 70, 245]
SineType "Time based"
Phase "pi/2"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [130, 175, 150, 195]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [265, 110, 285, 130]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [415, 175, 435, 195]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [555, 125, 575, 145]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [155, 378, 185, 402]
VariableName "t"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [970, 84, 1000, 106]
VariableName "y1"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [975, 214, 1005, 236]
VariableName "y2"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace3"
Position [755, 119, 785, 141]
VariableName "tol"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Line {
SrcBlock "S-Function2"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Integrator2"
DstPort 1
}
Branch {
Points [0, 135; -120, 0]
Branch {
Points [0, 0]
DstBlock "Mux6"
DstPort 3
}
Branch {
Points [-125, 0]
Branch {
Points [0, -115]
DstBlock "Mux5"
DstPort 3
}
Branch {
Points [-180, 0]
DstBlock "Sum2"
DstPort 2
}
}
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, -100; 835, 0]
DstBlock "Mux2"
DstPort 1
}
}
Line {
SrcBlock "Integrator2"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Demux"
DstPort 1
}
Branch {
Points [0, 170; -165, 0]
Branch {
Points [-115, 0]
Branch {
Points [-470, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Mux5"
DstPort 2
}
}
Branch {
Points [0, -170]
DstBlock "Mux6"
DstPort 2
}
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Integrator"
DstPort 1
}
Branch {
Points [115, 0]
DstBlock "Sum1"
DstPort 2
}
Branch {
DstBlock "Mux3"
DstPort 2
}
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock " "
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Mux3"
DstPort 1
}
Line {
SrcBlock "Derivative"
SrcPort 1
DstBlock "Mux3"
DstPort 3
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "S-Function1"
DstPort 1
}
Line {
SrcBlock "S-Function1"
SrcPort 1
Points [10, 0; 15, 0]
Branch {
Points [-20, 0; 0, 40]
DstBlock "Derivative1"
DstPort 1
}
Branch {
DstBlock "Sum2"
DstPort 1
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -50]
DstBlock "Integrator1"
DstPort 1
}
Branch {
Points [120, 0]
DstBlock "Sum3"
DstPort 2
}
Branch {
Points [0, 20; 130, 0]
DstBlock "Mux1"
DstPort 2
}
}
Line {
SrcBlock "Integrator1"
SrcPort 1
DstBlock "K2"
DstPort 1
}
Line {
SrcBlock "K2"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Derivative1"
SrcPort 1
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Derivative"
DstPort 1
}
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, 120; 845, 0; 0, -135]
DstBlock "Mux4"
DstPort 1
}
Branch {
DstBlock "Mux"
DstPort 2
}
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "To Workspace1"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "To Workspace2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Mux4"
DstPort 2
}
Line {
SrcBlock "Mux5"
SrcPort 1
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "Mux6"
SrcPort 1
DstBlock "S-Function2"
DstPort 1
}
Line {
SrcBlock "S-Function"
SrcPort 1
Points [0, -15; 20, 0]
Branch {
DstBlock "Mux6"
DstPort 1
}
Branch {
Points [-20, 0; 0, -55]
DstBlock "To Workspace3"
DstPort 1
}
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Mux1"
SrcPort 1
DstBlock "Mux5"
DstPort 1
}
Annotation {
Position [456, 550]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -