📄 two.mdl
字号:
Position [85, 105, 115, 135]
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Integrator
Name "Integrator2"
Ports [1, 1]
Position [80, 185, 110, 215]
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [325, 97, 355, 128]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [325, 177, 355, 208]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [325, 247, 355, 278]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "kd"
Position [175, 230, 205, 260]
Value "0.4"
}
Block {
BlockType Constant
Name "ki"
Position [170, 160, 200, 190]
Value "1.2"
}
Block {
BlockType Constant
Name "kp"
Position [170, 80, 200, 110]
Value "1.2"
}
Block {
BlockType Outport
Name "Out1"
Position [510, 188, 540, 202]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "kp"
SrcPort 1
DstBlock "Add2"
DstPort 2
}
Line {
SrcBlock "Add2"
SrcPort 1
Points [0, 15]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [25, 0; 0, 70]
DstBlock "Add5"
DstPort 1
}
Line {
SrcBlock "ki"
SrcPort 1
Points [40, 0]
DstBlock "Add3"
DstPort 2
}
Line {
SrcBlock "Add3"
SrcPort 1
Points [15, 0]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Add5"
DstPort 2
}
Line {
SrcBlock "Add4"
SrcPort 1
Points [5, 0; 0, 15]
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [25, 0; 0, -60]
DstBlock "Add5"
DstPort 3
}
Line {
SrcBlock "kd"
SrcPort 1
DstBlock "Add4"
DstPort 2
}
Line {
SrcBlock "Derivative"
SrcPort 1
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "kp1"
SrcPort 1
Points [40, 0]
DstBlock "Add2"
DstPort 1
}
Line {
SrcBlock "e"
SrcPort 1
Points [10, 0; 0, -80]
Branch {
DstBlock "Gain2"
DstPort 1
}
Branch {
Points [0, 75]
Branch {
Points [0, 75]
DstBlock "Derivative"
DstPort 1
}
Branch {
Points [0, 5]
DstBlock "Integrator2"
DstPort 1
}
}
}
Line {
SrcBlock "Add5"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "ki1"
SrcPort 1
Points [0, 20]
DstBlock "Add3"
DstPort 1
}
Line {
SrcBlock "kd1"
SrcPort 1
Points [35, 0]
DstBlock "Add4"
DstPort 1
}
Line {
SrcBlock "Integrator2"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "engine"
Ports [2, 1]
Position [330, 123, 375, 192]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "engine"
Location [606, 296, 976, 427]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "w"
Position [25, 33, 55, 47]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "throttle"
Position [25, 58, 55, 72]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [255, 40, 345, 70]
Decimation "1"
}
Block {
BlockType Lookup2D
Name "Lookup\nTable (2-D)"
Position [80, 28, 135, 77]
DialogController "Simulink.DDGSource"
RowIndex "[1000 1500 2000 2500 3000 3500 4000 4500 50"
"00 ]"
ColumnIndex "[5 10 15 20 30 40 50 60 70 80 90 100]"
OutputValues "[18 9.8 2 0 0 0 0 0 0;42.5 25.2 15.1 7.1 1 "
"0 0 0 0;56 45 33 23 15 4 0 0 0;62 58 48 40 31 20 12 4.5 0;66 70 69 64 58 50 4"
"4 36 30 ;66 73 74 72 68 65 61 56 51 ;66 73 76 76 73 71 68 65 60 ;66 74 77 77 "
"75 74 72 69 65 ; 66 74 77 78 76 75 73 71 67 ;66 74 77.5 78.5 77.5 76.5 74 71"
".5 68;68 74 78 80 79 78 76 72 68;68 75 78 80 80 79 76 73 70]'"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [165, 37, 225, 73]
Denominator "[0.08 1]"
}
Block {
BlockType Outport
Name "Te"
Position [255, 93, 285, 107]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Lookup\nTable (2-D)"
SrcPort 1
DstBlock "Transfer Fcn"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Display"
DstPort 1
}
Branch {
DstBlock "Te"
DstPort 1
}
}
Line {
SrcBlock "w"
SrcPort 1
DstBlock "Lookup\nTable (2-D)"
DstPort 1
}
Line {
SrcBlock "throttle"
SrcPort 1
DstBlock "Lookup\nTable (2-D)"
DstPort 2
}
}
}
Line {
SrcBlock "engine"
SrcPort 1
Points [0, 10]
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock "Saturation2"
DstPort 1
}
Line {
SrcBlock "Saturation2"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Lookup Table"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Scope2"
DstPort 1
}
}
Line {
SrcBlock "Lookup Table"
SrcPort 1
Points [0, -50]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
SrcBlock "Integrator1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [0, -70; -475, 0]
DstBlock "engine"
DstPort 1
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [10, 0; 0, 10]
Branch {
Points [15, 0]
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, 145; -745, 0]
DstBlock "Add1"
DstPort 2
}
}
Line {
SrcBlock "Add1"
SrcPort 1
Points [5, 0]
Branch {
Points [90, 0]
DstBlock "continue2"
DstPort 2
}
Branch {
Points [0, 110; -45, 0; 0, 85]
Branch {
DstBlock "Derivative"
DstPort 1
}
Branch {
DstBlock "Abs1"
DstPort 1
}
}
}
Line {
SrcBlock "continue2"
SrcPort 1
Points [0, -20; 10, 0]
Branch {
DstBlock "Saturation3"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Saturation3"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Step"
SrcPort 1
Points [30, 0; 0, 60]
DstBlock "engine"
DstPort 2
}
Line {
SrcBlock "Step1"
SrcPort 1
DstBlock "Add1"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fuzzy Logic \nController"
DstPort 1
}
Line {
SrcBlock "Abs1"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "Derivative"
SrcPort 1
DstBlock "Abs2"
DstPort 1
}
Line {
SrcBlock "Abs2"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Fuzzy Logic \nController"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [0, -95; -165, 0; 0, -120]
DstBlock "continue2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [10, 0; 0, -130; -150, 0]
DstBlock "continue2"
DstPort 3
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [25, 0; 0, -100; -175, 0; 0, -90]
DstBlock "continue2"
DstPort 4
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -