📄 zz1.mdl
字号:
SrcPort 1
Points [-50, 0; 0, 105]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "ab->abc"
DstPort 1
}
Line {
SrcBlock "ab->abc"
SrcPort 1
DstBlock "Iabc"
DstPort 1
}
}
}
Block {
BlockType Demux
Name "Demux2"
Ports [1, 3]
Position [990, 31, 1005, 129]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Discrete\nPI Controller"
Ports [1, 1]
Position [410, 302, 455, 348]
SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discr"
"ete\nPI Controller"
SourceType "Discrete PI Controller"
ShowPortLabels on
Kp "2"
Ki "1"
Par_Limits "[2000 -2000]"
Init "2"
Ts "1e-3"
}
Block {
BlockType Constant
Name "Flux*"
Position [20, 150, 50, 180]
FontSize 12
Value "0.95"
}
Block {
BlockType Gain
Name "Gain"
Position [345, 380, 375, 410]
Orientation "up"
ShowName off
Gain "2*0.510/0.553"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [970, 705, 1000, 735]
Orientation "left"
NamePlacement "alternate"
Gain "2*pi*2/60"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "Inveter"
Ports [1, 1]
Position [875, 264, 950, 376]
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Inveter"
MaskDescription "Inveter(By:ZhuShiWu)"
MaskPromptString "DC Voltage Source Un(V)"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "Un=@1;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "600"
System {
Name "Inveter"
Location [2, 82, 1270, 977]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "156"
Block {
BlockType Inport
Name "Pulse"
Position [40, 218, 70, 232]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Constant
Name "Constant"
Position [115, 22, 140, 48]
ShowName off
Value "0.5*Un"
}
Block {
BlockType Constant
Name "Constant1"
Position [115, 51, 140, 79]
ShowName off
Value "-0.5*Un"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [135, 198, 140, 252]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Gain
Name "Gain"
Position [390, 35, 415, 65]
ShowName off
Gain "2/3"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [390, 80, 415, 110]
ShowName off
Gain "1/3"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [395, 210, 420, 240]
ShowName off
Gain "2/3"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain3"
Position [400, 365, 425, 395]
ShowName off
Gain "2/3"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain4"
Position [395, 270, 420, 300]
ShowName off
Gain "1/3"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain5"
Position [400, 425, 425, 455]
ShowName off
Gain "1/3"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [675, 187, 685, 303]
ShowName off
Inputs "3"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [520, 41, 550, 99]
ShowName off
Inputs "+--"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [525, 216, 555, 274]
ShowName off
Inputs "+--"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [530, 371, 560, 429]
ShowName off
Inputs "+--"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch"
Position [305, 24, 335, 76]
ShowName off
Criteria "u2 > Threshold"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch1"
Position [310, 199, 340, 251]
ShowName off
Criteria "u2 > Threshold"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch3"
Position [315, 354, 345, 406]
ShowName off
Criteria "u2 > Threshold"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Uabc"
Position [755, 238, 785, 252]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Uabc"
DstPort 1
}
Line {
SrcBlock "Pulse"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [15, 0; 0, -155]
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [65, 0]
Branch {
Points [40, 0]
Branch {
DstBlock "Switch"
DstPort 1
}
Branch {
Points [0, 175]
DstBlock "Switch1"
DstPort 1
}
}
Branch {
Points [0, 330]
DstBlock "Switch3"
DstPort 1
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [40, 0]
Branch {
Points [50, 0]
Branch {
DstBlock "Switch"
DstPort 3
}
Branch {
Points [0, 175]
DstBlock "Switch1"
DstPort 3
}
}
Branch {
Points [0, 330]
DstBlock "Switch3"
DstPort 3
}
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, 45]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Switch1"
DstPort 2
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Switch1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Gain2"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "Gain4"
DstPort 1
}
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Switch3"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Gain3"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "Gain5"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [15, 0; 0, 135]
DstBlock "Switch3"
DstPort 2
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [60, 0; 0, 150]
Branch {
Points [0, 155]
DstBlock "Sum2"
DstPort 2
}
Branch {
DstBlock "Sum1"
DstPort 2
}
}
Line {
SrcBlock "Gain4"
SrcPort 1
Points [35, 0]
Branch {
Points [0, -215]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [0, 135]
DstBlock "Sum2"
DstPort 3
}
}
Line {
SrcBlock "Gain5"
SrcPort 1
Points [15, 0; 0, -175]
Branch {
Points [0, -175]
DstBlock "Sum"
DstPort 3
}
Branch {
DstBlock "Sum1"
DstPort 3
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [50, 0; 0, 135]
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [45, 0; 0, -115]
DstBlock "Mux1"
DstPort 3
}
}
}
Block {
BlockType SubSystem
Name "Isq* calculator"
Ports [2, 1]
Position [400, 180, 440, 240]
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskPromptString "Lr|np|Lm"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "Lr=@1;np=@2;Lm=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.553|2|0.510"
MaskTabNameString ",,"
System {
Name "Isq* calculator"
Location [2, 83, 1014, 744]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "frd*"
Position [25, 73, 55, 87]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Te*"
Position [25, 28, 55, 42]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Fcn
Name "Fcn"
Position [130, 44, 240, 76]
Expr "u[1]*Lr/(np*Lm*u[2])"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [85, 31, 90, 84]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -