📄 fuzzy_pid.mdl
字号:
Position [150, 285, 180, 315]
IgnoreLimit off
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [220, 216, 225, 254]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [500, 247, 530, 278]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [500, 352, 530, 383]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [495, 122, 525, 153]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Saturate
Name "Saturation"
Position [640, 250, 670, 280]
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [895, 249, 925, 281]
Floating off
Location [5, 45, 1277, 763]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "2"
YMin "0.81"
YMax "1"
DataFormat "StructureWithTime"
MaxDataPoints "5000000"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [469, 35, 501, 65]
Orientation "up"
Floating off
Location [5, 45, 1277, 763]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [314, 40, 346, 70]
Orientation "up"
Floating off
Location [5, 45, 1277, 763]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "1.4e-008"
YMax "2.9e-008"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [394, 40, 426, 70]
Orientation "up"
Floating off
Location [5, 45, 1277, 763]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Step
Name "Step"
Position [25, 210, 55, 240]
Time "0"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [85, 215, 105, 235]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [420, 145, 450, 180]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [425, 312, 455, 348]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [420, 223, 450, 267]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum4"
Ports [3, 1]
Position [570, 206, 605, 324]
ShowName off
Inputs "+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [695, 234, 825, 296]
Numerator "[523500]"
Denominator "[1 87.35 10470 0]"
}
Line {
SrcBlock "Fuzzy Logic \nController"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, -95]
DstBlock "Product2"
DstPort 1
}
Branch {
Points [0, 75]
Branch {
Points [0, 75]
DstBlock "Derivative"
DstPort 1
}
Branch {
DstBlock "Integrator"
DstPort 1
}
}
}
Line {
SrcBlock "Step"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fuzzy Logic \nController"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 200; -745, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Derivative"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -130]
DstBlock "Mux"
DstPort 2
}
Branch {
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [40, 0]
Branch {
Points [15, 0]
DstBlock "Sum1"
DstPort 2
}
Branch {
Points [0, -90; 95, 0]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [25, 0]
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "Constant2"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [20, 0; 0, 30]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [300, 0]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [30, 0]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [5, 0; 0, 85]
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [10, 0]
Branch {
DstBlock "Sum3"
DstPort 1
}
Branch {
Points [0, -150]
DstBlock "Scope2"
DstPort 1
}
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Transfer Fcn"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [10, 0; 0, 60; 10, 0]
Branch {
DstBlock "Sum2"
DstPort 1
}
Branch {
Points [0, -210; 40, 0]
DstBlock "Scope3"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [5, 0; 0, -65]
DstBlock "Sum4"
DstPort 3
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -