📄 oddeven.mdl
字号:
Model {
Name "oddeven"
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 on
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Thu Jan 21 12:49:59 1999"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "wyh"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Thu Mar 20 17:31:45 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 "1e-4"
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 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
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 "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
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 "oddeven"
Location [11, 77, 477, 234]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Chart"
Ports [0, 0, 0, 1]
Position [140, 69, 200, 121]
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Stateflow"
MaskDescription "Stateflow diagram"
MaskDisplay "plot(sf('Private','sfblk','xIcon'),sf('Private'"
",'sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'HorizontalAl',"
"'Center','VerticalAl','Bottom');"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Chart"
Location [257, 457, 812, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType TriggerPort
Name "E"
Ports [0, 1]
Position [20, 101, 40, 119]
TriggerType "either"
ShowOutputPort on
OutputDataType "auto"
}
Block {
BlockType Demux
Name " Demux "
Ports [1, 1]
Position [270, 100, 320, 140]
Outputs "1"
BusSelectionMode off
}
Block {
BlockType "S-Function"
Name " SFunction "
Tag "Stateflow S-Function oddeven 1"
Ports [1, 1]
Position [180, 100, 230, 140]
FunctionName "sf_sfun"
PortCounts "[1 1]"
SFunctionModules "''"
}
Block {
BlockType Terminator
Name " Terminator "
Position [460, 111, 480, 129]
}
Line {
SrcBlock " SFunction "
SrcPort 1
DstBlock " Demux "
DstPort 1
}
Line {
SrcBlock " Demux "
SrcPort 1
DstBlock " Terminator "
DstPort 1
}
Line {
SrcBlock "E"
SrcPort 1
DstBlock " SFunction "
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Chirp Signal"
Ports [0, 1]
Position [75, 25, 105, 55]
SourceBlock "simulink3/Sources/Chirp Signal"
SourceType "chirp"
f1 "0.1"
T "10"
f2 "10"
VectorParams1D on
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [230, 24, 260, 56]
Floating off
Location [10, 283, 411, 522]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "10"
YMin "-2"
YMax "2"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Line {
SrcBlock "Chirp Signal"
SrcPort 1
Points [60, 0; 0, -1]
Branch {
DstBlock "Chart"
DstPort trigger
}
Branch {
Points [0, 1]
DstBlock "Scope"
DstPort 1
}
}
}
}
# Finite State Machines
# -- File save dated 20-Mar-2003 17:31:46
#
# Stateflow Version 4.1 (R12.1) dated May 21 2001, 01:15:03
#
#
Stateflow {
machine {
id 1
name "oddeven"
created "21-Jan-1999 12:49:59"
isLibrary 0
firstTarget 10
sfVersion 41012101
}
chart {
id 2
name "Chart"
windowPosition [283.5 285.75 309 222]
viewLimits [5 270.5 5.12 191.12]
screen [1 1 1024 768 1.333333333333333]
treeNode [0 3 0 0]
firstTransition 5
viewObj 2
visible 1
machine 1
subviewS {
}
decomposition CLUSTER_CHART
firstEvent 8
chartFileNumber 1
}
state {
id 3
labelString "Odd"
position [37.25 75 90 60]
fontSize 14
chart 2
treeNode [2 0 0 4]
subviewer 2
type OR_STATE
decomposition CLUSTER_STATE
}
state {
id 4
labelString "Even"
position [148.25 75.75 90 60]
fontSize 14
chart 2
treeNode [2 0 3 0]
subviewer 2
type OR_STATE
decomposition CLUSTER_STATE
}
transition {
id 5
labelString "E"
labelPosition [67.073 51.766 11.218 17.928]
fontSize 14
src {
intersection [0 0 0 0 65 40.5 0 0]
}
dst {
id 3
intersection [1 0 -1 0.275 62 75 0 0]
}
midPoint [63.7198 50.2594]
chart 2
linkNode [2 0 6]
dataLimits [59.6 65 40.5 75]
subviewer 2
}
transition {
id 6
labelString "E"
labelPosition [142.501 30 11.218 17.928]
fontSize 14
src {
id 3
intersection [1 0 -1 0.6167 92.75 75 0 0]
}
dst {
id 4
intersection [1 0 -1 0.45 188.75 75.75 0 0]
}
midPoint [119.5135 51.2012]
chart 2
linkNode [2 5 7]
dataLimits [92.75 191.15 46.441 75.75]
subviewer 2
}
transition {
id 7
labelString "E"
labelPosition [133.001 145.5 11.218 17.928]
fontSize 14
src {
id 4
intersection [3 0 1 0.5 193.25 135.75 0 0]
}
dst {
id 3
intersection [3 0 1 0.4167 89.75 135 0 0]
}
midPoint [164.3956 161.2501]
chart 2
linkNode [2 6 0]
dataLimits [87.35 193.25 135 166.239]
subviewer 2
}
event {
id 8
name "E"
linkNode [2 0 0]
scope INPUT_EVENT
trigger EITHER_EDGE_EVENT
machine 1
}
instance {
id 9
name "Chart"
machine 1
chart 2
}
target {
id 10
name "sfun"
description "Default Simulink S-Function Target."
codeFlags " debug=1 telemetry=0 preservenames=0 preservenameswithparent"
"=0 exportcharts=0 project=0 multiinstanced=0 statebitsets=0 "
"databitsets=0 comments=1 echo=1 initializer=1 ioformat=1"
machine 1
linkNode [1 0 0]
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -