📄 iwrun.mdl
字号:
SrcPort 1
Points [20, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "rot1"
SrcPort 1
Points [-80, 0; 0, 20]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [20, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "rot"
SrcPort 1
Points [-85, 0; 0, 20]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "rot2"
SrcPort 1
DstBlock "Dot Product"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain4"
DstPort 1
}
Line {
SrcBlock "Gain4"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Gain5"
DstPort 1
}
Line {
SrcBlock "Gain5"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
SrcBlock "flux-current1"
SrcPort 1
Points [40, 0]
Branch {
Points [0, 95]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
DstBlock "is"
DstPort 1
}
}
Branch {
Points [0, -70]
DstBlock "Dot Product"
DstPort 2
}
}
Line {
Name "Te"
Labels [0, 0]
SrcBlock "Dot Product"
SrcPort 1
DstBlock "Te"
DstPort 1
}
Line {
SrcBlock "vs"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "wk"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, 215]
DstBlock "Sum4"
DstPort 1
}
}
Line {
SrcBlock "wm"
SrcPort 1
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "vr"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Annotation {
Name "ROTOR"
Position [243, 297]
ForegroundColor "red"
FontSize 12
}
Annotation {
Name "STATOR"
Position [238, 86]
ForegroundColor "red"
FontSize 12
}
Annotation {
Name "fs"
Position [337, 79]
}
Annotation {
Name "fr"
Position [335, 294]
}
Annotation {
Name "is"
Position [490, 120]
}
Annotation {
Name "VECTORIZED DYNAMIC MODEL OF THE INDUCTION M"
"ACHINE IN ARBITRARY REFERENCE FRAME\n(per unit formulation)"
Position [312, 451]
FontSize 12
FontWeight "bold"
}
Annotation {
Name "ir"
Position [494, 278]
}
}
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [625, 320, 655, 350]
ShowName off
}
Block {
BlockType Gain
Name "M"
Position [885, 190, 915, 220]
Gain "[0 -1;1 0]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Gain
Name "M1"
Position [890, 360, 920, 390]
NamePlacement "alternate"
Gain "[0 -1;1 0]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [355, 420, 360, 520]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Pr"
Ports [1]
Position [1035, 303, 1065, 347]
NamePlacement "alternate"
Location [663, 680, 1100, 830]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "Pr [pu]"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "5"
YMin "-1"
YMax "0.5"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [410, 368, 455, 417]
ShowName off
InputSameDT off
}
Block {
BlockType Scope
Name "Ps"
Ports [1]
Position [1025, 138, 1055, 182]
NamePlacement "alternate"
Location [639, 539, 1092, 799]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "Ps [pu]"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "5"
YMin "-1.5"
YMax "1.5"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType SubSystem
Name "Ps controller"
Ports [1, 1]
Position [230, 399, 310, 451]
TreatAsAtomicUnit off
MaskDescription "Proportional-Integral Speed Controller"
MaskPromptString "Proportional gain (Kp)|Integral gain (Ki)|Satur"
"ation limit [pu]"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "Kp=@1;Ki=@2;sat=@3;"
MaskDisplay "plot(0,0,100,100,[35,35,65],[70,30,30],[35,65],"
"[45,60])\n"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString ".1|10|3"
System {
Name "Ps controller"
Location [762, 604, 1069, 751]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Pser"
Position [20, 78, 50, 92]
}
Block {
BlockType Gain
Name "Gain"
Position [85, 71, 110, 99]
ShowName off
Gain "Ki"
}
Block {
BlockType Gain
Name "Gain1"
Position [120, 16, 150, 44]
ShowName off
Gain "Kp"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [130, 70, 155, 100]
ShowName off
LimitOutput on
UpperSaturationLimit "sat"
LowerSaturationLimit "-sat"
}
Block {
BlockType Saturate
Name "Saturation"
Position [225, 50, 245, 70]
ShowName off
UpperLimit "sat"
LowerLimit "-sat"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [175, 50, 195, 70]
ShowName off
IconShape "round"
}
Block {
BlockType Outport
Name "Vsder"
Position [260, 53, 290, 67]
InitialOutput "0"
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [0, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [30, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Pser"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Vsder"
DstPort 1
}
}
}
Block {
BlockType Lookup
Name "Psref"
Position [90, 406, 125, 444]
BackgroundColor "yellow"
NamePlacement "alternate"
FontWeight "bold"
InputValues "[0 2 2.01 10 ] "
OutputValues "[0 0 -1 -1]"
}
Block {
BlockType Scope
Name "Qr"
Ports [1]
Position [1040, 363, 1070, 407]
Location [687, 521, 1124, 672]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "Qr [pu]"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "5"
YMin "-0.5"
YMax "0.5"
SaveName "ScopeData6"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Qs"
Ports [1]
Position [1030, 193, 1060, 237]
Location [679, 463, 1116, 653]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "Qs [pu]"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "5"
YMin "-1"
YMax "1"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType SubSystem
Name "Qs controller"
Ports [1, 1]
Position [230, 484, 310, 536]
TreatAsAtomicUnit off
MaskDescription "Proportional-Integral Speed Controller"
MaskPromptString "Proportional gain (Kp)|Integral gain (Ki)|Satur"
"ation limit [pu]"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "Kp=@1;Ki=@2;sat=@3;"
MaskDisplay "plot(0,0,100,100,[35,35,65],[70,30,30],[35,65],"
"[45,60])\n"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString ".1|10|1000"
System {
Name "Qs controller"
Location [762, 604, 1069, 751]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Qser"
Position [20, 78, 50, 92]
}
Block {
BlockType Gain
Name "Gain"
Position [85, 71, 110, 99]
ShowName off
Gain "Ki"
}
Block {
BlockType Gain
Name "Gain1"
Position [120, 16, 150, 44]
ShowName off
Gain "Kp"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [130, 70, 155, 100]
ShowName off
LimitOutput on
UpperSaturationLimit "sat"
LowerSaturationLimit "-sat"
}
Block {
BlockType Saturate
Name "Saturation"
Position [225, 50, 245, 70]
ShowName off
UpperLimit "sat"
LowerLimit "-sat"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [175, 50, 195, 70]
ShowName off
IconShape "round"
}
Block {
BlockType Outport
Name "Vsqer"
Position [260, 53, 290, 67]
InitialOutput "0"
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Vsqer"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -