Model { Name "sfdemo" 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 on BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Mon Jul 17 18:33:45 2000" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" ModifiedDateFormat "%" LastModifiedDate "Fri Nov 03 20:58:20 2000" ModelVersionFormat "1.%" 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 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" 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" 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 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 "sfdemo" Location [130, 176, 372, 341] 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 "mainform" Ports [] Position [85, 44, 145, 96] ShowPortLabels on TreatAsAtomicUnit off 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 on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "mainform" Location [257, 457, 812, 717] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Demux Name " Demux " Ports [1, 1] Position [270, 100, 320, 140] Outputs "1" BusSelectionMode off } Block { BlockType Ground Name " Ground " Position [20, 111, 40, 129] } Block { BlockType "S-Function" Name " SFunction " Tag "Stateflow S-Function sfdemo 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 " Ground " SrcPort 1 DstBlock " SFunction " DstPort 1 } } } } } # Finite State Machines # -- File save dated 03-Nov-2000 20:58:20 # # Stateflow Version 4.0 (R12) dated Oct 4 2000, 19:47:56 # # Stateflow { machine { id 1 name "sfdemo" created "17-Jul-2000 18:33:45" firstTarget 23 sfVersion 40012071 } chart { id 2 name "mainform" windowPosition [72.75 138.75 655.5 349.5] viewLimits [0 576.504 0 295.317] zoomFactor 0.942 screen [1 1 1024 768 1.333333333333333] treeNode [0 6 0 0] firstTransition 12 viewObj 2 machine 1 subviewS { x1 0.338 zoomFactor 0.944 } decomposition CLUSTER_CHART firstEvent 21 chartFileNumber 1 exportChartFunctions 1 } state { id 3 labelString "State_1\n" "entry: draw(1);" position [59.026 62.902 96.358 42.339] fontSize 12 chart 2 treeNode [2 0 6 5] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 4 labelString "State_2\n" "entry: draw(2);" position [136.822 138.601 106.366 43.399] fontSize 12 chart 2 treeNode [2 0 5 0] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 5 labelString "draw(cmd)" position [272.095 85.538 227.282 154.051] fontSize 8 chart 2 treeNode [2 0 3 4] firstTransition 15 firstJunction 7 superState GROUPED subviewer 2 subviewS { x1 -14.159 y1 -14.159 pos [0 0 259.769 229.5] fontSize 8 } type FUNC_STATE decomposition CLUSTER_STATE firstData 20 } state { id 6 labelString "broadcast_E()" position [270.131 14.503 228.308 58.39] fontSize 8 chart 2 treeNode [2 0 0 3] firstTransition 19 firstJunction 11 subviewer 2 subviewS { x1 -14.159 y1 -14.159 pos [0 0 259.769 229.5] fontSize 8 } type FUNC_STATE decomposition CLUSTER_STATE } junction { id 7 position [294.3173491004729 158.8743951379753 7.210966442545484] arrowSize 8.241 chart 2 linkNode [5 0 8] isGrouped 1 subviewer 2 type CONNECTIVE_JUNCTION } junction { id 8 position [480.6592479991153 158.8743951379753 7.210966442545484] arrowSize 8.241 chart 2 linkNode [5 7 9] isGrouped 1 subviewer 2 type CONNECTIVE_JUNCTION } junction { id 9 position [294.3195034259477 224.7448338518754 7.210966442545484] arrowSize 8.241 chart 2 linkNode [5 8 10] isGrouped 1 subviewer 2 type CONNECTIVE_JUNCTION } junction { id 10 position [478.6498617634506 224.7448338518754 7.210966442545484] arrowSize 8.241 chart 2 linkNode [5 9 0] isGrouped 1 subviewer 2 type CONNECTIVE_JUNCTION } junction { id 11 position [455.6656000358256 37.54944590784214 7.210966442545484] arrowSize 8.241 chart 2 linkNode [6 0 0] subviewer 2 type CONNECTIVE_JUNCTION } transition { id 12 labelPosition [36.838 79.713 8.457 16.211] fontSize 12 src { intersection [0 0 1 0 29.02645099591092 76.13319614077054 0] } dst { id 3 intersection [4 -1 0 0.6875 59.02645099591092 76.13319614077054 0] } midPoint [36.83774383720293 79.71337202636272] chart 2 linkNode [2 0 13] dataLimits [29.026 59.026 73.733 79.719] subviewer 2 } transition { id 13 labelString "E" labelPosition [185.385 92.373 9.867 16.211] fontSize 12 src { id 3 intersection [2 1 0 0.5125 155.3843712750782 84.60101820790007 0] } dst { id 4 intersection [1 0 -1 0.5027073144720203 190.2925177941502 138.6011734629635 0] } midPoint [179.863753570526 101.3300491130479] chart 2 linkNode [2 12 14] dataLimits [155.384 192.693 84.601 138.601] subviewer 2 } transition { id 14 labelString "E" labelPosition [93.493 131.157 9.867 16.211] fontSize 12 src { id 4 intersection [4 -1 0 0.4750000000000005 136.8216733610344 161.3855244136055 0] } dst { id 3 intersection [3 0 1 0.5583333333333334 101.5845324525431 105.2413344965283 0] } midPoint [111.3996977262195 143.4863573280867] chart 2 linkNode [2 13 0] dataLimits [99.185 136.822 105.241 161.386] subviewer 2 } transition { id 15 labelPosition [299.149 124.866 5.638 11.277] fontSize 8 arrowSize 8.241 src { intersection [0 0 0 -1 295.3546650390464 114.2892089193603 0] } dst { id 7 intersection [0 0.03857769444073901 -0.99925560368288 -1 294.5955315605159 151.6687965122925 0] } midPoint [295.2610549181605 129.8480887950677] chart 2 linkNode [5 0 16] isGrouped 1 dataLimits [292.443 297.384 114.289 151.669] subviewer 2 } transition { id 16 labelString "{WinDrawChars(\"State 1\",7,30,50);\n" "WinEraseChars(\"State 2\",7,100,50);}" labelPosition [318.687 135.266 126.154 21.144] fontSize 8 arrowSize 8.241 src { id 7 intersection [2 1 0 -1 301.5283155430184 158.8743951379753 0] } dst { id 8 intersection [6 -1 0 -1 473.4482815565698 158.8743951379753 0] } midPoint [386.8365745268812 158.8743951379753] chart 2 linkNode [5 15 17] isGrouped 1 dataLimits [301.528 473.448 156.402 161.347] subviewer 2 drawStyle STRAIGHT } transition { id 17 labelString "[cmd==2]" labelPosition [296.428 181.561 32.42 11.277] fontSize 8 arrowSize 8.241 src { id 7 intersection [4 0 1 -1 294.3173491004729 166.0853615805207 0] } dst { id 9 intersection [0 0 -1 -1 294.3195034259477 217.53386740933 0] } midPoint [294.3184964686882 188.7926512173823] chart 2 linkNode [5 16 18] isGrouped 1 dataLimits [291.847 296.792 166.085 217.534] subviewer 2 drawStyle STRAIGHT } transition { id 18 labelString "{WinEraseChars(\"State 1\",7,30,50);\n" "WinDrawChars(\"State 2\",7,100,50);}" labelPosition [320.209 201.843 125.45 21.144] fontSize 8 arrowSize 8.241 src { id 9 intersection [2 1 0 -1 301.5304698684932 224.7448338518754 0] } dst { id 10 intersection [6 -1 0 -1 471.4388953209051 224.7448338518754 0] } midPoint [385.7892294291528 224.7448338518754] chart 2 linkNode [5 17 0] isGrouped 1 dataLimits [301.53 471.439 222.273 227.217] subviewer 2 drawStyle STRAIGHT } transition { id 19 labelString "{E;}" labelPosition [402.456 22.194 13.391 11.277] fontSize 8 arrowSize 8.241 src { intersection [0 0 0 -1 390.7766186399011 47.77884345432932 0] } dst { id 11 intersection [0 -0.794970945267775 -0.6066475057066174 -1 449.933091226701 33.17493110173781 0] } midPoint [419.5469116512904 30.78319793841035] chart 2 linkNode [6 0 0] dataLimits [390.777 449.933 25.834 47.779] subviewer 2 } data { id 20 name "cmd" linkNode [5 0 0] scope FUNCTION_INPUT_DATA machine 1 dataType "int8" props { range { minimum "" maximum "" } } } event { id 21 name "E" linkNode [2 0 0] scope LOCAL_EVENT trigger FUNCTION_CALL_EVENT machine 1 } instance { id 22 name "mainform" machine 1 chart 2 } target { id 23 name "sfun" description "Default Simulink S-Function Target." machine 1 linkNode [1 0 24] } target { id 24 name "palm" description "Palm OS Target" customCode "#include \n" "#include \"StarterRsc.h\"\n" "#include \"sfapp.h\"\n" "#include \"sfevent.h\"\n" "#include \"tmw2palm.h\"" codeFlags "-nocomments-preservenames-exportcharts-globalio-" codegenDirectory "..\\StateflowSrc" machine 1 linkNode [1 23 0] userMakefiles "..\\simple.mcp" } }