📄 casemdlr.mdl
字号:
MaskType "One_order\\nplus\\nDeadtime"
MaskDescription "One_order plus deadtime "
MaskPromptString "Gain K|Time Constant T|Deadtime2"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVariables "K2=@1;T2=@2;tor2=@3;"
MaskInitialization "K2=4;T2=4;tor2=1;"
MaskDisplay "disp('副对象');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "4|4|1"
MaskVariableAliases ",,"
System {
Name "Gp2"
Location [246, 214, 511, 302]
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, 38, 55, 52]
Port "1"
Interpolate on
}
Block {
BlockType TransportDelay
Name "Deadtime"
Position [155, 30, 185, 60]
DelayTime "tor2"
InitialInput "0"
BufferSize "1024"
PadeOrder "0"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [80, 27, 135, 63]
Numerator "[K2]"
Denominator "[T2 1]"
Realization "auto"
AbsoluteTolerance "auto"
}
Block {
BlockType Outport
Name "Out1"
Position [210, 38, 240, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
DstBlock "Deadtime"
DstPort 1
}
Line {
SrcBlock "Deadtime"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Transfer Fcn"
DstPort 1
}
}
}
Block {
BlockType Gain
Name "K"
Position [185, 93, 205, 117]
FontSize 12
FontWeight "bold"
Gain "1/10"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Mux
Name "Mux"
Ports [4, 1]
Position [595, 65, 620, 105]
ShowName off
Inputs "4"
DisplayOption "none"
}
Block {
BlockType Step
Name "S.P."
Position [15, 130, 40, 160]
FontSize 12
FontWeight "bold"
Time "0"
Before "0"
After "0"
SampleTime ".1"
VectorParams1D on
}
Block {
BlockType Constant
Name "SP"
Position [10, 11, 45, 39]
ForegroundColor "red"
FontSize 15
FontWeight "bold"
Value "250"
VectorParams1D on
}
Block {
BlockType Reference
Name "SW"
Ports [2, 1]
Position [245, 135, 280, 170]
FontSize 12
FontWeight "bold"
SourceBlock "simulink3/Nonlinear/Manual Switch"
SourceType "Manual Switch"
sw "0"
action "0"
}
Block {
BlockType Reference
Name "SW1"
Ports [2, 1]
Position [240, 85, 275, 120]
Orientation "down"
FontSize 12
FontWeight "bold"
SourceBlock "simulink3/Nonlinear/Manual Switch"
SourceType "Manual Switch"
sw "0"
action "0"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [645, 150, 685, 210]
FontSize 12
Floating off
Location [562, 432, 766, 693]
Open on
NumInputPorts "1"
TickLabels "on"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "200"
YMin "0"
YMax "500"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Array"
LimitDataPoints on
MaxDataPoints "10000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [530, 125, 545, 180]
ForegroundColor "red"
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [300, 122, 315, 173]
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [65, 130, 75, 150]
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Display
Name "T1"
Ports [1]
Position [590, 16, 650, 44]
ForegroundColor "red"
FontSize 15
FontWeight "bold"
Format "short"
Decimation "3"
Floating off
SampleTime "1"
}
Block {
BlockType Display
Name "T2"
Ports [1]
Position [490, 16, 550, 44]
ForegroundColor "red"
FontSize 15
FontWeight "bold"
Format "short"
Decimation "1"
Floating off
SampleTime ".2"
}
Block {
BlockType Display
Name "Time"
Ports [1]
Position [120, 16, 180, 44]
ForegroundColor "red"
FontSize 15
FontWeight "bold"
Format "short"
Decimation "1"
Floating off
SampleTime ".2"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [60, 20, 75, 40]
Orientation "left"
ShowName off
VariableName "t"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0.1"
SaveFormat "Array"
}
Block {
BlockType Display
Name "Y1"
Ports [1]
Position [325, 86, 380, 114]
Orientation "left"
ForegroundColor "red"
FontSize 15
FontWeight "bold"
Format "short"
Decimation "1"
Floating off
SampleTime ".2"
}
Block {
BlockType SubSystem
Name "casecade"
Ports [1]
Position [645, 58, 690, 112]
ForegroundColor "red"
DropShadow on
FontSize 12
FontWeight "bold"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "casecade"
MaskDescription "Tempture Casecade Control System"
MaskHelp "Tempture casecade control system animation func"
"tion using Handle graphics."
MaskPromptString "DC reference signal block name:"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "RefBlock=&1;"
MaskInitialization "\n"
MaskDisplay "plot([-10 10],[0 0],[-7 -7 7 7],[0 8 8 0],[-7 -"
"9 -9 -7],[1 1 7 7],[7 9 9 7],[1 1 7 7])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "SP"
System {
Name "casecade"
Location [254, 393, 495, 491]
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_1"
Position [40, 25, 60, 45]
Port "1"
Interpolate on
}
Block {
BlockType "S-Function"
Name "S-function"
Ports [1]
Position [95, 23, 150, 47]
DeleteFcn "casecader([],[],[],'DeleteBlock');"
FunctionName "casecader"
Parameters "RefBlock"
PortCounts "[]"
SFunctionModules "''"
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "S-function"
DstPort 1
}
}
}
Line {
SrcBlock "F3"
SrcPort 1
Points [5, 0]
DstBlock "SW1"
DstPort 1
}
Line {
SrcBlock "F2"
SrcPort 1
Points [-10, 0]
DstBlock "SW1"
DstPort 2
}
Line {
SrcBlock "SW1"
SrcPort 1
Points [0, 10]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Gp2"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 0]
Branch {
Points [0, -85]
Branch {
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, -50]
DstBlock "T2"
DstPort 1
}
}
Branch {
DstBlock "Gp1"
DstPort 1
}
}
Branch {
Points [0, 60; -260, 0]
DstBlock "Gc2"
DstPort 2
}
}
Line {
SrcBlock "SW"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "casecade"
DstPort 1
}
Branch {
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Gp1"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Gc1"
DstPort 1
}
Branch {
Points [0, -70]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "F1"
SrcPort 1
Points [5, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "SP"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "S.P."
SrcPort 1
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Gc2"
SrcPort 1
DstBlock "SW"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 15]
DstBlock "Gp2"
DstPort 1
}
Branch {
Points [0, -15; 65, 0; 0, -35]
Branch {
DstBlock "Mux"
DstPort 4
}
Branch {
DstBlock "Y1"
DstPort 1
}
}
}
Line {
SrcBlock "K"
SrcPort 1
Points [20, 0]
DstBlock "SW"
DstPort 1
}
Line {
SrcBlock "Gc1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Gc2"
DstPort 1
}
Branch {
Points [0, -45]
DstBlock "K"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 90; -475, 0]
DstBlock "Gc1"
DstPort 2
}
Branch {
Points [0, -65]
Branch {
DstBlock "Mux"
DstPort 3
}
Branch {
Points [0, -60]
DstBlock "T1"
DstPort 1
}
}
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [15, 0; 0, -25]
Branch {
DstBlock "Time"
DstPort 1
}
Branch {
DstBlock "To Workspace1"
DstPort 1
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -