?? pmsm_ideal.mdl
字號:
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "5|10| [-500, 500]"
System {
Name "iqref1"
Location [257, 231, 611, 401]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In_1"
Position [25, 75, 45, 95]
}
Block {
BlockType TransferFcn
Name "Integral"
Position [110, 67, 145, 103]
Numerator "[I]"
Denominator "[1 0]"
}
Block {
BlockType Gain
Name "Proportional"
Position [120, 28, 140, 52]
NamePlacement "alternate"
Gain "P"
}
Block {
BlockType Saturate
Name "Saturation"
Position [225, 53, 255, 77]
UpperLimit "max"
LowerLimit "min"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [180, 15, 200, 110]
}
Block {
BlockType Outport
Name "Out_1"
Position [285, 55, 305, 75]
InitialOutput "0"
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Out_1"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Proportional"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "In_1"
SrcPort 1
Points [15, 0; 15, 0]
Branch {
Points [0, -45]
DstBlock "Proportional"
DstPort 1
}
Branch {
DstBlock "Integral"
DstPort 1
}
}
Line {
SrcBlock "Integral"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "iqref2"
Ports [1, 1]
Position [130, 88, 155, 112]
ShowName off
TreatAsAtomicUnit off
MaskType "PI Controller"
MaskPromptString "Integral|Proportional:|Minimum and maximum outp"
"uts:"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskInitialization "I=@1;P=@2;sat=@3;min=sat(1);max=sat(2);"
MaskDisplay "disp('PI')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "5|10| [-30, 30]"
System {
Name "iqref2"
Location [257, 231, 611, 401]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In_1"
Position [25, 75, 45, 95]
}
Block {
BlockType TransferFcn
Name "Integral"
Position [110, 67, 145, 103]
Numerator "[I]"
Denominator "[1 0]"
}
Block {
BlockType Gain
Name "Proportional"
Position [120, 28, 140, 52]
NamePlacement "alternate"
Gain "P"
}
Block {
BlockType Saturate
Name "Saturation"
Position [225, 53, 255, 77]
UpperLimit "max"
LowerLimit "min"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [180, 15, 200, 110]
}
Block {
BlockType Outport
Name "Out_1"
Position [285, 55, 305, 75]
InitialOutput "0"
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Out_1"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Proportional"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "In_1"
SrcPort 1
Points [15, 0; 15, 0]
Branch {
Points [0, -45]
DstBlock "Proportional"
DstPort 1
}
Branch {
DstBlock "Integral"
DstPort 1
}
}
Line {
SrcBlock "Integral"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
}
}
Block {
BlockType Constant
Name "n_ref"
Position [20, 85, 50, 115]
Value "300"
}
Block {
BlockType SubSystem
Name "park"
Ports [3, 2]
Position [585, 261, 655, 379]
Orientation "left"
TreatAsAtomicUnit off
System {
Name "park"
Location [242, 288, 753, 600]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "I_alpha"
Position [70, 138, 100, 152]
}
Block {
BlockType Inport
Name "I_beta"
Position [70, 168, 100, 182]
Port "2"
}
Block {
BlockType Inport
Name "Theta"
Position [70, 78, 100, 92]
Port "3"
}
Block {
BlockType Fcn
Name "Fcn"
Position [130, 104, 170, 126]
ShowName off
Expr "sin(u)"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [130, 74, 170, 96]
ShowName off
Expr "cos(u)"
}
Block {
BlockType Gain
Name "Gain"
Position [335, 95, 365, 125]
ShowName off
}
Block {
BlockType Gain
Name "Gain1"
Position [335, 130, 365, 160]
ShowName off
}
Block {
BlockType Mux
Name "Mux"
Ports [4, 1]
Position [200, 71, 205, 189]
ShowName off
Inputs "[1 1 1 1]"
}
Block {
BlockType Fcn
Name "id"
Position [265, 98, 305, 122]
NamePlacement "alternate"
Expr "u[1]*u[3]+u[2]*u[4]"
}
Block {
BlockType Fcn
Name "iq"
Position [265, 133, 305, 157]
Expr "-u[2]*u[3]+u[1]*u[4]"
}
Block {
BlockType Outport
Name "Id"
Position [395, 103, 425, 117]
InitialOutput "0"
}
Block {
BlockType Outport
Name "Iq"
Position [395, 138, 425, 152]
Port "2"
InitialOutput "0"
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Theta"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Fcn1"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Fcn"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [25, 0]
Branch {
Points [0, 15]
DstBlock "iq"
DstPort 1
}
Branch {
Points [0, -20]
DstBlock "id"
DstPort 1
}
}
Line {
SrcBlock "I_alpha"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "iq"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "id"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Id"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Iq"
DstPort 1
}
Line {
SrcBlock "I_beta"
SrcPort 1
DstBlock "Mux"
DstPort 4
}
}
}
Block {
BlockType SubSystem
Name "park_inv"
Ports [3, 2]
Position [420, 144, 475, 206]
TreatAsAtomicUnit off
Port {
PortNumber 1
Name "Valpha"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
Port {
PortNumber 2
Name "Vbeta"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "park_inv"
Location [370, 276, 881, 588]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "iq"
Position [70, 138, 100, 152]
}
Block {
BlockType Inport
Name "id"
Position [70, 168, 100, 182]
Port "2"
}
Block {
BlockType Inport
Name "Theta"
Position [70, 78, 100, 92]
Port "3"
}
Block {
BlockType Fcn
Name "Fcn"
Position [130, 104, 170, 126]
ShowName off
Expr "sin(u)"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [130, 74, 170, 96]
ShowName off
Expr "cos(u)"
}
Block {
BlockType Gain
Name "Gain"
Position [335, 95, 365, 125]
ShowName off
}
Block {
BlockType Gain
Name "Gain1"
Position [335, 130, 365, 160]
ShowName off
}
Block {
BlockType Mux
Name "Mux"
Ports [4, 1]
Position [200, 71, 205, 189]
ShowName off
Inputs "[1 1 1 1]"
}
Block {
BlockType Fcn
Name "i_alpha"
Position [265, 98, 305, 122]
NamePlacement "alternate"
Expr "u[1]*u[4]-u[2]*u[3]"
}
Block {
BlockType Fcn
Name "i_beta"
Position [265, 133, 305, 157]
Expr "u[2]*u[4]+u[1]*u[3]"
}
Block {
BlockType Outport
Name "I_apha"
Position [395, 103, 425, 117]
InitialOutput "0"
}
Block {
BlockType Outport
Name "I_beta"
Position [395, 138, 425, 152]
Port "2"
InitialOutput "0"
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Theta"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Fcn1"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Fcn"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [25, 0]
Branch {
Points [0, 15]
DstBlock "i_beta"
DstPort 1
}
Branch {
Points [0, -20]
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -