# $Revision: 1.2.4.5 $
Model {
  Name			  "sf_custom"
  Version		  6.2
  MdlSubVersion		  0
  GraphicalInterface {
    NumRootInports	    0
    NumRootOutports	    0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.74"
    NumModelReferences	    0
    NumTestPointedSignals   0
  }
  SavedCharacterEncoding  "US-ASCII"
  SaveDefaultBlockParams  on
  SampleTimeColors	  off
  LibraryLinkDisplay	  "none"
  WideLines		  off
  ShowLineDimensions	  off
  ShowPortDataTypes	  off
  ShowLoopsOnError	  on
  IgnoreBidirectionalLines off
  ShowStorageClass	  off
  ShowTestPointIcons	  on
  ShowViewerIcons	  on
  SortedOrder		  off
  ExecutionContextIcon	  off
  ShowLinearizationAnnotations on
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovMetricSettings	  "dcmtr"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  covSaveCumulativeToWorkspaceVar on
  CovSaveSingleToWorkspaceVar on
  CovCumulativeVarName	  "covCumulativeData"
  CovCumulativeReport	  off
  CovReportOnPause	  on
  ScopeRefreshTime	  0.035000
  OverrideScopeRefreshTime on
  DisableAllScopes	  off
  DataTypeOverride	  "UseLocalSettings"
  MinMaxOverflowLogging	  "UseLocalSettings"
  MinMaxOverflowArchiveMode "Overwrite"
  BlockNameDataTip	  off
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  Created		  "Mon Oct 15 17:10:45 2001"
  Creator		  "The MathWorks Inc."
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "batserve"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Sat Jan 22 19:11:57 2005"
  ModelVersionFormat	  "1.%<AutoIncrement:74>"
  ConfigurationManager	  "None"
  LinearizationMsg	  "none"
  Profile		  off
  ParamWorkspaceSource	  "MATLABWorkspace"
  AccelSystemTargetFile	  "accel.tlc"
  AccelTemplateMakefile	  "accel_default_tmf"
  AccelMakeCommand	  "make_rtw"
  TryForcingSFcnDF	  off
  ExtModeBatchMode	  off
  ExtModeEnableFloating	  on
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "normal"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigDurationFloating "auto"
  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 off
  BufferReuse		  on
  StrictBusMsg		  "None"
  ProdHWDeviceType	  "32-bit Generic"
  ShowModelReferenceBlockVersion off
  ShowModelReferenceBlockIO off
  Array {
    Type		    "Handle"
    Dimension		    1
    Simulink.ConfigSet {
      $ObjectID		      1
      Version		      "1.1.0"
      Array {
	Type			"Handle"
	Dimension		7
	Simulink.SolverCC {
	  $ObjectID		  2
	  Version		  "1.1.0"
	  StartTime		  "0.0"
	  StopTime		  "20"
	  AbsTol		  "auto"
	  FixedStep		  "auto"
	  InitialStep		  "auto"
	  MaxNumMinSteps	  "-1"
	  MaxOrder		  5
	  ExtrapolationOrder	  4
	  NumberNewtonIterations  1
	  MaxStep		  ".1"
	  MinStep		  "auto"
	  RelTol		  "1e-3"
	  SolverMode		  "Auto"
	  Solver		  "ode3"
	  SolverName		  "ode3"
	  ZeroCrossControl	  "UseLocalSettings"
	  AlgebraicLoopSolver	  "TrustRegion"
	  SolverResetMethod	  "Fast"
	  PositivePriorityOrder	  off
	  AutoInsertRateTranBlk	  off
	  SampleTimeConstraint	  "Unconstrained"
	  RateTranMode		  "Deterministic"
	}
	Simulink.DataIOCC {
	  $ObjectID		  3
	  Version		  "1.1.0"
	  Decimation		  "1"
	  ExternalInput		  "[t, u]"
	  FinalStateName	  "xFinal"
	  InitialState		  "xInitial"
	  LimitDataPoints	  on
	  MaxDataPoints		  "1000"
	  LoadExternalInput	  off
	  LoadInitialState	  off
	  SaveFinalState	  off
	  SaveFormat		  "Array"
	  SaveOutput		  on
	  SaveState		  off
	  SignalLogging		  on
	  SaveTime		  on
	  StateSaveName		  "xout"
	  TimeSaveName		  "tout"
	  OutputSaveName	  "yout"
	  SignalLoggingName	  "sigsOut"
	  OutputOption		  "RefineOutputTimes"
	  OutputTimes		  "[]"
	  Refine		  "1"
	}
	Simulink.OptimizationCC {
	  $ObjectID		  4
	  Version		  "1.1.0"
	  BlockReduction	  on
	  BooleanDataType	  off
	  ConditionallyExecuteInputs on
	  InlineParams		  off
	  InlineInvariantSignals  off
	  OptimizeBlockIOStorage  on
	  BufferReuse		  on
	  EnforceIntegerDowncast  on
	  ExpressionFolding	  on
	  FoldNonRolledExpr	  on
	  LocalBlockOutputs	  on
	  ParameterPooling	  on
	  RollThreshold		  5
	  SystemCodeInlineAuto	  off
	  StateBitsets		  off
	  DataBitsets		  off
	  UseTempVars		  off
	  ZeroExternalMemoryAtStartup on
	  ZeroInternalMemoryAtStartup on
	  InitFltsAndDblsToZero	  on
	  NoFixptDivByZeroProtection off
	  EfficientFloat2IntCast  off
	  OptimizeModelRefInitCode on
	  LifeSpan		  "1"
	  BufferReusableBoundary  off
	}
	Simulink.DebuggingCC {
	  $ObjectID		  5
	  Version		  "1.1.0"
	  RTPrefix		  "error"
	  ConsistencyChecking	  "none"
	  ArrayBoundsChecking	  "none"
	  SignalInfNanChecking	  "none"
	  AlgebraicLoopMsg	  "warning"
	  ArtificialAlgebraicLoopMsg "warning"
	  CheckSSInitialOutputMsg on
	  CheckExecutionContextPreStartOutputMsg on
	  CheckExecutionContextRuntimeOutputMsg	on
	  SignalResolutionControl "TryResolveAllWithWarning"
	  BlockPriorityViolationMsg "warning"
	  MinStepSizeMsg	  "warning"
	  SolverPrmCheckMsg	  "none"
	  InheritedTsInSrcMsg	  "warning"
	  DiscreteInheritContinuousMsg "warning"
	  MultiTaskDSMMsg	  "warning"
	  MultiTaskRateTransMsg	  "error"
	  SingleTaskRateTransMsg  "none"
	  TasksWithSamePriorityMsg "warning"
	  CheckMatrixSingularityMsg "none"
	  IntegerOverflowMsg	  "warning"
	  Int32ToFloatConvMsg	  "warning"
	  ParameterDowncastMsg	  "error"
	  ParameterOverflowMsg	  "error"
	  ParameterPrecisionLossMsg "warning"
	  UnderSpecifiedDataTypeMsg "none"
	  UnnecessaryDatatypeConvMsg "none"
	  VectorMatrixConversionMsg "none"
	  InvalidFcnCallConnMsg	  "error"
	  FcnCallInpInsideContextMsg "Use local settings"
	  SignalLabelMismatchMsg  "none"
	  UnconnectedInputMsg	  "warning"
	  UnconnectedOutputMsg	  "warning"
	  UnconnectedLineMsg	  "warning"
	  SFcnCompatibilityMsg	  "none"
	  UniqueDataStoreMsg	  "none"
	  BusObjectLabelMismatch  "none"
	  RootOutportRequireBusObject "warning"
	  AssertControl		  "UseLocalSettings"
	  EnableOverflowDetection off
	  ModelReferenceIOMsg	  "none"
	  ModelReferenceVersionMismatchMessage "none"
	  ModelReferenceIOMismatchMessage "none"
	  ModelReferenceCSMismatchMessage "none"
	  ModelReferenceSimTargetVerbose off
	  UnknownTsInhSupMsg	  "warning"
	  ModelReferenceDataLoggingMessage "warning"
	  ModelReferenceSymbolNameMessage "warning"
	  ModelReferenceExtraNoncontSigs "error"
	}
	Simulink.HardwareCC {
	  $ObjectID		  6
	  Version		  "1.1.0"
	  ProdBitPerChar	  8
	  ProdBitPerShort	  16
	  ProdBitPerInt		  32
	  ProdBitPerLong	  32
	  ProdIntDivRoundTo	  "Undefined"
	  ProdEndianess		  "Unspecified"
	  ProdWordSize		  32
	  ProdShiftRightIntArith  on
	  ProdHWDeviceType	  "32-bit Generic"
	  TargetBitPerChar	  8
	  TargetBitPerShort	  16
	  TargetBitPerInt	  32
	  TargetBitPerLong	  32
	  TargetShiftRightIntArith on
	  TargetIntDivRoundTo	  "Undefined"
	  TargetEndianess	  "Unspecified"
	  TargetWordSize	  32
	  TargetTypeEmulationWarnSuppressLevel 0
	  TargetPreprocMaxBitsSint 32
	  TargetPreprocMaxBitsUint 32
	  TargetHWDeviceType	  "32-bit Generic"
	  TargetUnknown		  off
	  ProdEqTarget		  on
	}
	Simulink.ModelReferenceCC {
	  $ObjectID		  7
	  Version		  "1.1.0"
	  UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
	  CheckModelReferenceTargetMessage "error"
	  ModelReferenceNumInstancesAllowed "Multi"
	  ModelReferencePassRootInputsByReference on
	  ModelReferenceMinAlgLoopOccurrences off
	}
	Simulink.RTWCC {
	  $BackupClass		  "Simulink.RTWCC"
	  $ObjectID		  8
	  Version		  "1.1.0"
	  SystemTargetFile	  "ert.tlc"
	  GenCodeOnly		  off
	  MakeCommand		  "make_rtw"
	  TemplateMakefile	  "ert_default_tmf"
	  Description		  "RTW Embedded Coder (no auto configuration)"
	  GenerateReport	  off
	  SaveLog		  off
	  RTWVerbose		  on
	  RetainRTWFile		  off
	  ProfileTLC		  off
	  TLCDebug		  off
	  TLCCoverage		  off
	  TLCAssert		  off
	  ProcessScriptMode	  "Default"
	  ConfigurationMode	  "Optimized"
	  ProcessScript		  "ert_make_rtw_hook"
	  ConfigAtBuild		  off
	  CustomSourceCode	  "#include \"my_header.h\""
	  CustomSource		  "my_function.c"
	  IncludeHyperlinkInReport off
	  LaunchReport		  off
	  TargetLang		  "C"
	  Array {
	    Type		    "Handle"
	    Dimension		    2
	    Simulink.CodeAppCC {
	      $ObjectID		      9
	      Version		      "1.1.0"
	      ForceParamTrailComments off
	      GenerateComments	      on
	      IgnoreCustomStorageClasses off
	      IncHierarchyInIds	      off
	      MaxIdLength	      31
	      PreserveName	      off
	      PreserveNameWithParent  off
	      ShowEliminatedStatement on
	      IncAutoGenComments      off
	      SimulinkDataObjDesc     off
	      SFDataObjDesc	      off
	      IncDataTypeInIds	      off
	      PrefixModelToSubsysFcnNames on
	      CustomSymbolStr	      "$R$N$M"
	      MangleLength	      1
	      DefineNamingRule	      "None"
	      ParamNamingRule	      "None"
	      SignalNamingRule	      "None"
	      InsertBlockDesc	      off
	      SimulinkBlockComments   on
	      EnableCustomComments    off
	      InlinedPrmAccess	      "Literals"
	      ReqsInCode	      off
	    }
	    Simulink.ERTTargetCC {
	      $BackupClass	      "Simulink.TargetCC"
	      $ObjectID		      10
	      Version		      "1.1.0"
	      TargetFcnLib	      "ansi_tfl_tmw.mat"
	      TargetLibSuffix	      ""
	      TargetPreCompLibLocation ""
	      GenFloatMathFcnCalls    "ANSI_C"
	      UtilityFuncGeneration   "Auto"
	      GenerateFullHeader      on
	      GenerateSampleERTMain   on
	      IsPILTarget	      off
	      ModelReferenceCompliant on
	      IncludeMdlTerminateFcn  on
	      CombineOutputUpdateFcns on
	      SuppressErrorStatus     off
	      IncludeFileDelimiter    "Auto"
	      ERTCustomFileBanners    on
	      SupportAbsoluteTime     on
	      LogVarNameModifier      "rt_"
	      MatFileLogging	      off
	      MultiInstanceERTCode    off
	      SupportNonFinite	      on
	      SupportComplex	      on
	      PurelyIntegerCode	      off
	      SupportContinuousTime   on
	      SupportNonInlinedSFcns  on
	      GenerateErtSFunction    off
	      GenerateASAP2	      off
	      ExtMode		      off
	      ExtModeTransport	      0
	      ExtModeStaticAlloc      off
	      ExtModeStaticAllocSize  1000000
	      ExtModeTesting	      off
	      ExtModeMexFile	      "ext_comm"
	      InlinedParameterPlacement	"Hierarchical"
	      TargetOS		      "BareBoardExample"
	      MultiInstanceErrorCode  "Error"
	      RateGroupingCode	      on
	      RootIOFormat	      "Individual arguments"
	      RTWCAPISignals	      off
	      RTWCAPIParams	      off
	      RTWCAPIStates	      off
	      ERTSrcFileBannerTemplate "ert_code_template.cgt"
	      ERTHdrFileBannerTemplate "ert_code_template.cgt"
	      ERTDataSrcFileTemplate  "ert_code_template.cgt"
	      ERTDataHdrFileTemplate  "ert_code_template.cgt"
	      ERTCustomFileTemplate   "example_file_process.tlc"
	      InitialValueSource      "Model"
	      ModuleNamingRule	      "Unspecified"
	      SignalDisplayLevel      10
	      ParamTuneLevel	      10
	      GlobalDataDefinition    "Auto"
	      GlobalDataReference     "Auto"
	      GRTInterface	      off
	    }
	    PropName		    "Components"
	  }
	}
	PropName		"Components"
      }
      Name		      "Configuration"
      SimulationMode	      "normal"
      ExtraOptions	      "-aInitFltsAndDblsToZero=1 "
      CurrentDlgPage	      "Solver"
    }
    PropName		    "ConfigurationSets"
  }
  Simulink.ConfigSet {
    $PropName		    "ActiveConfigurationSet"
    $ObjectID		    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		      Demux
      Outputs		      "4"
      DisplayOption	      "none"
      BusSelectionMode	      off
    }
    Block {
      BlockType		      Inport
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    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"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      Sin
      SineType		      "Time based"
      TimeSource	      "Use simulation time"
      Amplitude		      "1"
      Bias		      "0"
      Frequency		      "1"
      Phase		      "0"
      Samples		      "10"
      Offset		      "0"
      SampleTime	      "-1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Terminator
    }
  }
  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		    "sf_custom"
    Location		    [82, 98, 987, 695]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "102"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      SubSystem
      Name		      "Build ERT"
      Ports		      []
      Position		      [22, 535, 239, 568]
      ForegroundColor	      "blue"
      ShowName		      off
      OpenFcn		      "model=bdroot;            \nrtwbuilddemomodel(mo"
"del);"
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskDescription	      "Enter the attributes of the configuration set t"
"hat you want preserved.  Otherwise, the default configuration script will ove"
"rride your current settings."
      MaskPromptString	      "List of attributes to preserve (cell of strings"
"):"
      MaskStyleString	      "edit"
      MaskTunableValueString  "off"
      MaskEnableString	      "on"
      MaskVisibilityString    "on"
      MaskToolTipString	      "on"
      MaskVariables	      "attrib_overrides=&1;"
      MaskInitialization      "pos    = get_param(gcb, 'Position');\nwidth  = "
"pos(3) - pos(1);\nheight = pos(4) - pos(2);\n\n\n% Compute arrow coordinates"
"\narrowW = width  / 20;\narrowH = height / 2.5;\narrowX = width  / 50;\narrow"
"Y = height / 3;\narrowXvec = [arrowX, arrowX, arrowX + arrowW];\narrowYvec = "
"[arrowY, arrowY + arrowH, arrowY + arrowH / 2];\n\n% Compute text position\nt"
"extXbuff = width / 30;\ntextX  = arrowX + arrowW + textXbuff;\ntextY  = heigh"
"t / 2;\n"
      MaskDisplay	      "patch(arrowXvec, arrowYvec);\ntext(textX, textY"
", 'Build model using Real-Time\\nWorkshop');"
      MaskIconFrame	      off
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "pixels"
      MaskValueString	      "{}"
      System {
	Name			"Build ERT"
	Location		[291, 176, 436, 268]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Chart"
      Ports		      [1, 3]
      Position		      [385, 57, 485, 113]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskType		      "Stateflow"
      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		[480, 85, 980, 386]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "input"
	  Position		  [20, 101, 40, 119]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Demux
	  Name			  " Demux "
	  Ports			  [1, 1]
	  Position		  [270, 210, 320, 250]
	  Outputs		  "1"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  " SFunction "
	  Tag			  "Stateflow S-Function sf_custom 2"
	  Ports			  [1, 4]
	  Position		  [180, 102, 230, 203]
	  FunctionName		  "sf_sfun"
	  PortCounts		  "[1 4]"
	  Port {
	    PortNumber		    2
	    Name		    "output_a"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortNumber		    3
	    Name		    "output_b"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortNumber		    4
	    Name		    "output_c"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Terminator
	  Name			  " Terminator "
	  Position		  [460, 221, 480, 239]
	}
	Block {
	  BlockType		  Outport
	  Name			  "output_a"
	  Position		  [460, 101, 480, 119]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "output_b"
	  Position		  [460, 136, 480, 154]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "output_c"
	  Position		  [460, 171, 480, 189]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  " SFunction "
	  SrcPort		  1
	  Points		  [0, 115]
	  DstBlock		  " Demux "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " Demux "
	  SrcPort		  1
	  DstBlock		  " Terminator "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "input"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  1
	}
	Line {
	  Name			  "output_a"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  2
	  DstBlock		  "output_a"
	  DstPort		  1
	}
	Line {
	  Name			  "output_b"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  3
	  DstBlock		  "output_b"
	  DstPort		  1
	}
	Line {
	  Name			  "output_c"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  4
	  DstBlock		  "output_c"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [3]
      Position		      [540, 51, 585, 119]
      Location		      [485, 204, 1010, 644]
      Open		      on
      NumInputPorts	      "3"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      TimeRange		      "20"
      YMin		      "-4~-2~1"
      YMax		      "4~2~3.5"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave"
      Ports		      [0, 1]
      Position		      [285, 66, 325, 104]
      SineType		      "Time based"
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem"
      Ports		      []
      Position		      [20, 170, 231, 175]
      BackgroundColor	      "black"
      ShowName		      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Subsystem"
	Location		[433, 403, 931, 703]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem1"
      Ports		      []
      Position		      [320, 170, 531, 175]
      BackgroundColor	      "black"
      ShowName		      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Subsystem1"
	Location		[433, 403, 931, 703]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem2"
      Ports		      []
      Position		      [610, 170, 821, 175]
      BackgroundColor	      "black"
      ShowName		      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Subsystem2"
	Location		[433, 403, 931, 703]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem3"
      Ports		      []
      Position		      [610, 300, 821, 305]
      BackgroundColor	      "black"
      ShowName		      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Subsystem3"
	Location		[433, 403, 931, 703]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "View RTW Custom Code1"
      Ports		      []
      Position		      [21, 500, 281, 530]
      ForegroundColor	      "blue"
      ShowName		      off
      OpenFcn		      "slCfgPrmDlg(bdroot,'Open');                    "
"               \nslCfgPrmDlg(bdroot,'TurnToPage','Custom Code');"
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskInitialization      "pos    = get_param(gcb, 'Position');\nwidth  = "
"pos(3) - pos(1);\nheight = pos(4) - pos(2);\n\n\n% Compute arrow coordinates"
"\narrowW = width  / 20;\narrowH = height / 2.5;\narrowX = width  / 50;\narrow"
"Y = height / 3;\narrowXvec = [arrowX, arrowX, arrowX + arrowW];\narrowYvec = "
"[arrowY, arrowY + arrowH, arrowY + arrowH / 2];\n\n% Compute text position\nt"
"extXbuff = width / 30;\ntextX  = arrowX + arrowW + textXbuff;\ntextY  = heigh"
"t / 2;\n"
      MaskDisplay	      "patch(arrowXvec, arrowYvec);\ntext(textX, textY"
", 'Open Real-Time Workshop\\ncustom code settings');"
      MaskIconFrame	      off
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "pixels"
      System {
	Name			"View RTW Custom Code1"
	Location		[150, 180, 648, 480]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "View RTW Custom Code2"
      Ports		      []
      Position		      [21, 405, 281, 435]
      ForegroundColor	      "blue"
      ShowName		      off
      OpenFcn		      "rt=sfroot;                                     "
"              \nm=rt.find('-isa','Stateflow.Machine','-and', 'name',bdroot); "
"\ntar=m.find('-isa','Stateflow.Target','-and','name','sfun');  \nsf('Private'"
",'targetddg_btn_target_cb',tar,'Target Options');"
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskInitialization      "pos    = get_param(gcb, 'Position');\nwidth  = "
"pos(3) - pos(1);\nheight = pos(4) - pos(2);\n\n\n% Compute arrow coordinates"
"\narrowW = width  / 20;\narrowH = height / 2.5;\narrowX = width  / 50;\narrow"
"Y = height / 3;\narrowXvec = [arrowX, arrowX, arrowX + arrowW];\narrowYvec = "
"[arrowY, arrowY + arrowH, arrowY + arrowH / 2];\n\n% Compute text position\nt"
"extXbuff = width / 30;\ntextX  = arrowX + arrowW + textXbuff;\ntextY  = heigh"
"t / 2;\n"
      MaskDisplay	      "patch(arrowXvec, arrowYvec);\ntext(textX, textY"
", 'Open Stateflow simulation\\ncustom code settings');"
      MaskIconFrame	      off
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "pixels"
      System {
	Name			"View RTW Custom Code2"
	Location		[150, 180, 648, 480]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "View RTW Custom Code3"
      Ports		      []
      Position		      [611, 235, 871, 265]
      ForegroundColor	      "blue"
      ShowName		      off
      OpenFcn		      "sf_cpp"
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskInitialization      "pos    = get_param(gcb, 'Position');\nwidth  = "
"pos(3) - pos(1);\nheight = pos(4) - pos(2);\n\n\n% Compute arrow coordinates"
"\narrowW = width  / 20;\narrowH = height / 2.5;\narrowX = width  / 50;\narrow"
"Y = height / 3;\narrowXvec = [arrowX, arrowX, arrowX + arrowW];\narrowYvec = "
"[arrowY, arrowY + arrowH, arrowY + arrowH / 2];\n\n% Compute text position\nt"
"extXbuff = width / 30;\ntextX  = arrowX + arrowW + textXbuff;\ntextY  = heigh"
"t / 2;\n"
      MaskDisplay	      "patch(arrowXvec, arrowYvec);\ntext(textX, textY"
", 'Open sf_cpp');"
      MaskIconFrame	      off
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "pixels"
      System {
	Name			"View RTW Custom Code3"
	Location		[150, 180, 648, 480]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "View RTW Custom Code4"
      Ports		      []
      Position		      [331, 435, 591, 465]
      ForegroundColor	      "blue"
      ShowName		      off
      OpenFcn		      "eval('edit my_header.h')"
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskInitialization      "pos    = get_param(gcb, 'Position');\nwidth  = "
"pos(3) - pos(1);\nheight = pos(4) - pos(2);\n\n\n% Compute arrow coordinates"
"\narrowW = width  / 20;\narrowH = height / 2.5;\narrowX = width  / 50;\narrow"
"Y = height / 3;\narrowXvec = [arrowX, arrowX, arrowX + arrowW];\narrowYvec = "
"[arrowY, arrowY + arrowH, arrowY + arrowH / 2];\n\n% Compute text position\nt"
"extXbuff = width / 30;\ntextX  = arrowX + arrowW + textXbuff;\ntextY  = heigh"
"t / 2;\n"
      MaskDisplay	      "patch(arrowXvec, arrowYvec);\ntext(textX, textY"
", 'Open my_header.h');"
      MaskIconFrame	      off
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "pixels"
      System {
	Name			"View RTW Custom Code4"
	Location		[150, 180, 648, 480]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "View RTW Custom Code5"
      Ports		      []
      Position		      [331, 470, 591, 500]
      ForegroundColor	      "blue"
      ShowName		      off
      OpenFcn		      "eval('edit my_function.c')"
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskInitialization      "pos    = get_param(gcb, 'Position');\nwidth  = "
"pos(3) - pos(1);\nheight = pos(4) - pos(2);\n\n\n% Compute arrow coordinates"
"\narrowW = width  / 20;\narrowH = height / 2.5;\narrowX = width  / 50;\narrow"
"Y = height / 3;\narrowXvec = [arrowX, arrowX, arrowX + arrowW];\narrowYvec = "
"[arrowY, arrowY + arrowH, arrowY + arrowH / 2];\n\n% Compute text position\nt"
"extXbuff = width / 30;\ntextX  = arrowX + arrowW + textXbuff;\ntextY  = heigh"
"t / 2;\n"
      MaskDisplay	      "patch(arrowXvec, arrowYvec);\ntext(textX, textY"
", 'Open my_function.c');"
      MaskIconFrame	      off
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "pixels"
      System {
	Name			"View RTW Custom Code5"
	Location		[150, 180, 648, 480]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "View RTW Custom Code6"
      Ports		      []
      Position		      [611, 380, 871, 410]
      ForegroundColor	      "blue"
      ShowName		      off
      OpenFcn		      "helpview([docroot '/mapfiles/stateflow.map'], '"
"TARGET_OPTIONS_DIALOG')"
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskInitialization      "pos    = get_param(gcb, 'Position');\nwidth  = "
"pos(3) - pos(1);\nheight = pos(4) - pos(2);\n\n\n% Compute arrow coordinates"
"\narrowW = width  / 20;\narrowH = height / 2.5;\narrowX = width  / 50;\narrow"
"Y = height / 3;\narrowXvec = [arrowX, arrowX, arrowX + arrowW];\narrowYvec = "
"[arrowY, arrowY + arrowH, arrowY + arrowH / 2];\n\n% Compute text position\nt"
"extXbuff = width / 30;\ntextX  = arrowX + arrowW + textXbuff;\ntextY  = heigh"
"t / 2;\n"
      MaskDisplay	      "patch(arrowXvec, arrowYvec);\ntext(textX, textY"
", 'C-Code integration');"
      MaskIconFrame	      off
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "pixels"
      System {
	Name			"View RTW Custom Code6"
	Location		[150, 180, 648, 480]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "View RTW Custom Code7"
      Ports		      []
      Position		      [611, 415, 871, 445]
      ForegroundColor	      "blue"
      ShowName		      off
      OpenFcn		      "helpview([docroot '/mapfiles/stateflow.map'], '"
"including_custom_cpp_code')"
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskInitialization      "pos    = get_param(gcb, 'Position');\nwidth  = "
"pos(3) - pos(1);\nheight = pos(4) - pos(2);\n\n\n% Compute arrow coordinates"
"\narrowW = width  / 20;\narrowH = height / 2.5;\narrowX = width  / 50;\narrow"
"Y = height / 3;\narrowXvec = [arrowX, arrowX, arrowX + arrowW];\narrowYvec = "
"[arrowY, arrowY + arrowH, arrowY + arrowH / 2];\n\n% Compute text position\nt"
"extXbuff = width / 30;\ntextX  = arrowX + arrowW + textXbuff;\ntextY  = heigh"
"t / 2;\n"
      MaskDisplay	      "patch(arrowXvec, arrowYvec);\ntext(textX, textY"
", 'C++-Code integration');"
      MaskIconFrame	      off
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "pixels"
      System {
	Name			"View RTW Custom Code7"
	Location		[150, 180, 648, 480]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Line {
      SrcBlock		      "Sine Wave"
      SrcPort		      1
      DstBlock		      "Chart"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Chart"
      SrcPort		      1
      DstBlock		      "Scope"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Chart"
      SrcPort		      2
      DstBlock		      "Scope"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Chart"
      SrcPort		      3
      DstBlock		      "Scope"
      DstPort		      3
    }
    Annotation {
      Name		      "Integrating Custom C-Code in Stateflow"
      Position		      [436, 23]
      BackgroundColor	      "yellow"
      DropShadow	      on
      FontName		      "Arial"
      FontSize		      16
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Calling C++ code from Stateflow"
      Position		      [607, 155]
      HorizontalAlignment     "left"
      FontName		      "Arial"
      FontSize		      14
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Integrating c-code into model"
      Position		      [20, 154]
      HorizontalAlignment     "left"
      FontName		      "Arial"
      FontSize		      14
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Calling c-code from Stateflow"
      Position		      [325, 154]
      HorizontalAlignment     "left"
      FontName		      "Arial"
      FontSize		      14
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Custom written c-files can be easily integrated"
" into\nStateflow models.  This code can be used to\naugment Stateflow's capab"
"ilities or to take \nadvantage of legacy code.\n\nTo add custom c-files open "
"the Stateflow\nsimulation target and enter the following:\n\n  {\\bfInclude C"
"ode} - Header that defines functions,\n                              structur"
"es, and data to be\n                              accessible by Stateflow.\n "
" {\\bfInclude Path} - Path to this include file.\n  {\\bfSource Files} - c-fi"
"les that define the functions\n                             and data accessib"
"le by Stateflow."
      Position		      [22, 290]
      HorizontalAlignment     "left"
      TeXMode		      "on"
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "If generating code via Real-Time Workshop, thes"
"e\nsame settings must also be added to the Model's\nconfiguration parameters "
"custom code settings."
      Position		      [40, 468]
      HorizontalAlignment     "left"
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "{\\bfFunctions}\nCustom c-code functions can be"
" called from\nStateflow using the same syntax as graphical\nfunction calls.  "
"The statement takes the form:\n\n  {\\itresult = my\\_custom\\_function(in\\_"
"args);}\n\n{\\bfStructures}\nVariables of structure type can be accessed in\n"
"Stateflow via the \"dot\" notation.  The expression\ntakes the form:\n\n  {\\"
"itresult = my\\_var.my\\_field;}\n\nTo view the custom source for this demons"
"tration\ndouble click the links below."
      Position		      [325, 306]
      HorizontalAlignment     "left"
      TeXMode		      "on"
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "Custom C++ code can also be integrated into\nSt"
"ateflow and Real-Time Workshop.  Double-\nclick below for a demonstration."
      Position		      [611, 207]
      HorizontalAlignment     "left"
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "Additional documentation"
      Position		      [607, 285]
      HorizontalAlignment     "left"
      FontName		      "Arial"
      FontSize		      14
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Additional documentation is available\nfor inte"
"grating C and C++ code in\nyour modelby double-clicking the link\nbelow."
      Position		      [616, 342]
      HorizontalAlignment     "left"
      FontName		      "Arial"
      FontSize		      12
    }
  }
}

# Finite State Machines
#
#    Stateflow Version 6.2 (R14SP2) dated Jan 21 2005, 03:46:19
#
#

Stateflow {

	machine {
		id                   		1
		name                 		"sf_custom"
		created              		"15-Oct-2001 17:10:46"
		isLibrary            		0
		firstTarget          		15
		sfVersion            		62014000
		sfDemoChecksum       		[3508057438 1989481186 3692020490 3862480517]
	}

	chart {
		id                                        		2
		name                                      		"Chart"
		windowPosition                            		[42 44.25 603 432]
		viewLimits                                		[0 559.5 0 396]
		screen                                    		[1 1 1024 768 1.333333333333333]
		treeNode                                  		[0 7 0 0]
		viewObj                                   		2
		machine                                   		1
		decomposition                             		SET_CHART
		firstData                                 		10
		chartFileNumber                           		2
	}

	state {
		id                  		3
		labelString         		"A\n"
						"during:\n"
						"gMyStructVar.a = input;\n"
						"output_a=gMyStructVar.a*3;\n"
						"output_b = my_function(input);"
		position            		[45.35 251.7537 172.0233 85.7818]
		fontSize            		12
		chart               		2
		treeNode            		[5 0 0 0]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		4
		labelString         		"B\n"
						"during:\n"
						"gMyStructVar.b[1]=input+3;\n"
						"gMyStructPointerVar = &gMyStructVar;\n"
						"output_c=gMyStructPointerVar->b[1];"
		position            		[281.472 252.5349 223.3136 82.6424]
		fontSize            		12
		chart               		2
		treeNode            		[6 0 0 0]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		5
		labelString         		"One"
		position            		[19.7936 220.0113 220.6661 141.0908]
		fontSize            		12
		chart               		2
		treeNode            		[2 3 7 6]
		firstTransition     		8
		subviewer           		2
		type                		AND_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		6
		labelString         		"Two"
		position            		[252.1363 223.5484 281.8759 141.4665]
		fontSize            		12
		chart               		2
		treeNode            		[2 4 5 0]
		firstTransition     		9
		subviewer           		2
		type                		AND_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		7
		labelString         		"In this demo, a C-code function defined in my_function.c a"
						"nd a structure that is defined\n"
						"in my_header.h are included in the chart. MY_FUNCTION simp"
						"ly multiplies its input by\n"
						"2. The structure in my_header.h is defined as follows:\n"
						"typedef struct {\n"
						"                real_T a;\n"
						"                int8_T b[10];\n"
						"}MyStruct;\n"
						"In the model, we access the structure member using the dot"
						" notation:  MyStruct.a and\n"
						"also with the use of a pointer: gMyStructPointerVar ->b[1]"
						".  Notice that 'b' is defined as\n"
						"an 8-bit integer value and not a Real (double) value. This"
						" the reason why 'output_c'\n"
						"alternates between values '1' and '0' instead of taking th"
						"e precise values of the input\n"
						"sine wave."
		position            		[39.5 21.9506 469.0127 176.6739]
		fontSize            		12
		chart               		2
		treeNode            		[2 0 0 5]
		superState          		GROUPED
		isNoteBox           		1
		noteBox             		[0 0 0 1]
		subviewer           		2
		type                		GROUP_STATE
		decomposition       		SET_STATE
	}

	transition {
		id             		8
		labelPosition  		[59.796 238.476 8.25 14.972]
		fontSize       		12
		src {
			intersection		[0 0 1 0 59.5935 231.2006 0 0]
		}
		dst {
			id          		3
			intersection		[1 0 -1 0.0828 59.5935 251.7537 0 0]
		}
		midPoint       		[59.5935 237.6633]
		chart          		2
		linkNode       		[5 0 0]
		dataLimits     		[57.193 61.993 231.201 251.754]
		subviewer      		2
		drawStyle      		SMART
		slide {
			midPointSticky		1
		}
		executionOrder 		1
	}

	transition {
		id             		9
		labelPosition  		[297.561 236.834 8.25 14.972]
		fontSize       		12
		src {
			intersection		[0 0 1 0 297.625 232.125 0 0]
		}
		dst {
			id          		4
			intersection		[1 0 -1 0.0723 297.625 252.5349 0 0]
		}
		midPoint       		[297.625 238.5129]
		chart          		2
		linkNode       		[6 0 0]
		dataLimits     		[295.225 300.025 232.125 252.535]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	data {
		id                            		10
		name                          		"input"
		linkNode                      		[2 0 11]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_UINT8_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		11
		name                          		"output_a"
		linkNode                      		[2 10 12]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_UINT8_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		12
		name                          		"output_b"
		linkNode                      		[2 11 13]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_UINT8_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		13
		name                          		"output_c"
		linkNode                      		[2 12 0]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_UINT8_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	instance {
		id     		14
		name   		"Chart"
		machine		1
		chart  		2
	}

	target {
		id                        		15
		name                      		"sfun"
		description               		"Default Simulink S-Function Target."
		customCode                		"#include \"my_header.h\""
		codeFlags                 		" debug=1 overflow=1 echo=1"
		machine                   		1
		linkNode                  		[1 0 16]
		userSources               		"my_function.c"
	}

	target {
		id                        		16
		name                      		"rtw"
		codeFlags                 		" comments=1 statebitsets=1 databitsets=1 emitlogicalops=1 el"
						"seifdetection=1 constantfolding=1 redundantloadelimination=0"
						" preserveconstantnames=0 preservenames=0 preservenameswithpa"
						"rent=0 exportcharts=0"
		machine                   		1
		linkNode                  		[1 15 0]
	}
}
