📄 ex33_pid.mdl
字号:
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Derivative
LinearizePole "inf"
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Integrator
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
IgnoreLimit off
ZeroCross on
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Scope
Floating off
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Step
Time "1"
Before "0"
After "1"
SampleTime "-1"
VectorParams1D on
ZeroCross on
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType TransportDelay
DelayTime "1"
InitialInput "0"
BufferSize "1024"
PadeOrder "0"
TransDelayFeedthrough off
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "ex33_pid"
Location [314, 82, 946, 575]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Derivative
Name "Derivative"
Position [170, 160, 200, 190]
}
Block {
BlockType Derivative
Name "Derivative1"
Position [175, 290, 205, 320]
}
Block {
BlockType Derivative
Name "Derivative2"
Position [175, 425, 205, 455]
}
Block {
BlockType Derivative
Name "Derivative3"
Position [175, 560, 205, 590]
}
Block {
BlockType Gain
Name "Gain"
Position [215, 115, 245, 145]
BackgroundColor "cyan"
Gain "Ki"
}
Block {
BlockType Gain
Name "Gain1"
Position [215, 158, 260, 192]
BackgroundColor "cyan"
Gain "Kd"
}
Block {
BlockType Gain
Name "Gain10"
Position [220, 558, 265, 592]
Gain "Kd"
}
Block {
BlockType Gain
Name "Gain11"
Position [310, 483, 340, 517]
Gain "Kp"
}
Block {
BlockType Gain
Name "Gain2"
Position [315, 83, 345, 117]
BackgroundColor "cyan"
Gain "Kp"
}
Block {
BlockType Gain
Name "Gain3"
Position [220, 245, 250, 275]
Gain "Ki"
}
Block {
BlockType Gain
Name "Gain4"
Position [220, 288, 265, 322]
Gain "Kd"
}
Block {
BlockType Gain
Name "Gain5"
Position [320, 213, 350, 247]
Gain "Kp"
}
Block {
BlockType Gain
Name "Gain6"
Position [220, 380, 250, 410]
Gain "Ki"
}
Block {
BlockType Gain
Name "Gain7"
Position [220, 423, 265, 457]
Gain "Kd"
}
Block {
BlockType Gain
Name "Gain8"
Position [320, 348, 350, 382]
Gain "Kp"
}
Block {
BlockType Gain
Name "Gain9"
Position [220, 515, 250, 545]
Gain "Ki"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [170, 115, 200, 145]
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [175, 245, 205, 275]
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator2"
Ports [1, 1]
Position [175, 380, 205, 410]
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator3"
Ports [1, 1]
Position [175, 515, 205, 545]
IgnoreLimit off
}
Block {
BlockType Mux
Name "Mux"
Ports [5, 1]
Position [505, 82, 510, 148]
ShowName off
Inputs "5"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [510, 164, 515, 231]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [540, 99, 570, 131]
Location [6, 47, 301, 279]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "4"
YMin "0"
YMax "2"
SaveToWorkspace on
SaveName "Y"
DataFormat "Array"
MaxDataPoints "50000"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [540, 184, 570, 216]
Location [8, 313, 303, 491]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "4"
YMin "0"
YMax "2"
SaveToWorkspace on
SaveName "IO1"
DataFormat "Array"
}
Block {
BlockType Step
Name "Step"
Position [25, 85, 55, 115]
Time "0"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [125, 90, 145, 110]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [270, 90, 290, 110]
ShowName off
IconShape "round"
Inputs "|+++"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [130, 220, 150, 240]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum3"
Ports [3, 1]
Position [275, 220, 295, 240]
ShowName off
IconShape "round"
Inputs "|+++"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [130, 355, 150, 375]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum5"
Ports [3, 1]
Position [275, 355, 295, 375]
ShowName off
IconShape "round"
Inputs "|+++"
}
Block {
BlockType Sum
Name "Sum6"
Ports [2, 1]
Position [130, 490, 150, 510]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum7"
Ports [3, 1]
Position [275, 490, 295, 510]
ShowName off
IconShape "round"
Inputs "|+++"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn1"
Position [370, 82, 425, 118]
BackgroundColor "green"
Numerator "[10]"
Denominator "[1 3 2]"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn2"
Position [375, 212, 430, 248]
Numerator "[3]"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn3"
Position [375, 347, 430, 383]
Numerator "[26]"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -