📄 masmli.mdl
字号:
BlockType Outport
Name "Out"
Position [270, 58, 300, 72]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 1
Points [20, 0; 0, -15]
DstBlock "Integrator1"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 2
Points [20, 0; 0, 20]
DstBlock "Integrator2"
DstPort 1
}
Line {
SrcBlock "Integrator1"
SrcPort 1
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "Integrator2"
SrcPort 1
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Complex to\nReal-Imag1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Int complexe1"
Ports [1, 1, 0, 0, 0]
Position [130, 199, 175, 251]
ShowPortLabels on
System {
Name "Int complexe1"
Location [418, 293, 743, 474]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In"
Position [25, 58, 55, 72]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag1"
Ports [1, 2, 0, 0, 0]
Position [80, 48, 110, 77]
Output "RealAndImag"
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1, 0, 0, 0]
Position [165, 25, 195, 55]
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Integrator
Name "Integrator2"
Ports [1, 1, 0, 0, 0]
Position [165, 75, 195, 105]
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1, 0, 0, 0]
Position [215, 48, 245, 77]
Input "RealAndImag"
ConstantPart "0"
}
Block {
BlockType Outport
Name "Out"
Position [270, 58, 300, 72]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Complex to\nReal-Imag1"
DstPort 1
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "Integrator2"
SrcPort 1
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Integrator1"
SrcPort 1
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 2
Points [20, 0; 0, 20]
DstBlock "Integrator2"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 1
Points [20, 0; 0, -15]
DstBlock "Integrator1"
DstPort 1
}
}
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1, 0, 0, 0]
Position [605, 100, 635, 130]
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1, 0, 0, 0]
Position [675, 100, 705, 130]
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Gain
Name "Rr"
Position [130, 304, 175, 336]
Orientation "left"
NamePlacement "alternate"
Gain "Rr"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Rs"
Position [130, 144, 175, 176]
Orientation "left"
NamePlacement "alternate"
Gain "Rs"
SaturateOnIntegerOverflow on
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [3, 2, 0, 0, 0]
Position [255, 174, 360, 276]
ShowPortLabels on
System {
Name "Subsystem"
Location [241, 100, 495, 338]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "Flux Stator"
Position [25, 13, 55, 27]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "Flux rotor"
Position [30, 48, 60, 62]
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "Angle Electrique"
Position [210, 168, 240, 182]
Orientation "left"
Port "3"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Constant
Name "Constant1"
Position [175, 220, 205, 250]
Orientation "up"
Value "0"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn4"
Position [125, 30, 185, 60]
MATLABFcn "(1/(Ls-(M^2)/Lr))*(u(1)-(M/Lr)*u(2)*exp"
"(i*u(3)))"
OutputWidth "1"
OutputSignalType "complex"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn6"
Position [130, 100, 190, 130]
MATLABFcn "(1/(Lr-(M^2)/Ls))*(u(2)-(M/Ls)*u(1)*exp"
"(-i*u(3)))"
OutputWidth "1"
OutputSignalType "complex"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1, 0, 0, 0]
Position [90, 26, 95, 64]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex1"
Ports [2, 1, 0, 0, 0]
Position [120, 169, 155, 196]
Orientation "left"
NamePlacement "alternate"
Input "RealAndImag"
ConstantPart "0"
}
Block {
BlockType Outport
Name "I-stator"
Position [210, 38, 240, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "I-rotor"
Position [215, 108, 245, 122]
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "MATLAB Fcn4"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "MATLAB Fcn6"
DstPort 1
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [0, -25]
DstBlock "Real-Imag to\nComplex1"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex1"
SrcPort 1
Points [-40, 0]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Flux Stator"
SrcPort 1
Points [0, 15]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Flux rotor"
SrcPort 1
Points [0, -10]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "MATLAB Fcn4"
SrcPort 1
DstBlock "I-stator"
DstPort 1
}
Line {
SrcBlock "MATLAB Fcn6"
SrcPort 1
DstBlock "I-rotor"
DstPort 1
}
Line {
SrcBlock "Angle Electrique"
SrcPort 1
DstBlock "Real-Imag to\nComplex1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [2, 1, 0, 0, 0]
Position [390, 56, 475, 194]
ShowPortLabels on
System {
Name "Subsystem1"
Location [364, 314, 614, 446]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "Flux Stator"
Position [25, 38, 55, 52]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "I-stator"
Position [60, 95, 90, 110]
Orientation "up"
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn5"
Position [110, 44, 170, 76]
MATLABFcn "(3/4)*(p*i)*((u(1)*conj(u(2)))-(u(2)*co"
"nj(u(1))))"
OutputWidth "1"
OutputSignalType "real"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1, 0, 0, 0]
Position [90, 28, 95, 92]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "Couple"
Position [195, 53, 225, 67]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "MATLAB Fcn5"
DstPort 1
}
Line {
SrcBlock "I-stator"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Flux Stator"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "MATLAB Fcn5"
SrcPort 1
DstBlock "Couple"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [80, 80, 100, 100]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1, 0, 0, 0]
Position [80, 215, 100, 235]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1, 0, 0, 0]
Position [525, 95, 550, 135]
NamePlacement "alternate"
ShowName off
IconShape "rectangular"
Inputs "-+"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "p"
Position [575, 285, 605, 315]
Orientation "left"
NamePlacement "alternate"
Gain "p"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "Flux_sta"
Position [290, 30, 320, 45]
Orientation "down"
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Is_c"
Position [285, 105, 315, 125]
Orientation "up"
NamePlacement "alternate"
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Ir_c"
Position [295, 340, 325, 355]
Orientation "down"
Port "3"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Ce"
Position [490, 220, 520, 235]
Orientation "down"
Port "4"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "W"
Position [640, 220, 670, 235]
Orientation "down"
FontName "Symbol"
Port "5"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Rs"
SrcPort 1
Points [-35, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Int complexe"
DstPort 1
}
Line {
SrcBlock "Rr"
SrcPort 1
Points [-35, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Int complexe1"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "1/J"
DstPort 1
}
Line {
SrcBlock "1/J"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Int complexe1"
SrcPort 1
DstBlock "Subsystem"
DstPort 2
}
Line {
SrcBlock "Subsystem"
SrcPort 1
Points [10, 0; 0, -40; -15, 0]
Branch {
DstBlock "Subsystem1"
DstPort 2
}
Branch {
Points [-60, 0]
Branch {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -