📄 singleloop1.mdl
字号:
Ports [1, 1]
Position [200, 350, 230, 380]
BackgroundColor "green"
FontSize 14
SourceBlock "simulink_extras/Additional\nLinear/PID Controll"
"er"
SourceType "PID Controller"
P "100"
I "20"
D "5"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [150, 64, 170, 91]
ShowName off
FontSize 14
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [140, 204, 160, 231]
ShowName off
FontSize 14
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [140, 349, 160, 376]
ShowName off
FontSize 14
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Scope
Name "被控参数\n 显示"
Ports [1]
Position [575, 65, 605, 95]
BackgroundColor "lightBlue"
FontSize 14
Floating off
Location [5, 53, 805, 606]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "10 "
YMin "-0.2"
YMax "1.4"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Array"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "被控参数\n显示"
Ports [1]
Position [580, 205, 610, 235]
BackgroundColor "lightBlue"
FontSize 14
Floating off
Location [5, 53, 805, 606]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "10 "
YMin "0"
YMax "1"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Array"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType TransferFcn
Name "对象"
Position [360, 59, 435, 101]
FontSize 14
Numerator "[1]"
Denominator "[1 20 1]"
Realization "auto"
AbsoluteTolerance "auto"
}
Block {
BlockType TransferFcn
Name "检测仪表"
Position [455, 62, 510, 98]
FontSize 14
Numerator "[1]"
Denominator "[0.1 1]"
Realization "auto"
AbsoluteTolerance "auto"
}
Block {
BlockType TransferFcn
Name "执行器"
Position [275, 62, 330, 98]
FontSize 14
Numerator "[1]"
Denominator "[0.1 1]"
Realization "auto"
AbsoluteTolerance "auto"
}
Line {
SrcBlock "PID 调节器"
SrcPort 1
DstBlock "执行器"
DstPort 1
}
Line {
SrcBlock "执行器"
SrcPort 1
DstBlock "对象"
DstPort 1
}
Line {
SrcBlock "对象"
SrcPort 1
DstBlock "检测仪表"
DstPort 1
}
Line {
SrcBlock "检测仪表"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "被控参数\n 显示"
DstPort 1
}
Branch {
Points [0, 45; -405, 0]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "PID 调节器"
DstPort 1
}
Line {
SrcBlock "PID 调节器 "
SrcPort 1
DstBlock " 执行器"
DstPort 1
}
Line {
SrcBlock " 执行器"
SrcPort 1
DstBlock " 对象"
DstPort 1
}
Line {
SrcBlock " 对象"
SrcPort 1
DstBlock " 检测仪表"
DstPort 1
}
Line {
SrcBlock " 检测仪表"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "被控参数\n显示"
DstPort 1
}
Branch {
Points [0, 55; -405, 0]
DstBlock "Sum1"
DstPort 2
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "PID 调节器 "
DstPort 1
}
Line {
SrcBlock "PID 调节器 "
SrcPort 1
DstBlock " 执行器 "
DstPort 1
}
Line {
SrcBlock " 执行器 "
SrcPort 1
DstBlock " 对象"
DstPort 1
}
Line {
SrcBlock " 对象"
SrcPort 1
DstBlock " 检测仪表 "
DstPort 1
}
Line {
SrcBlock " 检测仪表 "
SrcPort 1
Points [25, 0]
Branch {
DstBlock " 被控参数\n 显示 "
DstPort 1
}
Branch {
Points [0, 55; -405, 0]
DstBlock "Sum2"
DstPort 2
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "PID 调节器 "
DstPort 1
}
Line {
SrcBlock "\n给定值"
SrcPort 1
Points [45, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 140]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Points [0, 145]
DstBlock "Sum2"
DstPort 1
}
}
}
Annotation {
Position [332, 140]
ForegroundColor "red"
Text "有积分作用单回路控制系统"
FontSize 14
}
Annotation {
Position [343, 296]
ForegroundColor "red"
Text "无积分作用单回路控制系统"
FontSize 14
}
Annotation {
Position [340, 441]
ForegroundColor "red"
Text " 大比例作用单回路控制系统"
FontSize 14
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -