📄 mybldc_mdl2.mdl
字号:
Port "3"
}
Block {
BlockType Inport
Name "IVstar"
Position [80, 183, 110, 197]
Port "4"
}
Block {
BlockType Inport
Name "IW"
Position [80, 233, 110, 247]
Port "5"
}
Block {
BlockType Inport
Name "IWstar"
Position [80, 283, 110, 297]
Port "6"
}
Block {
BlockType Inport
Name "UV"
Position [80, 333, 110, 347]
Port "7"
}
Block {
BlockType Inport
Name "VW"
Position [80, 393, 110, 407]
Port "8"
}
Block {
BlockType Inport
Name "WU"
Position [85, 448, 115, 462]
Port "9"
}
Block {
BlockType Inport
Name "THRESHOLD"
Position [25, 483, 55, 497]
Port "10"
}
Block {
BlockType Constant
Name "Constant"
Position [85, 510, 115, 540]
Value "0"
}
Block {
BlockType Switch
Name "Switch"
Position [200, 30, 230, 60]
Threshold "T"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch1"
Position [200, 85, 230, 115]
Threshold "T"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch2"
Position [200, 135, 230, 165]
Threshold "T"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch3"
Position [200, 185, 230, 215]
Threshold "T"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch4"
Position [200, 235, 230, 265]
Threshold "T"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch5"
Position [200, 285, 230, 315]
Threshold "T"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch6"
Position [200, 335, 230, 365]
Threshold "T"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch7"
Position [205, 395, 235, 425]
Threshold "T"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch8"
Position [205, 450, 235, 480]
Threshold "T"
InputSameDT off
}
Block {
BlockType Outport
Name "IU_out"
Position [300, 38, 330, 52]
}
Block {
BlockType Outport
Name "IUstar_out"
Position [300, 93, 330, 107]
Port "2"
}
Block {
BlockType Outport
Name "IV_out"
Position [300, 143, 330, 157]
Port "3"
}
Block {
BlockType Outport
Name "IVstar_out"
Position [305, 193, 335, 207]
Port "4"
}
Block {
BlockType Outport
Name "IW_out"
Position [305, 243, 335, 257]
Port "5"
}
Block {
BlockType Outport
Name "IWstar_out"
Position [305, 293, 335, 307]
Port "6"
}
Block {
BlockType Outport
Name "UV_out"
Position [310, 343, 340, 357]
Port "7"
}
Block {
BlockType Outport
Name "VW_out"
Position [310, 403, 340, 417]
Port "8"
}
Block {
BlockType Outport
Name "WU_out"
Position [315, 458, 345, 472]
Port "9"
}
Line {
SrcBlock "IU"
SrcPort 1
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "IUstar"
SrcPort 1
DstBlock "Switch1"
DstPort 1
}
Line {
SrcBlock "IV"
SrcPort 1
DstBlock "Switch2"
DstPort 1
}
Line {
SrcBlock "IVstar"
SrcPort 1
DstBlock "Switch3"
DstPort 1
}
Line {
SrcBlock "IW"
SrcPort 1
DstBlock "Switch4"
DstPort 1
}
Line {
SrcBlock "IWstar"
SrcPort 1
DstBlock "Switch5"
DstPort 1
}
Line {
SrcBlock "UV"
SrcPort 1
DstBlock "Switch6"
DstPort 1
}
Line {
SrcBlock "VW"
SrcPort 1
DstBlock "Switch7"
DstPort 1
}
Line {
SrcBlock "WU"
SrcPort 1
DstBlock "Switch8"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [35, 0; 0, -50]
Branch {
DstBlock "Switch8"
DstPort 3
}
Branch {
Points [0, -55]
Branch {
DstBlock "Switch7"
DstPort 3
}
Branch {
Points [0, -60]
Branch {
DstBlock "Switch6"
DstPort 3
}
Branch {
Points [0, -50]
Branch {
DstBlock "Switch5"
DstPort 3
}
Branch {
Points [0, -50]
Branch {
DstBlock "Switch4"
DstPort 3
}
Branch {
Points [0, -50]
Branch {
DstBlock "Switch3"
DstPort 3
}
Branch {
Points [0, -50]
Branch {
DstBlock "Switch2"
DstPort 3
}
Branch {
Points [0, -50]
Branch {
DstBlock "Switch1"
DstPort 3
}
Branch {
Points [0, -55]
DstBlock "Switch"
DstPort 3
}
}
}
}
}
}
}
}
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "IU_out"
DstPort 1
}
Line {
SrcBlock "Switch1"
SrcPort 1
DstBlock "IUstar_out"
DstPort 1
}
Line {
SrcBlock "Switch2"
SrcPort 1
DstBlock "IV_out"
DstPort 1
}
Line {
SrcBlock "Switch3"
SrcPort 1
DstBlock "IVstar_out"
DstPort 1
}
Line {
SrcBlock "Switch4"
SrcPort 1
DstBlock "IW_out"
DstPort 1
}
Line {
SrcBlock "Switch5"
SrcPort 1
DstBlock "IWstar_out"
DstPort 1
}
Line {
SrcBlock "Switch6"
SrcPort 1
DstBlock "UV_out"
DstPort 1
}
Line {
SrcBlock "Switch7"
SrcPort 1
DstBlock "VW_out"
DstPort 1
}
Line {
SrcBlock "Switch8"
SrcPort 1
DstBlock "WU_out"
DstPort 1
}
Line {
SrcBlock "THRESHOLD"
SrcPort 1
Points [110, 0; 0, -25]
Branch {
Points [0, -55]
Branch {
Points [0, -60]
Branch {
Points [0, -50]
Branch {
Points [0, -50]
Branch {
Points [0, -50]
Branch {
Points [0, -50]
Branch {
Points [0, -50]
Branch {
Points [0, -55]
DstBlock "Switch"
DstPort 2
}
Branch {
DstBlock "Switch1"
DstPort 2
}
}
Branch {
DstBlock "Switch2"
DstPort 2
}
}
Branch {
DstBlock "Switch3"
DstPort 2
}
}
Branch {
DstBlock "Switch4"
DstPort 2
}
}
Branch {
DstBlock "Switch5"
DstPort 2
}
}
Branch {
DstBlock "Switch6"
DstPort 2
}
}
Branch {
DstBlock "Switch7"
DstPort 2
}
}
Branch {
DstBlock "Switch8"
DstPort 2
}
}
}
}
Block {
BlockType Mux
Name "Mux1"
Ports [24, 1]
Position [1280, 162, 1290, 628]
DropShadow on
ShowName off
Inputs "24"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Reset Controller Params"
Ports []
Position [457, 141, 566, 167]
DropShadow on
ShowName off
OpenFcn "mybldc2([],[],[],'reset',find_system(get_param("
"gcs,'Handle'),'LookUnderMasks','all','Tag','PPC'));"
TreatAsAtomicUnit off
MaskDisplay "disp('Reset Controller')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Reset Controller Params"
Location [225, 566, 652, 771]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType Step
Name "Step"
Position [1360, 620, 1390, 650]
Orientation "left"
DropShadow on
Time "0.01"
After "75"
SampleTime "0"
}
Block {
BlockType Step
Name "Step4"
Position [510, 370, 540, 400]
Time "0.05"
After "0"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [2, 1]
Position [1055, 716, 1120, 794]
DropShadow on
TreatAsAtomicUnit off
MaskPromptString "Threshold"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "T=@1;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "400e-6"
System {
Name "Subsystem"
Location [-8, 74, 322, 353]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "ERR"
Position [25, 23, 55, 37]
}
Block {
BlockType Inport
Name "THRESHOLD"
Position [25, 88, 55, 102]
Port "2"
}
Block {
BlockType Constant
Name "Constant"
Position [35, 220, 65, 250]
Value "0"
}
Block {
BlockType Switch
Name "Switch"
Position [170, 35, 200, 65]
Threshold "T"
InputSameDT off
}
Block {
BlockType Outport
Name "ERR_out"
Position [275, 48, 305, 62]
}
Line {
SrcBlock "ERR"
SrcPort 1
Points [0, 10]
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "THRESHOLD"
SrcPort 1
Points [0, -45]
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [55, 0]
DstBlock "ERR_out"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, -175]
DstBlock "Switch"
DstPort 3
}
}
}
Block {
BlockType Terminator
Name "Terminator"
Position [565, 730, 585, 750]
Orientation "left"
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -