📄 imvectrol3.mdl
字号:
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "Iq"
Position [15, 23, 45, 37]
Port "1"
Interpolate on
}
Block {
BlockType Inport
Name "Phir"
Position [15, 58, 45, 72]
Port "2"
Interpolate on
}
Block {
BlockType Inport
Name "wm"
Position [225, 78, 255, 92]
Port "3"
Interpolate on
}
Block {
BlockType Fcn
Name "Fcn"
Position [105, 40, 265, 60]
ShowName off
Expr "34.7e-3*u[1]/(u[2]*0.1557+1e-3)"
Port {
PortNumber 1
Name "wr"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Integrator
Name "Integrator2"
Ports [1, 1]
Position [330, 55, 360, 85]
ShowName off
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [70, 12, 75, 83]
ShowName off
Inputs "2"
DisplayOption "none"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [305, 33, 315, 102]
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "theta"
Position [380, 63, 410, 77]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Integrator2"
SrcPort 1
DstBlock "theta"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Integrator2"
DstPort 1
}
Line {
SrcBlock "wm"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
Name "wr"
Labels [0, 1]
SrcBlock "Fcn"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Phir"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Iq"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Annotation {
Position [122, 124]
Text " Theta= Electrical angle= integ ( wr + wm)"
}
Annotation {
Position [149, 141]
Text "wr = Rotor frequency (rad/s) = Lm *Iq / ( T"
"r * Phir)"
}
Annotation {
Position [339, 124]
Text "Lm = 34.7 mH"
}
Annotation {
Position [344, 164]
Text "Rr= 0.228 ohms"
}
Annotation {
Position [389, 144]
Text "Lr = Ll'r +Lm = 0.8 +34.7= 35.5 mH"
}
Annotation {
Position [114, 156]
Text "wm= Rotor speed (rad/s)"
}
Annotation {
Position [354, 189]
Text "Tr = Lr / Rr = 0.1557 s"
}
}
}
Block {
BlockType Step
Name "Tl"
Position [640, 148, 670, 172]
ForegroundColor "red"
NamePlacement "alternate"
Time "0.6"
Before "0"
After "200"
SampleTime "0"
VectorParams1D on
Port {
PortNumber 1
Name "Tl"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType SubSystem
Name "abc2dq"
Ports [2, 1]
Position [440, 109, 500, 156]
NamePlacement "alternate"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "abc2dq"
Location [625, 529, 1023, 685]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "iabc"
Position [20, 87, 50, 103]
Port "1"
Interpolate on
}
Block {
BlockType Inport
Name "theta"
Position [20, 42, 50, 58]
Port "2"
Interpolate on
}
Block {
BlockType Fcn
Name "Fcn"
Position [165, 22, 220, 58]
Expr "u(1)*cos(u(4))+u(2)*cos(u(4)-2*pi/3)+u(3)*c"
"os(u(4)+2*pi/3)"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [165, 92, 220, 128]
Expr "-u(1)*sin(u(4))-u(2)*sin(u(4)-2*pi/3)-u(3)*"
"sin(u(4)+2*pi/3)"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [125, 82, 130, 133]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1]
Position [125, 12, 130, 63]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux5"
Ports [2, 1]
Position [270, 45, 275, 105]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Gain
Name "d"
Position [295, 56, 325, 94]
ShowName off
Gain "2/3"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "idq"
Position [345, 68, 375, 82]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [25, 0; 0, 20]
DstBlock "Mux5"
DstPort 1
}
Line {
SrcBlock "Mux5"
SrcPort 1
DstBlock "d"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
Points [25, 0; 0, -20]
DstBlock "Mux5"
DstPort 2
}
Line {
SrcBlock "iabc"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Mux1"
DstPort 1
}
Branch {
Points [0, -70]
DstBlock "Mux3"
DstPort 1
}
}
Line {
SrcBlock "theta"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Mux3"
DstPort 2
}
Branch {
Points [0, 70]
DstBlock "Mux1"
DstPort 2
}
}
Line {
SrcBlock "d"
SrcPort 1
DstBlock "idq"
DstPort 1
}
Annotation {
Position [79, 10]
}
}
}
Block {
BlockType SubSystem
Name "dq2abc"
Ports [2, 1]
Position [325, 236, 385, 289]
NamePlacement "alternate"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "dq2abc"
Location [646, 472, 1000, 688]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "idq"
Position [20, 82, 50, 98]
Port "1"
Interpolate on
}
Block {
BlockType Inport
Name "theta"
Position [20, 177, 50, 193]
Port "2"
Interpolate on
}
Block {
BlockType Fcn
Name "Fcn"
Position [165, 22, 220, 58]
Expr "u(1)*cos(u(3))-u(2)*sin(u(3))"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [165, 87, 220, 123]
Expr "u(1)*cos(u(3)-2*pi/3)-u(2)*sin(u(3)-2*pi/3)"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [165, 157, 220, 193]
Expr "u(1)*cos(u(3)+2*pi/3)-u(2)*sin(u(3)+2*pi/3)"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [125, 77, 130, 128]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1]
Position [125, 12, 130, 63]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux4"
Ports [2, 1]
Position [125, 147, 130, 198]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux5"
Ports [3, 1]
Position [270, 75, 275, 135]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "iabc^"
Position [300, 98, 330, 112]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "Fcn2"
DstPort 1
}
Line {
SrcBlock "idq"
SrcPort 1
Points [15, 0]
Branch {
Points [0, -65]
DstBlock "Mux3"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Mux4"
DstPort 1
}
Branch {
DstBlock "Mux1"
DstPort 1
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [25, 0; 0, 45]
DstBlock "Mux5"
DstPort 1
}
Line {
SrcBlock "Mux5"
SrcPort 1
DstBlock "iabc^"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Mux5"
DstPort 2
}
Line {
SrcBlock "Fcn2"
SrcPort 1
Points [25, 0; 0, -50]
DstBlock "Mux5"
DstPort 3
}
Line {
SrcBlock "theta"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "Mux4"
DstPort 2
}
Branch {
Points [0, -70]
Branch {
Points [0, -65]
DstBlock "Mux3"
DstPort 2
}
Branch {
DstBlock "Mux1"
DstPort 2
}
}
}
}
}
Block {
BlockType SubSystem
Name "id* Calculator"
Ports [1, 1]
Position [200, 319, 250, 351]
NamePlacement "alternate"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -