📄 bib_mas.mdl
字号:
}
Branch {
Points [0, 50]
DstBlock "Fcn6"
DstPort 1
}
}
Line {
SrcBlock "Fcn4"
SrcPort 1
DstBlock "ia_cons"
DstPort 1
}
Line {
SrcBlock "teta_s"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Fcn5"
SrcPort 1
DstBlock "ib_cons"
DstPort 1
}
Line {
SrcBlock "Fcn6"
SrcPort 1
DstBlock "ic_cons"
DstPort 1
}
Line {
SrcBlock "Fcn7"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "wr"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Fcn7"
DstPort 1
}
Branch {
Points [0, 75; 15, 0]
DstBlock "Fcn8"
DstPort 1
}
}
Line {
SrcBlock "Fcn8"
SrcPort 1
Points [30, 0]
DstBlock "Mux1"
DstPort 3
}
}
}
Block {
BlockType SubSystem
Name "Correcteur\ndouble"
Ports [2, 2, 0, 0, 0]
Position [395, 27, 465, 83]
ForegroundColor "green"
ShowPortLabels on
MaskType "PI limite"
MaskDescription "PI limite K(1+to*p)/to*p"
MaskHelp "Implements a limited integrator with \\nan expr"
"ession of the form:\\n\\nif(x<=lb and u<0) or (x>=ub and u>0)\\n\\txdot=0\\ne"
"lse\\n\\txdot=u."
MaskPromptString "K:|to:|Sat min:|sat max:|Initial condition"
MaskStyleString "edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskInitialization "K =@1; to = @2; min = @3; max = @4; xi = @5;"
MaskDisplay "disp('PI\\nlimite ')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "6|0.5e-3|-10|10|0"
System {
Name "Correcteur\ndouble"
Location [290, 239, 521, 437]
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 [125, 50, 145, 70]
Orientation "left"
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "in_2"
Position [125, 110, 145, 130]
Orientation "left"
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType SubSystem
Name "PI LIMITE"
Ports [1, 1, 0, 0, 0]
Position [45, 40, 95, 80]
Orientation "left"
ShowPortLabels off
System {
Name "PI LIMITE"
Location [4, 53, 594, 286]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "entree"
Position [65, 130, 85, 150]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Fcn
Name "Fcn"
Position [205, 121, 235, 149]
ShowName off
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]
ShowName off
Gain "1/to"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain1"
Position [265, 160, 285, 180]
ShowName off
Gain "K"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain2"
Position [265, 125, 285, 145]
ShowName off
Gain "K"
SaturateOnIntegerOverflow on
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1, 0, 0, 0]
Position [345, 126, 390, 144]
ShowName off
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 [145, 116, 175, 149]
ShowName off
Inputs "2"
DisplayOption "none"
}
Block {
BlockType Saturate
Name "Saturation\nmin\nmax"
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]
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "sortie"
Position [550, 145, 570, 165]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Saturation\nmin\nmax"
SrcPort 1
DstBlock "sortie"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "entree"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Mux"
DstPort 2
}
Branch {
Points [15, 0; 0, 30]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Saturation\nmin\nmax"
DstPort 1
}
Branch {
Points [0, -65; -320, 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
}
Annotation {
Position [262, 202]
VerticalAlignment "top"
Text "Correcteur PI avec limitation"
FontName "Times New Roman"
FontSize 16
FontWeight "bold"
}
}
}
Block {
BlockType SubSystem
Name "PI LIMITE1"
Ports [1, 1, 0, 0, 0]
Position [45, 100, 95, 140]
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, 50, 35, 70]
Orientation "left"
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "out_2"
Position [15, 110, 35, 130]
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 SubSystem
Name "Mas_modele dq"
Ports [5, 12, 0, 0, 0]
Position [35, 20, 130, 150]
ShowPortLabels on
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -