📄 masvect.mdl
字号:
Model {
Name "masvect"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "2"
SolverMode "Auto"
Solver "ode5"
RelTol "1e-3"
AbsTol "1e-3"
Refine "1"
MaxStep "1/n"
InitialStep "auto"
FixedStep "1/npts"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime off
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput off
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 Dec 22 18:30:43 2001"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Wed Dec 26 11:49:06 2001"
ModelVersionFormat "1.%<AutoIncrement:8>"
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 "masvect"
Location [-7, 138, 698, 395]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType Clock
Name "Clock"
Position [275, 5, 295, 25]
ShowName off
DisplayTime off
Decimation "10"
}
Block {
BlockType SubSystem
Name "Commande vectorielle\nElaboration des consignes"
"\n"
Ports [2, 3, 0, 0, 0]
Position [80, 19, 155, 141]
ForegroundColor "green"
ShowPortLabels on
MaskType "Commande scalaire"
MaskPromptString "Constante de temps rotorique:|Courant magnetisa"
"nt (flux_r/M):"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskVariables "tr=@1;Im=@2;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.14|5"
System {
Name "Commande vectorielle\nElaboration des consign"
"es\n"
Location [141, 164, 765, 590]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "wr"
Position [55, 105, 75, 125]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "teta_s"
Position [155, 135, 175, 155]
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Fcn
Name "Fcn4"
Position [275, 85, 315, 105]
Expr "u[1]*cos(u[2]+u[3])"
}
Block {
BlockType Fcn
Name "Fcn5"
Position [275, 135, 315, 155]
Expr "u[1]*cos(u[2]+u[3]-2*pi/3)"
}
Block {
BlockType Fcn
Name "Fcn6"
Position [275, 185, 315, 205]
Expr "u[1]*cos(u[2]+u[3]+2*pi/3)"
}
Block {
BlockType Fcn
Name "Fcn7"
Position [135, 105, 175, 125]
ShowName off
Expr "Im*sqrt(1+(tr*u[1])^2)"
}
Block {
BlockType Fcn
Name "Fcn8"
Position [125, 175, 165, 195]
ShowName off
Expr "atan(tr*u[1])"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1, 0, 0, 0]
Position [215, 97, 240, 193]
Inputs "3"
DisplayOption "none"
}
Block {
BlockType Outport
Name "ia_cons"
Position [350, 88, 380, 102]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "ib_cons"
Position [345, 135, 365, 155]
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "ic_cons"
Position [345, 185, 365, 205]
Port "3"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Fcn5"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "Fcn4"
DstPort 1
}
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 Gain
Name "Couple"
Position [340, 207, 395, 243]
Gain "20/157"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain"
Position [215, 370, 245, 400]
Orientation "left"
ShowName off
Gain "2"
SaturateOnIntegerOverflow on
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1, 0, 0, 0]
Position [75, 220, 95, 240]
Orientation "up"
ShowName off
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType SubSystem
Name "Mas_modele dq"
Ports [5, 12, 0, 0, 0]
Position [430, 43, 525, 307]
ShowPortLabels on
MaskType "MAS"
MaskDescription "Toutes les inductances sont des inductances cyc"
"liques . Systeme SI"
MaskPromptString "Mutuelle : M =|Inductance rotor : Lr =|Sigma*L"
"s : ls =|Cste de temps rotor : tr =|Resistance stator : Rs =|Nombre de pair"
"es de poles:|Moment d'inertie : J ="
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 "M=@1;Lr=@2;ls=@3;tr=@4;Rs=@5;p=@6;J=@7;"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "58e-3|23e-3|14e-3|140e-3|0.85|2|50e-3"
System {
Name "Mas_modele dq"
Location [14, 74, 638, 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 "Va"
Position [75, 130, 95, 150]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "Vb"
Position [75, 175, 95, 195]
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "Vc"
Position [75, 220, 95, 240]
Port "3"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "Cr"
Position [195, 240, 215, 260]
Orientation "up"
Port "4"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "ws"
Position [20, 300, 40, 320]
Port "5"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType SubSystem
Name "INV PARK"
Ports [3, 3, 0, 0, 0]
Position [390, 137, 425, 173]
ShowPortLabels off
MaskDisplay "disp('PARK-1')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "INV PARK"
Location [4, 42, 628, 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_1"
Position [175, 95, 195, 115]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "in_2"
Position [140, 120, 160, 140]
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "in_3"
Position [170, 170, 190, 190]
Port "3"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Constant
Name "Composante\nhomopolaire"
Position [100, 145, 120, 165]
Value "0"
}
Block {
BlockType Fcn
Name "Fcn4"
Position [275, 85, 315, 105]
Expr "((u[1]*cos(u[4]))-(u[2]*sin(u[4]))+(u[3"
"]))"
}
Block {
BlockType Fcn
Name "Fcn5"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -