📄 masmli.mdl
字号:
Model {
Name "mas_mli"
Version 3.00
SimParamPage "Diagnostics"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "1"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "1e-4"
InitialStep "auto"
FixedStep "1e-4"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Matrix"
LimitMaxRows off
MaxRows "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "none"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
IntegerOverflowMsg "warning"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
ConsistencyChecking "off"
ZeroCross on
SimulationMode "normal"
BlockDataTips on
BlockParametersDataTip on
BlockAttributesDataTip off
BlockPortWidthsDataTip off
BlockDescriptionStringDataTip off
BlockMaskParametersDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
OptimizeBlockIOStorage on
BufferReuse on
BooleanDataType off
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "oneshot"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect off
Created "Sat Sep 15 17:37:41 2001"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Wed Dec 26 11:43:14 2001"
ModelVersionFormat "1.%<AutoIncrement:41>"
ConfigurationManager "none"
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "mas_mli"
Location [160, 310, 932, 406]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom off
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Commande\nMLI"
Ports [3, 4, 0, 0, 0]
Position [75, 39, 155, 146]
ForegroundColor "green"
ShowPortLabels on
MaskType "MLI"
MaskPromptString "Frequence de la porteuse f:(en Hz)|Amplitude d"
"e la porteuse Umaxp:"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskInitialization "f=@1;Um=@2;"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1000|10"
System {
Name "Commande\nMLI"
Location [6, 74, 630, 500]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "mod a"
Position [165, 135, 185, 155]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "mod b"
Position [165, 185, 185, 205]
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "mod c\n"
Position [165, 240, 185, 260]
Port "3"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType SubSystem
Name "Porteuse triangulaire\nFrequence f\nAmplitu"
"de Umaxp"
Ports [0, 1, 0, 0, 0]
Position [189, 65, 251, 105]
Orientation "down"
ShowPortLabels off
MaskType "Repeating table"
MaskDescription "Repeating table.\nEnter values of time and "
"output for first cycle."
MaskHelp "Repeats cycle given in table. Time values s"
"hould be monotonically increasing."
MaskPromptString "Time values:|Output values:"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskInitialization "period = max(@1); t = @1; y = @2;"
MaskDisplay "plot([t,t+period,t+2*period],[y,y,y])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[0 1/(4*f) 3/(4*f) 1/f]|[0 Um -Um 0]"
System {
Name "Porteuse triangulaire\nFrequence f\nAmpli"
"tude Umaxp"
Location [5, 40, 315, 196]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Clock
Name "Clock"
Position [45, 60, 65, 80]
DisplayTime off
Decimation "10"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [110, 60, 150, 80]
Expr "rem(u[1],period)"
}
Block {
BlockType Lookup
Name "Look Up Table"
Position [210, 58, 250, 82]
InputValues "t"
OutputValues "y"
}
Block {
BlockType Outport
Name "out_1"
Position [285, 60, 305, 80]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Look Up Table"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Look Up Table"
DstPort 1
}
}
}
Block {
BlockType Relay
Name "Relay"
Position [340, 129, 365, 151]
OnSwitchValue "eps"
OffSwitchValue "eps"
OnOutputValue "1"
OffOutputValue "0"
}
Block {
BlockType Relay
Name "Relay1"
Position [340, 180, 365, 200]
OnSwitchValue "eps"
OffSwitchValue "eps"
OnOutputValue "1"
OffOutputValue "0"
}
Block {
BlockType Relay
Name "Relay2"
Position [340, 235, 365, 255]
OnSwitchValue "eps"
OffSwitchValue "eps"
OnOutputValue "1"
OffOutputValue "0"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1, 0, 0, 0]
Position [265, 130, 285, 150]
IconShape "rectangular"
Inputs "-+"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1, 0, 0, 0]
Position [265, 180, 285, 200]
IconShape "rectangular"
Inputs "-+"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1, 0, 0, 0]
Position [265, 235, 285, 255]
IconShape "rectangular"
Inputs "-+"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "fca"
Position [420, 130, 440, 150]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "fcb"
Position [425, 180, 445, 200]
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "fcc"
Position [425, 235, 445, 255]
Port "3"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "U porteuse"
Position [430, 300, 450, 320]
Port "4"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Sum5"
SrcPort 1
DstBlock "Relay2"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "Relay1"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Relay"
DstPort 1
}
Line {
SrcBlock "Relay"
SrcPort 1
DstBlock "fca"
DstPort 1
}
Line {
SrcBlock "mod a"
SrcPort 1
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "mod b"
SrcPort 1
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Relay1"
SrcPort 1
DstBlock "fcb"
DstPort 1
}
Line {
SrcBlock "mod c\n"
SrcPort 1
DstBlock "Sum5"
DstPort 2
}
Line {
SrcBlock "Relay2"
SrcPort 1
DstBlock "fcc"
DstPort 1
}
Line {
SrcBlock "Porteuse triangulaire\nFrequence f\nAmplitu"
"de Umaxp"
SrcPort 1
Points [0, 25]
Branch {
DstBlock "Sum3"
DstPort 1
}
Branch {
Points [0, 50]
Branch {
DstBlock "Sum4"
DstPort 1
}
Branch {
Points [0, 55]
Branch {
DstBlock "Sum5"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "U porteuse"
DstPort 1
}
}
}
}
Annotation {
Position [352, 337]
VerticalAlignment "top"
Text "Commande MLI"
FontName "Times New Roman"
FontSize 16
FontWeight "bold"
}
}
}
Block {
BlockType Gain
Name "Gain"
Position [550, 20, 580, 50]
Gain "0.1"
SaturateOnIntegerOverflow on
}
Block {
BlockType SubSystem
Name "Mas_vecteurs \ncomplexes"
Ports [3, 5, 0, 0, 0]
Position [370, 56, 435, 184]
ForegroundColor "red"
ShowPortLabels on
MaskType "MAS_vecteurs complexes"
MaskPromptString "Resistance statorique:|Resistance rotorique:|Mu"
"tuelle inductance:|Inductance cyclique statorique:|Inductance cyclique rotori"
"que:|Nombre de paires de poles:|Moment d'inertie:"
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"
MaskVariables "Rs=@1;Rr=@2;M=@3;Ls=@4;Lr=@5;p=@6;J=@7;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.85|0.16|0.058|0.160|0.023|2|0.050"
System {
Name "Mas_vecteurs \ncomplexes"
Location [40, 125, 788, 582]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "Vs_c"
Position [25, 83, 55, 97]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "Vr_c"
Position [25, 218, 55, 232]
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "Cr"
Position [475, 18, 505, 32]
Port "3"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Gain
Name "1/J"
Position [565, 99, 590, 131]
Gain "1/J"
SaturateOnIntegerOverflow on
}
Block {
BlockType SubSystem
Name "Int complexe"
Ports [1, 1, 0, 0, 0]
Position [130, 64, 175, 116]
ShowPortLabels on
System {
Name "Int complexe"
Location [424, 287, 749, 468]
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 {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -