📄 vectorcontrol3.mdl
字号:
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 [690, 187, 700, 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 [760, 238, 790, 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 [520, 262, 560, 313]
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Isq* calculator"
MaskDescription "Isq* calculator(By:ZhuShiwu)"
MaskPromptString "Rotor inductance Lr(H)|Mutual inductance Lm(H)|"
"Pairs of poles Np()"
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;Lm=@2;Np=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.553|0.510|2"
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 "303"
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, 43, 255, 77]
Expr "u[1]*Lr/(Np*Lm*u[2])"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [85, 31, 90, 84]
ShowName off
Inputs "2"
}
Block {
BlockType Outport
Name "Isq*"
Position [275, 53, 305, 67]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Isq*"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "frd*"
SrcPort 1
Points [5, 0; 0, -10]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Te*"
SrcPort 1
Points [5, 0; 0, 10]
DstBlock "Mux"
DstPort 1
}
}
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [1020, 966, 1025, 999]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Prouct"
Ports [2, 1]
Position [377, 525, 408, 555]
Orientation "up"
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "Pulses Geneartor"
Ports [2, 1]
Position [870, 209, 920, 276]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Pulses Geneartor"
Location [-4, 82, 1264, 999]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "iabc"
Position [60, 108, 90, 122]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "iabc*"
Position [55, 253, 85, 267]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [145, 96, 150, 134]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [135, 241, 140, 279]
BackgroundColor "black"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -