📄 ex38s1.mdl
字号:
Model {
Name "ex38s1"
Version 4.00
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Thu Jun 07 13:23:42 2001"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "Steve"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Wed Jul 03 07:00:30 2002"
ModelVersionFormat "1.%<AutoIncrement:60>"
ConfigurationManager "none"
SimParamPage "Solver"
StartTime "0.0"
StopTime "140"
SolverMode "SingleTasking"
Solver "ode4"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "0.01"
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 "Array"
LimitDataPoints on
MaxDataPoints "100000"
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"
SignalLabelMismatchMsg "none"
LinearizationMsg "none"
VectorMatrixConversionMsg "none"
SfunCompatibilityCheckMsg "none"
BlockPriorityViolationMsg "warning"
ArrayBoundsChecking "none"
ConsistencyChecking "none"
ZeroCross on
Profile off
SimulationMode "normal"
RTWSystemTargetFile "grt.tlc"
RTWOptions "-aLocalBlockOutputs=1 -aInlineInvariantSignals=0 -a"
"InlineParameters=0"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
TLCProfiler off
TLCDebug off
TLCCoverage off
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "normal"
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 on
ExtModeLogAll on
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt off
BooleanDataType off
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 "ex38s1"
Location [433, 140, 954, 585]
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 SubSystem
Name "Abs Error Subsystem"
Ports [2, 1]
Position [45, 309, 115, 336]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Abs Error Subsystem"
Location [294, 145, 656, 396]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "err"
Position [25, 15, 55, 35]
Orientation "down"
NamePlacement "alternate"
Port "1"
Interpolate on
}
Block {
BlockType Inport
Name "t"
Position [25, 80, 55, 100]
Orientation "down"
NamePlacement "alternate"
Port "2"
Interpolate on
}
Block {
BlockType Abs
Name "Abs"
Position [55, 45, 85, 75]
SaturateOnIntegerOverflow on
}
Block {
BlockType Constant
Name "Constant"
Position [15, 125, 45, 155]
Value "100"
VectorParams1D on
}
Block {
BlockType Constant
Name "Constant1"
Position [15, 185, 45, 215]
Value "120"
VectorParams1D on
}
Block {
BlockType Gain
Name "Gain"
Position [110, 45, 135, 75]
Gain "10"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [170, 147, 200, 178]
Operator "AND"
Inputs "2"
}
Block {
BlockType Product
Name "Product"
Ports [3, 1]
Position [170, 42, 190, 78]
Inputs "3"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [105, 112, 135, 143]
Operator ">="
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [105, 177, 135, 208]
Operator "<="
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [245, 52, 265, 83]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType UnitDelay
Name "Unit Delay\nTs=0.1"
Position [240, 100, 275, 140]
Orientation "left"
X0 "0"
SampleTime "0.01"
}
Block {
BlockType Outport
Name "Out1"
Position [310, 88, 340, 102]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
Points [0, -70; -55, 0; 0, -25]
DstBlock "Product"
DstPort 3
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
Points [15, 0]
DstBlock "Logical\nOperator"
DstPort 2
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [15, 0]
DstBlock "Logical\nOperator"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Relational\nOperator1"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [40, 0]
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "t"
SrcPort 1
Points [0, 15; 45, 0]
Branch {
Points [0, 65]
DstBlock "Relational\nOperator1"
DstPort 1
}
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
DstBlock "Product"
DstPort 1
}
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [20, 0; 0, 25]
Branch {
DstBlock "Unit Delay\nTs=0.1"
DstPort 1
}
Branch {
DstBlock "Out1"
DstPort 1
}
}
Line {
SrcBlock "Unit Delay\nTs=0.1"
SrcPort 1
Points [-5, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "err"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Abs Error Subsystem1"
Ports [2, 1]
Position [45, 269, 115, 296]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Abs Error Subsystem1"
Location [294, 145, 656, 396]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "err"
Position [25, 15, 55, 35]
Orientation "down"
NamePlacement "alternate"
Port "1"
Interpolate on
}
Block {
BlockType Inport
Name "t"
Position [25, 80, 55, 100]
Orientation "down"
NamePlacement "alternate"
Port "2"
Interpolate on
}
Block {
BlockType Abs
Name "Abs"
Position [55, 45, 85, 75]
SaturateOnIntegerOverflow on
}
Block {
BlockType Constant
Name "Constant"
Position [15, 125, 45, 155]
Value "70"
VectorParams1D on
}
Block {
BlockType Constant
Name "Constant1"
Position [15, 185, 45, 215]
Value "90"
VectorParams1D on
}
Block {
BlockType Gain
Name "Gain"
Position [110, 45, 135, 75]
Gain "10"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [170, 147, 200, 178]
Operator "AND"
Inputs "2"
}
Block {
BlockType Product
Name "Product"
Ports [3, 1]
Position [170, 42, 190, 78]
Inputs "3"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [105, 112, 135, 143]
Operator ">="
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [105, 177, 135, 208]
Operator "<="
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [245, 52, 265, 83]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType UnitDelay
Name "Unit Delay\nTs=0.1"
Position [240, 100, 275, 140]
Orientation "left"
X0 "0"
SampleTime "0.01"
}
Block {
BlockType Outport
Name "Out1"
Position [310, 88, 340, 102]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "err"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Unit Delay\nTs=0.1"
SrcPort 1
Points [-5, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [20, 0; 0, 25]
Branch {
DstBlock "Out1"
DstPort 1
}
Branch {
DstBlock "Unit Delay\nTs=0.1"
DstPort 1
}
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
DstBlock "Product"
DstPort 2
}
}
Line {
SrcBlock "t"
SrcPort 1
Points [0, 15; 45, 0]
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Relational\nOperator1"
DstPort 1
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -