📄 masvect.mdl
字号:
SrcBlock "Sum"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Saturation"
DstPort 1
}
Branch {
Points [0, -65; -380, 0; 0, 35]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "PI LIMITE1"
Ports [1, 1, 0, 0, 0]
Position [50, 105, 100, 145]
Orientation "left"
ShowPortLabels off
System {
Name "PI LIMITE1"
Location [4, 42, 628, 275]
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_1"
Position [20, 130, 40, 150]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Fcn
Name "Fcn"
Position [145, 119, 245, 151]
Expr "u[2]*((((u[1]>min)+(u[2]>=0))>0) * (((u"
"[1]<max)+(u[2]<=0))>0))"
}
Block {
BlockType Gain
Name "Gain"
Position [305, 113, 330, 157]
Gain "1/to"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain1"
Position [265, 160, 285, 180]
Gain "K"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain2"
Position [265, 125, 285, 145]
Gain "K"
SaturateOnIntegerOverflow on
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1, 0, 0, 0]
Position [345, 126, 390, 144]
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "xi"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1, 0, 0, 0]
Position [85, 116, 115, 149]
Inputs "2"
DisplayOption "none"
}
Block {
BlockType Saturate
Name "Saturation"
Position [455, 141, 500, 169]
UpperLimit "max"
LowerLimit "min"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [405, 115, 425, 190]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "Out_1"
Position [550, 145, 570, 165]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Saturation"
DstPort 1
}
Branch {
Points [0, -65; -380, 0; 0, 35]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "In_1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, 30]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Out_1"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "out_1"
Position [15, 55, 35, 75]
Orientation "left"
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "out_2"
Position [10, 115, 30, 135]
Orientation "left"
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "PI LIMITE"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "PI LIMITE"
DstPort 1
}
Line {
SrcBlock "PI LIMITE1"
SrcPort 1
DstBlock "out_2"
DstPort 1
}
Line {
SrcBlock "in_2"
SrcPort 1
DstBlock "PI LIMITE1"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [205, 35, 225, 55]
ShowName off
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1, 0, 0, 0]
Position [205, 85, 225, 105]
ShowName off
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1, 0, 0, 0]
Position [75, 295, 95, 315]
Orientation "up"
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1, 0, 0, 0]
Position [390, 155, 405, 190]
ShowName off
IconShape "rectangular"
Inputs "--"
SaturateOnIntegerOverflow on
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [310, 7, 360, 23]
ShowName off
VariableName "t"
Buffer "npts"
Decimation "1"
SampleTime "0"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace10"
Position [585, 255, 635, 275]
ShowName off
VariableName "ids"
Buffer "npts"
Decimation "1"
SampleTime "0"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace11"
Position [585, 275, 635, 295]
ShowName off
VariableName "iqs"
Buffer "npts"
Decimation "1"
SampleTime "0"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace12"
Position [200, 7, 250, 23]
ShowName off
VariableName "iacons"
Buffer "npts"
Decimation "1"
SampleTime "0"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace13"
Position [585, 227, 635, 243]
ShowName off
VariableName "ib"
Buffer "npts"
Decimation "1"
SampleTime "0"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace14"
Position [115, 182, 165, 198]
ShowName off
VariableName "teta"
Buffer "npts"
Decimation "1"
SampleTime "0"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [410, 7, 460, 23]
ShowName off
VariableName "va"
Buffer "npts"
Decimation "1"
SampleTime "0"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace3"
Position [585, 197, 635, 213]
ShowName off
VariableName "ia"
Buffer "npts"
Decimation "1"
SampleTime "0"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace4"
Position [35, 390, 85, 410]
Orientation "down"
ShowName off
VariableName "wrest"
Buffer "npts"
Decimation "1"
SampleTime "0"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace5"
Position [585, 375, 635, 395]
ShowName off
VariableName "w"
Buffer "npts"
Decimation "1"
SampleTime "0"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace6"
Position [585, 20, 635, 40]
ShowName off
VariableName "fdr"
Buffer "npts"
Decimation "1"
SampleTime "0"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace7"
Position [585, 60, 635, 80]
ShowName off
VariableName "fqr"
Buffer "npts"
Decimation "1"
SampleTime "0"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace8"
Position [585, 100, 635, 120]
ShowName off
VariableName "wr"
Buffer "npts"
Decimation "1"
SampleTime "0"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace9"
Position [585, 155, 635, 175]
ShowName off
VariableName "ce"
Buffer "npts"
Decimation "1"
SampleTime "0"
SaveFormat "Matrix"
}
Block {
BlockType Step
Name "wr"
Position [25, 5, 45, 25]
Orientation "down"
Time "1.1"
Before "0"
After "11.42"
SampleTime "0"
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "To Workspace1"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [10, 0; 0, 30]
DstBlock "PI"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "PI"
DstPort 2
}
Line {
SrcBlock "Commande vectorielle\nElaboration des consignes"
"\n"
SrcPort 2
Points [0, 10]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Mas_modele dq"
SrcPort 3
Points [5, 0; 0, -75]
DstBlock "To Workspace6"
DstPort 1
}
Line {
SrcBlock "Mas_modele dq"
SrcPort 4
Points [15, 0; 0, -55]
DstBlock "To Workspace7"
DstPort 1
}
Line {
SrcBlock "Mas_modele dq"
SrcPort 5
Points [40, 0]
DstBlock "To Workspace8"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [-120, 0]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Mas_modele dq"
SrcPort 6
DstBlock "To Workspace9"
DstPort 1
}
Line {
SrcBlock "Mas_modele dq"
SrcPort 11
DstBlock "To Workspace10"
DstPort 1
}
Line {
SrcBlock "Mas_modele dq"
SrcPort 12
DstBlock "To Workspace11"
DstPort 1
}
Line {
SrcBlock "Couple"
SrcPort 1
DstBlock "Mas_modele dq"
DstPort 4
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -