📄 chap9_5sim.mdl
字号:
Model {
Name "chap9_5sim"
Version 5.0
SaveDefaultBlockParams on
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
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
MinMaxOverflowArchiveMode "Overwrite"
BlockNameDataTip off
BlockParametersDataTip on
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Thu May 08 09:06:03 2003"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "Administrator"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Sat Dec 01 16:43:42 2007"
ModelVersionFormat "1.%<AutoIncrement:202>"
ConfigurationManager "none"
SimParamPage "Solver"
LinearizationMsg "none"
Profile off
ParamWorkspaceSource "MATLABWorkspace"
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
BufferReuse on
RTWExpressionDepthLimit 5
SimulationMode "normal"
Solver "ode45"
SolverMode "Auto"
StartTime "0.0"
StopTime "30"
MaxOrder 5
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "0.001"
RelTol "1e-3"
AbsTol "auto"
OutputOption "RefineOutputTimes"
OutputTimes "[]"
Refine "1"
LoadExternalInput off
ExternalInput "[t, u]"
LoadInitialState off
InitialState "xInitial"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Array"
Decimation "1"
LimitDataPoints off
MaxDataPoints "1000"
SignalLoggingName "sigsOut"
ConsistencyChecking "none"
ArrayBoundsChecking "none"
AlgebraicLoopMsg "warning"
BlockPriorityViolationMsg "warning"
MinStepSizeMsg "warning"
InheritedTsInSrcMsg "warning"
DiscreteInheritContinuousMsg "warning"
MultiTaskRateTransMsg "error"
SingleTaskRateTransMsg "none"
CheckForMatrixSingularity "none"
IntegerOverflowMsg "warning"
Int32ToFloatConvMsg "warning"
ParameterDowncastMsg "error"
ParameterOverflowMsg "error"
ParameterPrecisionLossMsg "warning"
UnderSpecifiedDataTypeMsg "none"
UnnecessaryDatatypeConvMsg "none"
VectorMatrixConversionMsg "none"
InvalidFcnCallConnMsg "error"
SignalLabelMismatchMsg "none"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
SfunCompatibilityCheckMsg "none"
RTWInlineParameters off
BlockReductionOpt on
BooleanDataType off
ConditionallyExecuteInputs on
ParameterPooling on
OptimizeBlockIOStorage on
ZeroCross on
AssertionControl "UseLocalSettings"
ProdHWDeviceType "Microprocessor"
ProdHWWordLengths "8,16,32,32"
RTWSystemTargetFile "grt.tlc"
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
RTWRetainRTWFile off
TLCProfiler off
TLCDebug off
TLCCoverage off
TLCAssertion off
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Clock
DisplayTime off
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType Sin
SineType "Time based"
Amplitude "1"
Bias "0"
Frequency "1"
Phase "0"
Samples "10"
Offset "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
}
}
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 "chap9_5sim"
Location [2, 82, 1014, 730]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Clock
Name "Clock"
Position [90, 302, 125, 328]
DisplayTime on
Decimation "1"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [275, 167, 300, 213]
ShowName off
Inputs "3"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [270, 267, 295, 318]
ShowName off
Inputs "2"
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1]
Position [680, 97, 705, 148]
ShowName off
Inputs "2"
}
Block {
BlockType Mux
Name "Mux4"
Ports [2, 1]
Position [680, 322, 705, 373]
ShowName off
Inputs "2"
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [335, 170, 440, 210]
FunctionName "chap9_5ctrl"
}
Block {
BlockType "S-Function"
Name "S-Function1"
Ports [1, 1]
Position [495, 171, 610, 209]
FunctionName "chap9_5plant"
}
Block {
BlockType "S-Function"
Name "S-Function2"
Ports [1, 1]
Position [320, 276, 425, 314]
FunctionName "chap9_5obv"
}
Block {
BlockType Sin
Name "Sine Wave1"
Position [110, 153, 140, 197]
SineType "Time based"
SampleTime "0"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [155, 303, 185, 327]
VariableName "t"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [740, 109, 775, 141]
VariableName "y"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [740, 334, 775, 366]
VariableName "f"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace3"
Position [515, 259, 545, 281]
VariableName "ut"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "To Workspace1"
DstPort 1
}
Line {
SrcBlock "S-Function"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
DstBlock "S-Function1"
DstPort 1
}
Branch {
Points [-20, 0]
Branch {
Points [0, 205; -230, 0; 0, -115]
DstBlock "Mux2"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "To Workspace3"
DstPort 1
}
}
}
Line {
Labels [0, 0]
SrcBlock "Sine Wave1"
SrcPort 1
Points [70, 0]
Branch {
DstBlock "Mux1"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "Mux3"
DstPort 1
}
}
Line {
SrcBlock "S-Function1"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 230; -375, 0]
Branch {
Points [-40, 0; 0, -230]
DstBlock "Mux1"
DstPort 2
}
Branch {
DstBlock "Mux2"
DstPort 2
}
}
Branch {
Points [20, 0]
Branch {
Points [0, -55]
DstBlock "Mux3"
DstPort 2
}
Branch {
Points [0, 145]
DstBlock "Mux4"
DstPort 1
}
}
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "S-Function2"
DstPort 1
}
Line {
SrcBlock "S-Function2"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, -45; -215, 0; 0, -45]
DstBlock "Mux1"
DstPort 3
}
Branch {
Points [0, 65]
DstBlock "Mux4"
DstPort 2
}
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "To Workspace2"
DstPort 1
}
Annotation {
Position [390, 519]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -