📄 ptest3sim2.mdl
字号:
# $Revision: 1.2 $
Model {
Name "ptest3sim2"
Version 5.0
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
ShowLoopsOnError on
IgnoreBidirectionalLines off
ShowStorageClass off
ExecutionOrder off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
covSaveCumulativeToWorkspaceVar on
CovSaveSingleToWorkspaceVar on
CovCumulativeVarName "covCumulativeData"
CovCumulativeReport off
BlockNameDataTip off
BlockParametersDataTip on
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Fri Oct 16 21:07:47 1998"
Creator "munlock -all d:\\work\\myr12\\toolbox\\fuzzy\\fuzzy"
"\\mfedit.m"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "munlock -all d:\\work\\myr12\\toolbox\\fuzzy\\fuzzy"
"\\mfedit.m"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Mon Feb 25 14:15:49 2002"
ModelVersionFormat "1.%<AutoIncrement:42>"
ConfigurationManager "none"
SimParamPage "RTW"
StartTime "0.0"
StopTime "999999"
SolverMode "SingleTasking"
Solver "FixedStepDiscrete"
RelTol "1e-3"
AbsTol "1e-6"
Refine "1"
MaxStep "10"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "auto"
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 "Array"
LimitDataPoints off
MaxDataPoints "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
SingleTaskRateTransMsg "none"
MultiTaskRateTransMsg "error"
IntegerOverflowMsg "warning"
CheckForMatrixSingularity "none"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
InvalidFcnCallConnMsg "error"
SignalLabelMismatchMsg "none"
LinearizationMsg "none"
VectorMatrixConversionMsg "none"
SfunCompatibilityCheckMsg "none"
BlockPriorityViolationMsg "warning"
ArrayBoundsChecking "none"
ConsistencyChecking "none"
ZeroCross on
Profile off
SimulationMode "normal"
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
ParamWorkspaceSource "MATLABWorkspace"
RTWRetainRTWFile off
RTWTemplateMakefile "grt_vc.tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
TLCProfiler off
TLCDebug off
TLCCoverage off
TLCAssertion off
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
TryForcingSFcnDF 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
ExtModeSkipDownloadWhenConnect off
ExtModeLogAll on
ExtModeAutoUpdateStatusClock on
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt on
RTWExpressionDepthLimit 5
BooleanDataType off
AssertionControl "UseLocalSettings"
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 "ptest3sim2"
Location [339, 458, 979, 865]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Inport
Name "Inport"
Position [70, 155, 90, 175]
BackgroundColor "lightBlue"
Port "1"
LatchInput off
PortDimensions "1"
Interpolate on
}
Block {
BlockType Inport
Name "Inport1"
Position [70, 205, 90, 225]
BackgroundColor "lightBlue"
Port "2"
LatchInput off
PortDimensions "1"
Interpolate on
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [2, 6]
Position [135, 138, 390, 237]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskPromptString "yd_init|y_init|ud_init|u_init|mint|maxt|minp|ma"
"xp|Ts|S1|Nu|Normalize|Nj|Ni|LW2_1|LW1_2|IW_gU|IW|B2|B1"
MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit,edit,ed"
"it,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on"
MaskCallbackString "|||||||||||||||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on"
MaskVarAliasString ",,,,,,,,,,,,,,,,,,,"
MaskVariables "yd_init=@1;y_init=@2;ud_init=@3;u_init=@4;mint="
"@5;maxt=@6;minp=@7;maxp=@8;Ts=@9;S1=@10;Nu=@11;Normalize=@12;Nj=@13;Ni=@14;LW"
"2_1=@15;LW1_2=@16;IW_gU=@17;IW=@18;B2=@19;B1=@20;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "|||||||||||||||||||"
System {
Name "Subsystem"
Location [19, 93, 1016, 616]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 343, 55, 357]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In2"
Position [690, 433, 720, 447]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Constant
Name "Constant"
Position [265, 410, 285, 430]
Value "B1"
VectorParams1D on
}
Block {
BlockType Constant
Name "Constant1"
Position [435, 420, 455, 440]
Value "B2"
VectorParams1D on
}
Block {
BlockType Constant
Name "Constant2"
Position [425, 55, 445, 75]
Value "1"
VectorParams1D on
}
Block {
BlockType Constant
Name "Constant3"
Position [420, 179, 475, 201]
Value "ones(S1,1)"
VectorParams1D on
}
Block {
BlockType DiscreteStateSpace
Name "Discrete State-Space"
Position [140, 341, 250, 379]
A "[0 zeros(1,Ni-2);eye(Ni-2,Ni-1)]"
B "[zeros(double(Ni==1));eye(Ni-1,1)]"
C "[0 zeros(1,Ni-2);eye(Ni-1,Ni-1)]"
D "eye(Ni,1) "
X0 "ud_init"
SampleTime "Ts"
Realization "auto"
RTWStateStorageClass "Auto"
}
Block {
BlockType DiscreteStateSpace
Name "Discrete State-Space2"
Position [125, 266, 235, 304]
A "[0 zeros(1,Nj-2);eye(Nj-2,Nj-1)]"
B "[zeros(double(Nj==1));eye(Nj-1,1)]"
C "[0 zeros(1,Nj-2);eye(Nj-1,Nj-1)]"
D "eye(Nj,1) "
X0 "yd_init"
SampleTime "Ts"
Realization "auto"
RTWStateStorageClass "Auto"
}
Block {
BlockType Gain
Name "LW2,1"
Position [485, 50, 515, 80]
Gain "LW2_1'"
Multiplication "Matrix(K*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Matrix\nGain"
Position [265, 345, 295, 375]
Gain "IW"
Multiplication "Matrix(K*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Matrix\nGain1"
Position [260, 270, 290, 300]
Gain "LW1_2"
Multiplication "Matrix(K*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Matrix\nGain2"
Position [430, 345, 460, 375]
Gain "LW2_1"
Multiplication "Matrix(K*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Matrix\nGain3"
Position [675, 25, 705, 55]
Gain "IW_gU'"
Multiplication "Matrix(K*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Matrix\nGain4"
Position [660, 200, 690, 230]
Gain "LW1_2'"
Multiplication "Matrix(K*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Mux
Name "Mux6"
Ports [2, 1]
Position [785, 98, 820, 147]
Inputs "2"
DisplayOption "none"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [445, 117, 475, 148]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [575, 57, 605, 88]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [860, 110, 920, 140]
FunctionName "dyduvar"
Parameters "Nu,Ni,Nj,Ts,minp,maxp,mint,maxt,Normalize"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [745, 417, 775, 448]
IconShape "rectangular"
Inputs "-+"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [510, 127, 540, 158]
IconShape "rectangular"
Inputs "-+"
SaturateOnIntegerOverflow on
}
Block {
BlockType UnitDelay
Name "Unit Delay2"
Position [580, 355, 610, 385]
X0 "y_init"
SampleTime "Ts"
RTWStateStorageClass "Auto"
}
Block {
BlockType UnitDelay
Name "Unit Delay3"
Position [80, 335, 110, 365]
X0 "u_init"
SampleTime "Ts"
RTWStateStorageClass "Auto"
}
Block {
BlockType SubSystem
Name "netsum"
Ports [3, 1]
Position [320, 339, 345, 381]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('+')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "netsum"
Location [320, 85, 820, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [20, 50, 40, 70]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In2"
Position [20, 90, 40, 110]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In3"
Position [20, 130, 40, 150]
Port "3"
LatchInput off
Interpolate on
}
Block {
BlockType Sum
Name "netsum"
Ports [3, 1]
Position [90, 59, 115, 101]
IconShape "rectangular"
Inputs "3"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "Out1"
Position [145, 80, 165, 100]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "netsum"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "netsum"
DstPort 2
}
Line {
SrcBlock "In3"
SrcPort 1
DstBlock "netsum"
DstPort 3
}
Line {
SrcBlock "netsum"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "netsum1"
Ports [2, 1]
Position [490, 350, 515, 385]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('+')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "netsum1"
Location [320, 85, 820, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [20, 65, 40, 85]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In2"
Position [20, 105, 40, 125]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Sum
Name "netsum1"
Ports [2, 1]
Position [90, 60, 115, 95]
IconShape "rectangular"
Inputs "2"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "Out1"
Position [145, 80, 165, 100]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "netsum1"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "netsum1"
DstPort 2
}
Line {
SrcBlock "netsum1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "purelin"
Ports [1, 1]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -