📄 untitled.mdl
字号:
}
Branch {
Points [0, 50]
DstBlock "Gain2"
DstPort 1
}
}
}
}
Branch {
Points [0, 5]
DstBlock "Gain8"
DstPort 1
}
}
Branch {
DstBlock "Gain7"
DstPort 1
}
}
Branch {
Points [0, -25]
Branch {
Points [0, -45]
Branch {
Points [0, -45]
DstBlock "MATLAB Fcn"
DstPort 1
}
Branch {
DstBlock "Gain5"
DstPort 1
}
}
Branch {
DstBlock "Gain6"
DstPort 1
}
}
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
Points [45, 0; 0, 20]
DstBlock "Multiport\nSwitch"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Derivatve3"
DstPort 1
}
Line {
SrcBlock "Derivatve3"
SrcPort 1
Points [40, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [30, 0; 0, 15]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [25, 0]
DstBlock "Multiport\nSwitch"
DstPort 6
}
}
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [455, 135, 515, 165]
MATLABFcn "time"
OutputDimensions "1"
OutputSignalType "real"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn1"
Position [645, 135, 705, 165]
MATLABFcn "time"
OutputDimensions "1"
OutputSignalType "real"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn2"
Position [455, 375, 515, 405]
MATLABFcn "time"
OutputDimensions "1"
OutputSignalType "real"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn3"
Position [645, 375, 705, 405]
MATLABFcn "time"
OutputDimensions "1"
OutputSignalType "real"
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch"
Ports [3, 1]
Position [555, 121, 600, 299]
Inputs "2"
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch1"
Ports [3, 1]
Position [555, 361, 600, 539]
Inputs "2"
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch2"
Ports [3, 1]
Position [720, 121, 765, 299]
Inputs "2"
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch3"
Ports [3, 1]
Position [720, 361, 765, 539]
Inputs "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [820, 321, 825, 359]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "PID controller"
Ports [1, 1]
Position [295, 190, 375, 230]
TreatAsAtomicUnit off
System {
Name "PID controller"
Location [97, 90, 412, 252]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 68, 55, 82]
}
Block {
BlockType Derivative
Name "Derivative"
Position [140, 105, 170, 135]
}
Block {
BlockType Gain
Name "Gain"
Position [95, 25, 125, 55]
Gain "15"
}
Block {
BlockType Gain
Name "Gain1"
Position [95, 60, 125, 90]
Gain "150"
}
Block {
BlockType Gain
Name "Gain2"
Position [90, 105, 120, 135]
Gain "2"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [140, 60, 170, 90]
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [215, 60, 235, 80]
ShowName off
IconShape "round"
Inputs "|+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "Out1"
Position [260, 63, 290, 77]
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Derivative"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [74, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [15, 0; 0, 7]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Derivative"
SrcPort 1
Points [50, 0]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Gain2"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Gain"
DstPort 1
}
Branch {
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [870, 324, 900, 356]
Location [5, 60, 1277, 765]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "10"
DataFormat "StructureWithTime"
}
Block {
BlockType Step
Name "Step"
Position [200, 335, 230, 365]
Time "0"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [250, 200, 270, 220]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [260, 440, 280, 460]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [835, 195, 895, 225]
VariableName "y"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [825, 435, 885, 465]
VariableName "y1"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [455, 192, 515, 228]
Numerator "[6]"
Denominator "[1 63]"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn1"
Position [635, 192, 695, 228]
Numerator "[15 126*15]"
Denominator "[1 71.6 3.6*68]"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn4"
Position [455, 252, 515, 288]
Numerator "[12]"
Denominator "[1 63]"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn5"
Position [635, 252, 695, 288]
Numerator "[ 50126*50]"
Denominator "[1 71.6 3.6*68]"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn6"
Position [455, 432, 515, 468]
Numerator "[6]"
Denominator "[1 63]"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn7"
Position [635, 432, 695, 468]
Numerator "[15 126*15]"
Denominator "[1 71.6 3.6*68]"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn8"
Position [455, 492, 515, 528]
Numerator "[12]"
Denominator "[1 63]"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn9"
Position [635, 492, 695, 528]
Numerator "[50 126*50]"
Denominator "[1 71.6 3.6*68]"
}
Line {
SrcBlock "PID controller"
SrcPort 1
Points [45, 0]
Branch {
DstBlock "Transfer Fcn"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "Transfer Fcn4"
DstPort 1
}
}
Line {
SrcBlock "Step"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Points [0, 100]
DstBlock "Sum2"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [-95, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Gain11"
SrcPort 1
Points [-80, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "PID controller"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
DstBlock "Multiport\nSwitch"
DstPort 2
}
Line {
SrcBlock "Transfer Fcn4"
SrcPort 1
DstBlock "Multiport\nSwitch"
DstPort 3
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
DstBlock "Multiport\nSwitch"
DstPort 1
}
Line {
SrcBlock "Multiport\nSwitch"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Transfer Fcn1"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "Transfer Fcn5"
DstPort 1
}
}
Line {
SrcBlock "Transfer Fcn1"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 2
}
Line {
SrcBlock "Transfer Fcn5"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 3
}
Line {
SrcBlock "Multiport\nSwitch2"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "To Workspace1"
DstPort 1
}
Branch {
Points [0, 120]
Branch {
DstBlock "Gain3"
DstPort 1
}
Branch {
DstBlock "Mux"
DstPort 1
}
}
}
Line {
SrcBlock "MATLAB Fcn1"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "MATLAB Fcn"
DstPort 1
}
Branch {
Points [0, -45; 195, 0]
DstBlock "MATLAB Fcn1"
DstPort 1
}
}
Line {
SrcBlock "Transfer Fcn6"
SrcPort 1
DstBlock "Multiport\nSwitch1"
DstPort 2
}
Line {
SrcBlock "Transfer Fcn8"
SrcPort 1
DstBlock "Multiport\nSwitch1"
DstPort 3
}
Line {
SrcBlock "MATLAB Fcn2"
SrcPort 1
DstBlock "Multiport\nSwitch1"
DstPort 1
}
Line {
SrcBlock "Multiport\nSwitch1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, 60]
DstBlock "Transfer Fcn9"
DstPort 1
}
Branch {
DstBlock "Transfer Fcn7"
DstPort 1
}
}
Line {
SrcBlock "Transfer Fcn7"
SrcPort 1
DstBlock "Multiport\nSwitch3"
DstPort 2
}
Line {
SrcBlock "Transfer Fcn9"
SrcPort 1
DstBlock "Multiport\nSwitch3"
DstPort 3
}
Line {
SrcBlock "MATLAB Fcn3"
SrcPort 1
DstBlock "Multiport\nSwitch3"
DstPort 1
}
Line {
SrcBlock "Clock1"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, -45; 195, 0]
DstBlock "MATLAB Fcn3"
DstPort 1
}
Branch {
DstBlock "MATLAB Fcn2"
DstPort 1
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "HISC controller"
DstPort 1
}
Line {
SrcBlock "HISC controller"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Transfer Fcn6"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "Transfer Fcn8"
DstPort 1
}
}
Line {
SrcBlock "Multiport\nSwitch3"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "To Workspace2"
DstPort 1
}
Branch {
Points [0, 125]
DstBlock "Gain11"
DstPort 1
}
Branch {
Points [0, -100]
DstBlock "Mux"
DstPort 2
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -