📄 s0504.mdl
字号:
Model {
Name "S0504"
Version 4.00
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
ShowStorageClass off
ExecutionOrder off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Thu Mar 13 21:15:47 2003"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "张森"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Mon Mar 17 18:01:00 2003"
ModelVersionFormat "1.%<AutoIncrement:6>"
ConfigurationManager "None"
SimParamPage "Solver"
StartTime "0.0"
StopTime "10.0"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "auto"
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 "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
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"
TryForcingSFcnDF off
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
ExtModeSkipDownloadWhenConnect off
ExtModeLogAll on
ExtModeAutoUpdateStatusClock on
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt on
RTWExpressionDepthLimit 5
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 "S0504"
Location [432, 86, 956, 380]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name " 离散重置状态"
Ports [0, 2, 1]
Position [115, 32, 290, 103]
NamePlacement "alternate"
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name " 离散重置状态"
Location [155, 122, 456, 314]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [255, 5, 275, 25]
StatesWhenEnabling "reset"
ShowOutputPort off
}
Block {
BlockType SubSystem
Name "Discrete-Time\nIntegrator1"
Ports [1, 1]
Position [115, 19, 155, 61]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Discrete-Time Integrator"
MaskDescription "Discrete-Time Integrator:"
MaskHelp "Implements a zeroth order discrete\\nintegr"
"ation using a gain, a sum, and\\na unit delay. Inputs may be scalar\\nor vect"
"or.\\n"
MaskPromptString "Initial Condition:|Sample Time:"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskInitialization "X0=@1;Ts=@2;"
MaskDisplay "dpoly(Ts,[1 -1],'z')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0|.1"
MaskVariableAliases ","
System {
Name "Discrete-Time\nIntegrator1"
Location [385, 609, 758, 827]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [25, 70, 45, 90]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Gain
Name "Gain"
Position [80, 61, 110, 99]
Gain "Ts"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [150, 63, 180, 127]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [210, 85, 260, 105]
X0 "X0"
SampleTime "Ts"
RTWStateStorageClass "Auto"
}
Block {
BlockType Outport
Name "out_1"
Position [320, 85, 340, 105]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 70; -165, 0; 0, -55]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "out_1"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Unit Delay"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Discrete-Time\nIntegrator2"
Ports [1, 1]
Position [115, 109, 155, 151]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Discrete-Time Integrator"
MaskDescription "Discrete-Time Integrator:"
MaskHelp "Implements a zeroth order discrete\\nintegr"
"ation using a gain, a sum, and\\na unit delay. Inputs may be scalar\\nor vect"
"or.\\n"
MaskPromptString "Initial Condition:|Sample Time:"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskInitialization "X0=@1;Ts=@2;"
MaskDisplay "dpoly(Ts,[1 -1],'z')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0|.1"
MaskVariableAliases ","
System {
Name "Discrete-Time\nIntegrator2"
Location [385, 609, 758, 827]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [25, 70, 45, 90]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Gain
Name "Gain"
Position [80, 61, 110, 99]
Gain "Ts"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [150, 63, 180, 127]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [210, 85, 260, 105]
X0 "X0"
SampleTime "Ts"
RTWStateStorageClass "Auto"
}
Block {
BlockType Outport
Name "out_1"
Position [320, 85, 340, 105]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "out_1"
DstPort 1
}
Branch {
Points [0, 70; -165, 0; 0, -55]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Unit Delay"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "常量1"
Position [45, 30, 65, 50]
Value "1"
VectorParams1D on
}
Block {
BlockType Constant
Name "常量2"
Position [45, 120, 65, 140]
Value "1"
VectorParams1D on
}
Block {
BlockType Outport
Name "保持输出"
Position [215, 30, 235, 50]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Block {
BlockType Outport
Name "使零输出"
Position [215, 120, 235, 140]
Port "2"
OutputWhenDisabled "reset"
InitialOutput "0"
}
Line {
SrcBlock "Discrete-Time\nIntegrator2"
SrcPort 1
DstBlock "使零输出"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -