📄 mras_shiyan_11_18.mdl
字号:
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 93, 55, 107]
}
Block {
BlockType Saturate
Name "Saturation"
Position [325, 85, 355, 115]
UpperLimit "MAX"
LowerLimit "MIN"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [215, 29, 255, 171]
ShowName off
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [135, 128, 175, 162]
Numerator "[I]"
Denominator "[1 0]"
}
Block {
BlockType Gain
Name "proportation"
Position [145, 85, 175, 115]
NamePlacement "alternate"
Gain "P"
}
Block {
BlockType Outport
Name "Out1"
Position [430, 93, 460, 107]
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "proportation"
DstPort 1
}
Branch {
Points [0, 45]
DstBlock "Transfer Fcn"
DstPort 1
}
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "proportation"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
}
}
Block {
BlockType Step
Name "Step"
Position [115, 120, 145, 150]
Time "0"
After "10"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [5, 4]
Position [725, 603, 790, 697]
Orientation "left"
NamePlacement "alternate"
TreatAsAtomicUnit off
MaskDescription "定子电阻和转速辨识"
MaskPromptString "互感|定子自感|转子自感|定子电阻|转子时间常数|极"
"对数"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "|||||"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "Lm=@1;Ls=@2;Lr=@3;Rs=@4;Tr=@5;Pn=@6;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.325|0.3573|0.3573|3.0|0.1348|2"
System {
Name "Subsystem1"
Location [6, 99, 970, 682]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "usa"
Position [50, 78, 80, 92]
}
Block {
BlockType Inport
Name "usb"
Position [50, 118, 80, 132]
Port "2"
}
Block {
BlockType Inport
Name "isa"
Position [50, 198, 80, 212]
Port "3"
}
Block {
BlockType Inport
Name "isb"
Position [50, 253, 80, 267]
Port "4"
}
Block {
BlockType Inport
Name "w_real"
Position [50, 633, 80, 647]
Port "5"
}
Block {
BlockType SubSystem
Name "Cartesian to\nPolar"
Ports [2, 2]
Position [800, 234, 875, 321]
AncestorBlock "simulink_extras/Transformations/Cartesian t"
"o\nPolar"
TreatAsAtomicUnit off
MaskType "Cart2Polar"
MaskDescription "Transformation from cartesian to polar coor"
"dinates.\n[x, y] -> [R, Theta]\n\nR = sqrt(x^2 + y^2);\nTheta = atan(y/x);"
MaskHelp "Unmask this block for more help."
MaskDisplay "plot(0,0,100,100,[24,20,15,20,20],[85,95,85"
",95,20],[80,20,95,85,95,85],[70,20,20,15,20,24],[56,56,55,52,50,46],[20,26,31"
",35,38,42])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Cartesian to\nPolar"
Location [487, 300, 846, 506]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "x"
Position [20, 70, 40, 90]
}
Block {
BlockType Inport
Name "y"
Position [20, 129, 40, 151]
Port "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [75, 96, 105, 129]
Inputs "2"
}
Block {
BlockType Fcn
Name "x->r"
Position [155, 72, 260, 98]
Expr "hypot(u[1],u[2])"
}
Block {
BlockType Fcn
Name "x->theta"
Position [160, 129, 265, 151]
Expr "atan2(u[2],u[1])"
}
Block {
BlockType Outport
Name "r"
Position [295, 75, 315, 95]
InitialOutput "0"
}
Block {
BlockType Outport
Name "theta"
Position [295, 130, 315, 150]
Port "2"
InitialOutput "0"
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [15, 0; 0, 0]
Branch {
Points [0, 25]
DstBlock "x->theta"
DstPort 1
}
Branch {
Points [0, -30]
DstBlock "x->r"
DstPort 1
}
}
Line {
SrcBlock "x->r"
SrcPort 1
DstBlock "r"
DstPort 1
}
Line {
SrcBlock "x"
SrcPort 1
Points [15, 0]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "y"
SrcPort 1
Points [15, 0]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "x->theta"
SrcPort 1
DstBlock "theta"
DstPort 1
}
}
}
Block {
BlockType Gain
Name "Gain"
Position [910, 30, 940, 60]
Gain "Pn*Lm/Lr"
}
Block {
BlockType SubSystem
Name "Is_w"
Ports [3, 2]
Position [150, 230, 225, 320]
TreatAsAtomicUnit off
System {
Name "Is_w"
Location [2, 82, 1390, 1003]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "isa"
Position [25, 43, 55, 57]
}
Block {
BlockType Inport
Name "w"
Position [25, 143, 55, 157]
Port "2"
}
Block {
BlockType Inport
Name "isb"
Position [25, 238, 55, 252]
Port "3"
}
Block {
BlockType Gain
Name "Gain"
Position [115, 29, 160, 71]
Gain "Lm"
}
Block {
BlockType Gain
Name "Gain1"
Position [120, 135, 150, 165]
Gain "Tr"
}
Block {
BlockType Gain
Name "Gain2"
Position [115, 227, 160, 263]
Gain "Lm"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [190, 91, 235, 124]
InputSameDT off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [190, 186, 235, 219]
InputSameDT off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [245, 40, 265, 60]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [250, 235, 270, 255]
ShowName off
IconShape "round"
Inputs "++|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [335, 32, 395, 68]
Denominator "[Tr 1]"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn1"
Position [335, 227, 395, 263]
Denominator "[Tr 1]"
}
Block {
BlockType Outport
Name "Fra_I"
Position [500, 43, 530, 57]
}
Block {
BlockType Outport
Name "Frb_I"
Position [500, 238, 530, 252]
Port "2"
}
Line {
SrcBlock "isa"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "w"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "isb"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, 110; -245, 0; 0, 35]
DstBlock "Product1"
DstPort 1
}
Branch {
DstBlock "Fra_I"
DstPort 1
}
}
Line {
SrcBlock "Transfer Fcn1"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
Points [0, -105; -265, 0; 0, -25]
DstBlock "Product"
DstPort 2
}
Branch {
DstBlock "Frb_I"
DstPort 1
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, -50]
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [15, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Transfer Fcn"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [20, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Transfer Fcn1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "PI REGULATOR"
Ports [1, 1]
Position [595, 124, 625, 166]
TreatAsAtomicUnit off
MaskDescription "PI调节器"
MaskPromptString "PROPORTATION|INTEGRAL|MAX|MIN"
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 "P=@1;I=@2;MAX=@3;MIN=@4;"
MaskDisplay "disp('PI')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "125|500|3000 |-3000"
System {
Name "PI REGULATOR"
Location [182, 274, 667, 468]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 93, 55, 107]
}
Block {
BlockType Saturate
Name "Saturation"
Position [325, 85, 355, 115]
UpperLimit "MAX"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -