📄 mras1.mdl
字号:
SrcBlock "Sum1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Gain3"
DstPort 1
}
Branch {
Points [0, 0; 0, 35]
Branch {
Points [45, 0]
DstBlock "Gain6"
DstPort 1
}
Branch {
Points [-55, 0; 0, 30]
DstBlock "Product3"
DstPort 2
}
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [25, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Inter"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Inter"
DstPort 1
}
Line {
SrcBlock "Sum5"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, 15]
DstBlock "Gain1"
DstPort 1
}
Branch {
DstBlock "Gain2"
DstPort 1
}
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Sum5"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum5"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 2
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Demux8"
SrcPort 1
Points [0, 35]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 1
Points [10, 0]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Demux8"
SrcPort 2
Points [5, 0; 0, -15]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 1
Points [5, 0]
DstBlock "Product3"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 2
DstBlock "Product4"
DstPort 1
}
Line {
SrcBlock "Gain6"
SrcPort 1
Points [-45, 0]
DstBlock "Product4"
DstPort 2
}
Line {
SrcBlock "Product4"
SrcPort 1
Points [5, 0; 0, -25]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Product3"
SrcPort 1
Points [30, 0]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [10, 0; 0, 60; -240, 0; 0, -60]
DstBlock "Sum2"
DstPort 2
}
}
}
Block {
BlockType Saturate
Name "Satur"
Position [160, 32, 185, 58]
UpperLimit "14"
LowerLimit "-14"
LinearizeAsGain on
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [415, 191, 440, 219]
Floating off
Location [16, 88, 798, 535]
Open off
NumInputPorts "3"
TickLabels "OneTimeTick"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "-400~-400~-400"
YMax "400~400~400"
SaveToWorkspace off
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [3]
Position [415, 101, 440, 129]
Floating off
Location [98, 36, 425, 525]
Open off
NumInputPorts "3"
TickLabels "OneTimeTick"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "-15~-25~-30"
YMax "25~20~20"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1]
Position [65, 34, 80, 56]
ShowName off
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Scope
Name "T"
Ports [1]
Position [415, 21, 440, 49]
Floating off
Location [433, 331, 761, 524]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "3.5"
YMax "8"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Lookup
Name "Table"
Position [90, 93, 120, 117]
InputValues "[0 1200 1800]"
OutputValues "[1 1 0.4]"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [95, 29, 145, 61]
Numerator "1*pi/25"
Denominator "[0.003 1]"
Realization "auto"
AbsoluteTolerance "auto"
}
Block {
BlockType Reference
Name "XY Graph"
Ports [2]
Position [415, 143, 440, 172]
SourceBlock "simulink3/Sinks/XY Graph"
SourceType "XY scope."
xmin "-1.2"
xmax "1.2"
ymin "-1.2"
ymax "1.2"
st "-1"
}
Block {
BlockType SubSystem
Name "asynchronous\nMachine1"
Ports [2, 8]
Position [290, 14, 355, 166]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskPromptString "定子电阻: Rs|定子电感: Ls|转子电阻: Rr|转子"
"电感: Lr|定转子互感: Lm|电机惯量: J|电机极对数: np"
MaskStyleString "edit,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on"
MaskCallbackString "||||||"
MaskEnableString "on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on"
MaskVariables "Rs=@1;Ls=@2;Rr=@3;Lr=@4;Lm=@5;J=@6;np=@7;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "2.7|0.3562|2.23|0.3562|0.3425|0.00825|2"
MaskVariableAliases ",,,,,,"
System {
Name "asynchronous\nMachine1"
Location [8, 84, 781, 547]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "TL"
Position [475, 23, 505, 37]
Port "1"
Interpolate on
}
Block {
BlockType Inport
Name "Uabc"
Position [25, 93, 55, 107]
Port "2"
Interpolate on
}
Block {
BlockType SubSystem
Name "2/3"
Ports [1, 1]
Position [505, 205, 525, 235]
NamePlacement "alternate"
ShowName off
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "2/3"
Location [409, 317, 809, 510]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "2"
Position [25, 93, 55, 107]
Port "1"
Interpolate on
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [80, 49, 85, 151]
BackgroundColor "black"
ShowName off
Outputs "2"
BusSelectionMode off
}
Block {
BlockType Gain
Name "Gain"
Position [105, 60, 135, 90]
Gain "sqrt(2/3)"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain1"
Position [105, 110, 135, 140]
Gain "sqrt(2/3)"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain2"
Position [165, 60, 195, 90]
Gain "-1/2"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain3"
Position [165, 110, 195, 140]
Gain "sqrt(3)/2"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Mux
Name "Mux2"
Ports [3, 1]
Position [315, 30, 320, 170]
NamePlacement "alternate"
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [255, 82, 275, 113]
NamePlacement "alternate"
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [250, 127, 270, 158]
NamePlacement "alternate"
ShowName off
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "3"
Position [345, 93, 375, 107]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
Labels [1, 0]
SrcBlock "Gain2"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 15]
DstBlock "Sum3"
DstPort 1
}
Branch {
DstBlock "Sum4"
DstPort 1
}
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [0, 0]
Branch {
Points [10, 0; 0, 25]
DstBlock "Sum4"
DstPort 2
}
Branch {
Points [10, 0; 0, -20]
DstBlock "Sum3"
DstPort 2
}
}
Line {
Labels [1, 0]
SrcBlock "Gain"
SrcPort 1
Points [5, 0; 0, -25]
Branch {
Points [0, 25]
DstBlock "Gain2"
DstPort 1
}
Branch {
Points [0, -20; 130, 0; 0, 25]
DstBlock "Mux2"
DstPort 1
}
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "2"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "3"
DstPort 1
}
Annotation {
Position [92, 66]
Text "a"
}
Annotation {
Position [90, 117]
Text "B"
}
Annotation {
Position [288, 50]
Text "A"
}
Annotation {
Position [290, 94]
Text "B"
}
Annotation {
Position [287, 136]
Text "C"
}
}
}
Block {
BlockType SubSystem
Name "2/4"
Ports [1, 1]
Position [505, 235, 525, 265]
ShowName off
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "2/4"
Location [413, 313, 813, 506]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -