📄 test_double1.mdl
字号:
Ports [1, 1]
Position [190, 95, 250, 125]
FunctionName "mySfunction4_PID3"
Parameters "Kp,Ki,Kd,L_upper,L_lower,T_samp"
}
Block {
BlockType Outport
Name "Out1"
Position [345, 103, 375, 117]
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "S-Function"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "ASROut"
Ports [1]
Position [415, 39, 445, 71]
Location [364, 186, 688, 425]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "ASR_In"
Ports [1]
Position [280, 199, 310, 231]
Location [362, 513, 686, 752]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData5"
DataFormat "StructureWithTime"
}
Block {
BlockType SubSystem
Name "DDC"
Ports [1, 1]
Position [605, 119, 705, 161]
TreatAsAtomicUnit off
MaskType "DDC_HY_8072"
MaskPromptString "Sample Time:"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "T_samp=@1;"
MaskDisplay "fprintf('DDC_HY_8072');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.0033"
System {
Name "DDC"
Location [433, 403, 931, 703]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [110, 103, 140, 117]
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [205, 95, 265, 125]
FunctionName "DDC_HY_8072"
Parameters "T_samp"
}
Block {
BlockType Outport
Name "Out1"
Position [360, 103, 390, 117]
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "S-Function"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [745, 121, 750, 159]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Memory
Name "Memory"
Position [435, 335, 465, 365]
Orientation "left"
}
Block {
BlockType Memory
Name "Memory1"
Position [660, 215, 690, 245]
Orientation "left"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [0, 1]
Position [50, 119, 150, 161]
TreatAsAtomicUnit off
MaskPromptString "Sample Time:"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "T_samp=@1;"
MaskDisplay "fprintf('UnSet');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.0033"
System {
Name "Subsystem"
Location [433, 403, 931, 703]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant"
Position [100, 95, 130, 125]
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [165, 95, 225, 125]
FunctionName "UnSet_HY_8072"
Parameters "T_samp"
}
Block {
BlockType Outport
Name "Out1"
Position [360, 103, 390, 117]
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "S-Function"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [215, 118, 240, 162]
ShowName off
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [410, 118, 435, 162]
ShowName off
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Scope
Name "Ui"
Ports [1]
Position [970, 234, 1000, 266]
Location [407, 342, 731, 581]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Un"
Ports [1]
Position [965, 124, 995, 156]
Location [423, 578, 747, 817]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "UnSet"
Ports [1]
Position [960, 44, 990, 76]
Location [83, 132, 407, 371]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
}
Line {
SrcBlock "DDC"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [-10, 0; 60, 0]
Branch {
Points [0, 210]
DstBlock "Memory"
DstPort 1
}
Branch {
Points [0, 0]
DstBlock "Un"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [85, 0; 0, -70]
DstBlock "UnSet"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [-10, 0; 30, 0]
Branch {
Points [65, 0; 0, 100]
DstBlock "Ui"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Memory1"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "ASR"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "ASR_In"
DstPort 1
}
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Memory"
SrcPort 1
Points [-250, 0; 0, -195]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Memory1"
SrcPort 1
Points [-280, 0; 0, -75]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "ACR"
DstPort 1
}
Line {
SrcBlock "ASR"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "ASROut"
DstPort 1
}
}
Line {
SrcBlock "ACR"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "DDC"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "ACROut"
DstPort 1
}
}
Annotation {
Name "The PI Controller is made up by M-file which is"
" written by myself.\nTo resolve the algrithm loop problem,I insert a memory b"
"lock in to the loop.\nThe system has been proved to be well .\n"
Position [443, 469]
FontName "Arial"
FontSize 14
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -