📄 rtex.mdl
字号:
Model {
Name "RTex"
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 "Sun Oct 01 21:15:52 2000"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "leo"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Sat Mar 20 13:56:57 2004"
ModelVersionFormat "1.%<AutoIncrement:99>"
ConfigurationManager "none"
SimParamPage "RTW"
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 "ode3"
SolverMode "Auto"
StartTime "0.0"
StopTime "10"
MaxOrder 5
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "0.05"
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 off
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 S_FUNCTIONS_LIB=\"..\\rt.lib ..\\winmm.lib"
"\""
RTWGenerateCodeOnly off
RTWRetainRTWFile off
TLCProfiler off
TLCDebug off
TLCCoverage off
TLCAssertion off
RTWOptions " -aEnforceIntegerDowncast=1 -aExtMode=0 -aExtModeTe"
"sting=0 -aFoldNonRolledExpr=1 -aForceParamTrailComments=0 -aGenerateComments="
"1 -aGenerateReport=0 -aIgnoreCustomStorageClasses=1 -aIncDataTypeInIds=0 -aIn"
"cHierarchyInIds=0 -aInlineInvariantSignals=0 -aInlineParameters=0 -aInlinedPr"
"mAccess=\"Literals\" -aLocalBlockOutputs=0 -aLogVarNameModifier=\"rt_\" -aMax"
"RTWIdLen=31 -aPrefixModelToSubsysFcnNames=1 -aRTWVerbose=1 -aRollThreshold=5 "
"-aShowEliminatedStatements=1"
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType DiscretePulseGenerator
PulseType "Sample based"
Amplitude "1"
Period "2"
PulseWidth "1"
PhaseDelay "0"
SampleTime "1"
VectorParams1D on
}
Block {
BlockType Scope
Floating off
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
Realization "auto"
}
}
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 "RTex"
Location [71, 172, 581, 360]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator"
Position [65, 110, 95, 140]
PulseType "Time based"
Period "1"
PulseWidth "50"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [200, 39, 230, 71]
ExtModeLoggingTrig on
Location [317, 379, 795, 594]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "0"
YMax "1500"
SaveToWorkspace on
SaveName "timing"
DataFormat "Array"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [380, 109, 410, 141]
Location [117, 367, 441, 606]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "0.375"
YMax "0.625"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType "S-Function"
Name "Timer Function"
Ports [0, 1]
Position [50, 36, 105, 74]
BackgroundColor "lightBlue"
FunctionName "RTBlock"
Parameters "step,priority,ThPriority"
MaskType "RTBlock"
MaskDescription "Real Time Block: Set the characteristics of a r"
"eal-time simulation. The settings of the simulation are selectable using the "
"block panel. The parameters are:\n\n- Timeout: in milliseconds, defines the t"
"emporization with which Simulink requires to the Operating System the availab"
"ility of resources for the execution of the simulation step. The value should"
" be fixed equal to the simulation step of Simulink (the timestep);\n\n- Prior"
"ity Class: defines the class of task priority required, that can be one of th"
"e following values:\n-- IDLE PRIORITY: Low priority, typical of an idle proce"
"ss (priority less than normal)\n-- NORMAL PRIORITY: Typical priority of a typ"
"ical windows application;\n-- HIGH PRIORITY: Typical priority of a relevant a"
"pplication, that needs more resources of a normal application;\n-- REAL-TIME "
"PRIORITY: Exclusive priority of a unique process that needs all the resources"
" of the operating system.\n\n- Thread Priority: defines the class of task pri"
"ority required, that can be one of the following values:\n-- IDLE : The threa"
"d should run when the main process is inactive.\n-- LOWEST : The thread runs "
"with a minimal respect of the temporization;\n-- NORMAL : The thread runs wit"
"h the same priority of the main process;\n-- HIGH : The thread runs with the "
"major priority respect to the main process;\n-- REAL-TIME : The process runs "
"when the simulation thread is in idle state."
MaskPromptString "Timestep (ms)|Priority|Thread Priority"
MaskStyleString "edit,popup(IDLE|NORMAL|HIGH|REAL-TIME),popup(ID"
"LE|LOWEST|NORMAL|HIGHEST|TIME CRITICAL)"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "step=@1;priority=@2;ThPriority=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "50|NORMAL|NORMAL"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [195, 105, 330, 145]
Numerator "[1 0.2 0.1]"
Denominator "[1 1.2 0.3 0.1]"
}
Line {
SrcBlock "Timer Function"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Pulse\nGenerator"
SrcPort 1
DstBlock "Transfer Fcn"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
DstBlock "Scope1"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -