📄 pid_apxcas2x.mdl
字号:
Position [80, 60, 130, 100]
ShowPortLabels on
System {
Name "Mdelay = 0"
Location [417, 229, 768, 467]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In"
Position [235, 133, 265, 147]
Orientation "left"
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Constant
Name "Condition"
Position [20, 85, 130, 115]
Value "Xpdeadx{1,2}<=3*eps"
}
Block {
BlockType Constant
Name "Constant1"
Position [115, 180, 145, 200]
Value "0"
}
Block {
BlockType Constant
Name "Constant2"
Position [155, 50, 185, 70]
Value "0"
}
Block {
BlockType Switch
Name "Switch"
Position [230, 70, 260, 100]
Threshold "1"
}
Block {
BlockType Switch
Name "Switch1"
Position [190, 165, 220, 195]
Threshold "1"
}
Block {
BlockType Outport
Name "Out2"
Position [285, 78, 315, 92]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Block {
BlockType Outport
Name "Out1"
Position [245, 173, 275, 187]
Port "2"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "In"
SrcPort 1
Points [-15, 0]
Branch {
DstBlock "Switch"
DstPort 3
}
Branch {
Points [-40, 0]
DstBlock "Switch1"
DstPort 1
}
}
Line {
SrcBlock "Condition"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 80]
DstBlock "Switch1"
DstPort 2
}
Branch {
Points [0, -15]
DstBlock "Switch"
DstPort 2
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Switch1"
DstPort 3
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [25, 0]
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "Switch1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum6"
Ports [2, 1, 0, 0, 0]
Position [240, 75, 260, 95]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "Out1"
Position [285, 78, 315, 92]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Mdelay = 0"
SrcPort 1
Points [15, 0]
DstBlock "Mdelay\n> 0"
DstPort 1
}
Line {
SrcBlock "Mdelay\n> 0"
SrcPort 1
Points [15, 0]
DstBlock "Sum6"
DstPort 1
}
Line {
SrcBlock "Mdelay = 0"
SrcPort 2
DstBlock "Sum6"
DstPort 2
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Mdelay = 0"
DstPort 1
}
Line {
SrcBlock "Sum6"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1, 0, 0, 0]
Position [275, 75, 295, 95]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [105, 102, 180, 138]
Numerator "XnumPs{1,2}"
Denominator "XdenPs{1,2}"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn1"
Position [105, 25, 180, 65]
Numerator "XnumPs{1,1}"
Denominator "XdenPs{1,1}"
}
Block {
BlockType Outport
Name "Out1"
Position [315, 78, 345, 92]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Transfer Fcn1"
SrcPort 1
DstBlock "Pdelay"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
DstBlock "Pdelay1"
DstPort 1
}
Line {
SrcBlock "Pdelay"
SrcPort 1
DstBlock "Sum5"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Transfer Fcn1"
DstPort 1
}
Branch {
DstBlock "Transfer Fcn"
DstPort 1
}
}
Line {
SrcBlock "Sum5"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Pdelay1"
SrcPort 1
DstBlock "Sum5"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Multi_tf Process2"
Ports [1, 1, 0, 0, 0]
Position [480, 104, 560, 146]
ShowPortLabels on
System {
Name "Multi_tf Process2"
Location [150, 657, 541, 875]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [25, 68, 55, 82]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType SubSystem
Name "Pdelay"
Ports [1, 1, 0, 0, 0]
Position [195, 27, 245, 63]
ShowPortLabels on
System {
Name "Pdelay"
Location [397, 676, 760, 819]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [25, 73, 55, 87]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType TransportDelay
Name "Mdelay\n> 0"
Position [165, 25, 205, 55]
DelayTime "Xpdeadx{2,1}"
InitialInput "0"
BufferSize "1024"
}
Block {
BlockType SubSystem
Name "Mdelay = 0"
Description "pass input signal through out1 if condi"
"tion is true."
Ports [1, 2, 0, 0, 0]
Position [80, 60, 130, 100]
ShowPortLabels on
System {
Name "Mdelay = 0"
Location [417, 229, 768, 467]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In"
Position [235, 133, 265, 147]
Orientation "left"
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Constant
Name "Condition"
Position [20, 85, 130, 115]
Value "Xpdeadx{2,1}<=3*eps"
}
Block {
BlockType Constant
Name "Constant1"
Position [115, 180, 145, 200]
Value "0"
}
Block {
BlockType Constant
Name "Constant2"
Position [155, 50, 185, 70]
Value "0"
}
Block {
BlockType Switch
Name "Switch"
Position [230, 70, 260, 100]
Threshold "1"
}
Block {
BlockType Switch
Name "Switch1"
Position [190, 165, 220, 195]
Threshold "1"
}
Block {
BlockType Outport
Name "Out2"
Position [285, 78, 315, 92]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Block {
BlockType Outport
Name "Out1"
Position [245, 173, 275, 187]
Port "2"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "In"
SrcPort 1
Points [-15, 0]
Branch {
DstBlock "Switch"
DstPort 3
}
Branch {
Points [-40, 0]
DstBlock "Switch1"
DstPort 1
}
}
Line {
SrcBlock "Condition"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 80]
DstBlock "Switch1"
DstPort 2
}
Branch {
Points [0, -15]
DstBlock "Switch"
DstPort 2
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Switch1"
DstPort 3
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [25, 0]
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "Switch1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum6"
Ports [2, 1, 0, 0, 0]
Position [240, 75, 260, 95]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "Out1"
Position [285, 78, 315, 92]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Mdelay = 0"
SrcPort 1
Points [15, 0]
DstBlock "Mdelay\n> 0"
DstPort 1
}
Line {
SrcBlock "Mdelay\n> 0"
SrcPort 1
Points [15, 0]
DstBlock "Sum6"
DstPort 1
}
Line {
SrcBlock "Mdelay = 0"
SrcPort 2
DstBlock "Sum6"
DstPort 2
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Mdelay = 0"
DstPort 1
}
Line {
SrcBlock "Sum6"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Pdelay1"
Ports [1, 1, 0, 0, 0]
Position [195, 102, 245, 138]
ShowPortLabels on
System {
Name "Pdelay1"
Location [397, 676, 760, 819]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [25, 73, 55, 87]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType TransportDelay
Name "Mdelay\n> 0"
Position [165, 25, 205, 55]
DelayTime "Xpdeadx{2,2}"
InitialInput "0"
BufferSize "1024"
}
Block {
BlockType SubSystem
Name "Mdelay = 0"
Description "pass input signal through out1 if condi"
"tion is true."
Ports [1, 2, 0, 0, 0]
Position [80, 60, 130, 100]
ShowPortLabels on
System {
Name "Mdelay = 0"
Location [421, 233, 772, 471]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In"
Position [235, 133, 265, 147]
Orientation "left"
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Constant
Name "Condition"
Position [20, 85, 130, 115]
Value "Xpdeadx{2,2}<=3*eps"
}
Block {
BlockType Constant
Name "Constant1"
Position [115, 180, 145, 200]
Value "0"
}
Block {
BlockType Constant
Name "Constant2"
Position [155, 50, 185, 70]
Value "0"
}
Block {
BlockType Switch
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -