📄 vectorcontrol3.mdl
字号:
DstBlock "Product3"
DstPort 2
}
Line {
SrcBlock "Product3"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Points [0, -55; 85, 0]
Branch {
DstBlock "Te"
DstPort 1
}
Branch {
Points [0, 295]
DstBlock "Scope1"
DstPort 3
}
}
}
Line {
SrcBlock "TL"
SrcPort 1
Points [805, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Gain7"
DstPort 1
}
Line {
SrcBlock "Gain7"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Gain8"
DstPort 1
}
Branch {
Points [0, -95]
Branch {
DstBlock "Product1"
DstPort 2
}
Branch {
Points [0, -130]
DstBlock "Sum3"
DstPort 1
}
}
}
Line {
SrcBlock "Gain8"
SrcPort 1
DstBlock "n"
DstPort 1
}
Line {
SrcBlock "Gain4"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Gain9"
SrcPort 1
DstBlock "Product4"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [0, 0; -50, 0]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, 60]
DstBlock "Integrator1"
DstPort 1
}
Branch {
Points [0, -100]
Branch {
DstBlock "Product2"
DstPort 1
}
Branch {
DstBlock "Integrator3"
DstPort 1
}
}
}
Line {
SrcBlock "Product4"
SrcPort 1
Points [0, -10]
Branch {
DstBlock "Sum3"
DstPort 2
}
Branch {
Points [0, 470]
DstBlock "Scope1"
DstPort 4
}
}
Line {
SrcBlock "dq->ab1"
SrcPort 1
DstBlock "Iabc"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn1"
SrcPort 1
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
Points [0, 0; 50, 0]
Branch {
Points [0, -65]
DstBlock "Gain5"
DstPort 1
}
Branch {
Points [0, 255]
Branch {
Points [0, 30]
Branch {
DstBlock "Gain4"
DstPort 1
}
Branch {
DstBlock "Product3"
DstPort 1
}
}
Branch {
DstBlock "Product4"
DstPort 2
}
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [30, 0; 0, -40]
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Integrator3"
SrcPort 1
Points [40, 0; 0, -165]
DstBlock "dq->ab1"
DstPort 2
}
Line {
SrcBlock "Integrator1"
SrcPort 1
Points [-165, 0; 0, 35; -85, 0]
DstBlock "abc->mt"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [20, 0; 0, -205]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [20, 0; 0, 185]
DstBlock "Sum2"
DstPort 3
}
}
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [1195, 528, 1200, 582]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Discrete\nPI Controller"
Ports [1, 1]
Position [445, 377, 490, 423]
SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discr"
"ete\nPI Controller"
SourceType "Discrete PI Controller"
ShowPortLabels on
Kp "1"
Ki "0.01"
Par_Limits "[2000 -2000]"
Init "2"
Ts "1e-3"
}
Block {
BlockType SubSystem
Name "Flux Calculator"
Ports [3, 2]
Position [715, 647, 765, 763]
Orientation "left"
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDescription "Flux Calculator"
MaskPromptString "Mutual Inductance Lm(H)|Rotor Inductance Lr(H)|"
"Rotor Resistance R2(ohm)|Paris of poles Np()"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "Lm=@1;Lr=@2;R2=@3;Np=@4;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.510|0.553|2.5|2"
MaskTabNameString ",,,"
System {
Name "Flux Calculator"
Location [0, 82, 1268, 999]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "195"
Block {
BlockType Inport
Name "Id"
Position [75, 178, 105, 192]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Iq"
Position [65, 38, 95, 52]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "w"
Position [75, 248, 105, 262]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Constant
Name "Constant"
Position [125, 91, 165, 129]
Value "0.0001"
}
Block {
BlockType Product
Name "Divide"
Ports [2, 1]
Position [245, 37, 275, 68]
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain"
Position [135, 22, 200, 68]
Gain "Lm*R2/Lr"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [230, 239, 265, 271]
Gain "Np"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [420, 39, 450, 71]
IgnoreLimit off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [345, 45, 365, 65]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [200, 100, 220, 120]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [145, 165, 200, 205]
Numerator "[Lm]"
Denominator "[Lr/R2 1]"
}
Block {
BlockType Outport
Name "Flux"
Position [525, 177, 550, 193]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Teta"
Position [515, 48, 545, 62]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Iq"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Divide"
DstPort 1
}
Line {
SrcBlock "Divide"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock "Teta"
DstPort 1
}
Line {
SrcBlock "Id"
SrcPort 1
DstBlock "Transfer Fcn"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Sum1"
DstPort 2
}
Branch {
DstBlock "Flux"
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, -50]
DstBlock "Divide"
DstPort 2
}
Line {
SrcBlock "w"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [85, 0]
DstBlock "Sum"
DstPort 2
}
}
}
Block {
BlockType Step
Name "Flux*"
Position [150, 205, 180, 235]
FontSize 12
Time "0"
Before "0.0001"
After "0.95"
SampleTime "0"
}
Block {
BlockType Gain
Name "Gain"
Position [380, 450, 410, 480]
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 [1275, 615, 1305, 645]
Orientation "down"
NamePlacement "alternate"
ShowName off
Gain "2*pi/60"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "Inveter"
Ports [1, 1]
Position [1005, 354, 1080, 466]
ShowName off
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 "100"
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]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -