Model {
  Name			  "sf_cpp"
  Version		  6.2
  MdlSubVersion		  0
  GraphicalInterface {
    NumRootInports	    0
    NumRootOutports	    1
    Outport {
      BusObject		      ""
      BusOutputAsStruct	      "off"
      Name		      "Out1"
    }
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.117"
    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 Jun 02 14:10:05 2003"
  Creator		  "The MathWorks Inc."
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "batserve"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Sat Jan 22 19:11:53 2005"
  ModelVersionFormat	  "1.%<AutoIncrement:117>"
  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		  "inf"
	  AbsTol		  "auto"
	  FixedStep		  "auto"
	  InitialStep		  "auto"
	  MaxNumMinSteps	  "-1"
	  MaxOrder		  5
	  ExtrapolationOrder	  4
	  NumberNewtonIterations  1
	  MaxStep		  "auto"
	  MinStep		  "auto"
	  RelTol		  "1e-3"
	  SolverMode		  "Auto"
	  Solver		  "FixedStepDiscrete"
	  SolverName		  "FixedStepDiscrete"
	  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		  off
	  SaveState		  off
	  SignalLogging		  on
	  SaveTime		  off
	  StateSaveName		  "xout"
	  TimeSaveName		  "tout"
	  OutputSaveName	  "yout"
	  SignalLoggingName	  "sigsOut"
	  OutputOption		  "RefineOutputTimes"
	  OutputTimes		  "[]"
	  Refine		  "1"
	}
	Simulink.OptimizationCC {
	  $ObjectID		  4
	  Array {
	    Type		    "Cell"
	    Dimension		    5
	    Cell		    "ZeroExternalMemoryAtStartup"
	    Cell		    "ZeroInternalMemoryAtStartup"
	    Cell		    "InitFltsAndDblsToZero"
	    Cell		    "OptimizeModelRefInitCode"
	    Cell		    "NoFixptDivByZeroProtection"
	    PropName		    "DisabledProps"
	  }
	  Version		  "1.1.0"
	  BlockReduction	  on
	  BooleanDataType	  on
	  ConditionallyExecuteInputs on
	  InlineParams		  on
	  InlineInvariantSignals  on
	  OptimizeBlockIOStorage  on
	  BufferReuse		  on
	  EnforceIntegerDowncast  off
	  ExpressionFolding	  on
	  FoldNonRolledExpr	  on
	  LocalBlockOutputs	  on
	  ParameterPooling	  on
	  RollThreshold		  5
	  SystemCodeInlineAuto	  off
	  StateBitsets		  on
	  DataBitsets		  on
	  UseTempVars		  on
	  ZeroExternalMemoryAtStartup on
	  ZeroInternalMemoryAtStartup on
	  InitFltsAndDblsToZero	  on
	  NoFixptDivByZeroProtection off
	  EfficientFloat2IntCast  off
	  OptimizeModelRefInitCode off
	  LifeSpan		  "inf"
	  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  "warning"
	  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
	  Array {
	    Type		    "Cell"
	    Dimension		    1
	    Cell		    "IncludeHyperlinkInReport"
	    PropName		    "DisabledProps"
	  }
	  Version		  "1.1.0"
	  SystemTargetFile	  "grt.tlc"
	  GenCodeOnly		  off
	  MakeCommand		  "make_rtw"
	  TemplateMakefile	  "grt_default_tmf"
	  Description		  "Generic Real-Time Target"
	  GenerateReport	  on
	  SaveLog		  off
	  RTWVerbose		  off
	  RetainRTWFile		  off
	  ProfileTLC		  off
	  TLCDebug		  off
	  TLCCoverage		  off
	  TLCAssert		  off
	  ProcessScriptMode	  "Default"
	  ConfigurationMode	  "Optimized"
	  ConfigAtBuild		  off
	  CustomSourceCode	  "#include \"adder_cpp.h\""
	  CustomInclude		  "./custom_cpp_src"
	  CustomSource		  "./custom_cpp_src/adder_cpp.cpp"
	  CustomInitializer	  "adderVar = createAdder();"
	  CustomTerminator	  "deleteAdder(adderVar);"
	  IncludeHyperlinkInReport off
	  LaunchReport		  on
	  TargetLang		  "C++"
	  Array {
	    Type		    "Handle"
	    Dimension		    2
	    Simulink.CodeAppCC {
	      $ObjectID		      9
	      Array {
		Type			"Cell"
		Dimension		9
		Cell			"IgnoreCustomStorageClasses"
		Cell			"InsertBlockDesc"
		Cell			"SFDataObjDesc"
		Cell			"SimulinkDataObjDesc"
		Cell			"DefineNamingRule"
		Cell			"SignalNamingRule"
		Cell			"ParamNamingRule"
		Cell			"InlinedPrmAccess"
		Cell			"CustomSymbolStr"
		PropName		"DisabledProps"
	      }
	      Version		      "1.1.0"
	      ForceParamTrailComments on
	      GenerateComments	      on
	      IgnoreCustomStorageClasses on
	      IncHierarchyInIds	      off
	      MaxIdLength	      31
	      PreserveName	      off
	      PreserveNameWithParent  off
	      ShowEliminatedStatement off
	      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.GRTTargetCC {
	      $BackupClass	      "Simulink.TargetCC"
	      $ObjectID		      10
	      Array {
		Type			"Cell"
		Dimension		12
		Cell			"IncludeMdlTerminateFcn"
		Cell			"CombineOutputUpdateFcns"
		Cell			"SuppressErrorStatus"
		Cell			"ERTCustomFileBanners"
		Cell			"GenerateSampleERTMain"
		Cell			"MultiInstanceERTCode"
		Cell			"PurelyIntegerCode"
		Cell			"SupportNonFinite"
		Cell			"SupportComplex"
		Cell			"SupportAbsoluteTime"
		Cell			"SupportContinuousTime"
		Cell			"SupportNonInlinedSFcns"
		PropName		"DisabledProps"
	      }
	      Version		      "1.1.0"
	      TargetFcnLib	      "ansi_tfl_tmw.mat"
	      TargetLibSuffix	      ""
	      TargetPreCompLibLocation ""
	      GenFloatMathFcnCalls    "ANSI_C"
	      UtilityFuncGeneration   "Auto"
	      GenerateFullHeader      on
	      GenerateSampleERTMain   off
	      IsPILTarget	      off
	      ModelReferenceCompliant on
	      IncludeMdlTerminateFcn  on
	      CombineOutputUpdateFcns off
	      SuppressErrorStatus     off
	      IncludeFileDelimiter    "Auto"
	      ERTCustomFileBanners    off
	      SupportAbsoluteTime     on
	      LogVarNameModifier      "rt_"
	      MatFileLogging	      on
	      MultiInstanceERTCode    off
	      SupportNonFinite	      on
	      SupportComplex	      on
	      PurelyIntegerCode	      off
	      SupportContinuousTime   on
	      SupportNonInlinedSFcns  on
	      ExtMode		      off
	      ExtModeStaticAlloc      off
	      ExtModeTesting	      off
	      ExtModeStaticAllocSize  1000000
	      ExtModeTransport	      0
	      ExtModeMexFile	      "ext_comm"
	      RTWCAPISignals	      off
	      RTWCAPIParams	      off
	      RTWCAPIStates	      off
	      GenerateASAP2	      off
	    }
	    PropName		    "Components"
	  }
	}
	PropName		"Components"
      }
      Name		      "Configuration"
      SimulationMode	      "normal"
      CurrentDlgPage	      "Real-Time Workshop"
    }
    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		      Constant
      Value		      "1"
      VectorParams1D	      on
      OutDataTypeMode	      "Inherit from 'Constant value'"
      OutDataType	      "sfix(16)"
      ConRadixGroup	      "Use specified scaling"
      OutScaling	      "2^0"
      SampleTime	      "inf"
    }
    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		      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_cpp"
    Location		    [412, 115, 1100, 743]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "Build GRT"
      Ports		      []
      Position		      [530, 80, 659, 140]
      BackgroundColor	      "lightBlue"
      ShowName		      off
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      SourceBlock	      "rtwdemowidgets/Build GRT"
      SourceType	      ""
      ShowPortLabels	      on
      attrib_overrides	      "{}"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Chart"
      Ports		      [1, 1]
      Position		      [230, 63, 390, 147]
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "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		  Inport
	  Name			  "increment"
	  Position		  [20, 101, 40, 119]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Demux
	  Name			  " Demux "
	  Ports			  [1, 1]
	  Position		  [270, 160, 320, 200]
	  Outputs		  "1"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  " SFunction "
	  Tag			  "Stateflow S-Function sf_cpp 1"
	  Ports			  [1, 2]
	  Position		  [180, 100, 230, 160]
	  FunctionName		  "sf_sfun"
	  PortCounts		  "[1 2]"
	  Port {
	    PortNumber		    2
	    Name		    "counter"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Terminator
	  Name			  " Terminator "
	  Position		  [460, 171, 480, 189]
	}
	Block {
	  BlockType		  Outport
	  Name			  "counter"
	  Position		  [460, 101, 480, 119]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  " SFunction "
	  SrcPort		  1
	  Points		  [0, 65]
	  DstBlock		  " Demux "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " Demux "
	  SrcPort		  1
	  DstBlock		  " Terminator "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "increment"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  1
	}
	Line {
	  Name			  "counter"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  2
	  DstBlock		  "counter"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Constant
      Name		      "Constant"
      Position		      [165, 90, 195, 120]
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      Value		      "5"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [1]
      Position		      [450, 119, 480, 151]
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      Location		      [16, 365, 383, 636]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "15"
      YMax		      "105"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem"
      Ports		      []
      Position		      [19, 185, 62, 222]
      ForegroundColor	      "red"
      ShowName		      off
      FontName		      "Arial"
      FontSize		      28
      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\nmarginPercent = 20;\nmarginPix"
"els  = round(marginPercent / 100 * width);\n\nx1 = width - marginPixels;\ny1 "
"= height;\nx2 = width;\ny2 = height - marginPixels;\nx3 = width;\ny3 = margin"
"Pixels;\nx4 = width - marginPixels;\ny4 = 0;\nx5 = marginPixels;\ny5 = 0;\nx6"
" = 0;\ny6 = marginPixels;\nx7 = 0;\ny7 = height - marginPixels;\nx8 = marginP"
"ixels;\ny8 = height;\n\nxvec = [x1, x2, x3, x4, x5, x6, x7, x8];\nyvec = [y1,"
" y2, y3, y4, y5, y6, y7, y8];\n"
      MaskDisplay	      "color('red');\npatch(xvec, yvec);\ncolor('white"
"');\ndisp('!');\n"
      MaskIconFrame	      off
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "pixels"
      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		      "Subsystem2"
      Ports		      []
      Position		      [50, 270, 261, 275]
      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		      [375, 420, 586, 425]
      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		      "Subsystem5"
      Ports		      []
      Position		      [370, 270, 581, 275]
      BackgroundColor	      "black"
      ShowName		      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Subsystem5"
	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		      [61, 585, 321, 615]
      ForegroundColor	      "blue"
      ShowName		      off
      NameChangeFcn	      "rt=sfroot;\nm=rt.find('-isa','Stateflow.Machine"
"','-and', 'name','sf_cpp');\ntar=m.find('-isa','Stateflow.Target','-and','nam"
"e','sfun');\nsf('Private','targetddg_btn_target_cb',tar,'Target Options');"
      OpenFcn		      "rt=sfroot;                                     "
"               \nm=rt.find('-isa','Stateflow.Machine','-and', 'name','sf_cpp'"
");\ntar=m.find('-isa','Stateflow.Target','-and','name','sfun');   \nsf('Priva"
"te','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 Target');"
      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		      [66, 385, 326, 415]
      ForegroundColor	      "blue"
      ShowName		      off
      OpenFcn		      "filename=fullfile(matlabroot, 'toolbox', 'state"
"flow', 'sfdemos', 'custom_cpp_src', 'adder_cpp.cpp');\neval('edit(filename)')"
"                                                                             "
" "
      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 adder_cpp.cpp');"
      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		      [66, 410, 326, 440]
      ForegroundColor	      "blue"
      ShowName		      off
      OpenFcn		      "filename=fullfile(matlabroot, 'toolbox', 'state"
"flow', 'sfdemos', 'custom_cpp_src', 'adder_cpp.h');\neval('edit(filename)')  "
"                                                                          "
      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 adder_cpp.h');"
      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		      [61, 505, 321, 535]
      ForegroundColor	      "blue"
      ShowName		      off
      OpenFcn		      "model = bdroot;                                "
"\nslCfgPrmDlg(model,'Open');                     \nslCfgPrmDlg(bdroot,'TurnTo"
"Page','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 Custom Code Settings');"
      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		      [371, 525, 631, 555]
      ForegroundColor	      "blue"
      ShowName		      off
      OpenFcn		      "helpview([docroot '/toolbox/rtw/helptargets.map"
"'], 'rtw_cpp_limitations')"
      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++ Limitations');"
      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 Code7"
      Ports		      []
      Position		      [371, 495, 631, 525]
      ForegroundColor	      "blue"
      ShowName		      off
      OpenFcn		      "helpview([docroot '/toolbox/rtw/helptargets.map"
"'], 'rtw_language_support')"
      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++ Documentation');"
      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"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "View RTW Custom Code8"
      Ports		      []
      Position		      [371, 355, 631, 385]
      ForegroundColor	      "blue"
      ShowName		      off
      OpenFcn		      "model = bdroot;                                "
"       \nslCfgPrmDlg(model,'Open');                            \nslCfgPrmDlg("
"bdroot,'TurnToPage','Real-Time Workshop');"
      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 Settings');"
      MaskIconFrame	      off
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "pixels"
      System {
	Name			"View RTW Custom Code8"
	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		      Outport
      Name		      "Out1"
      Position		      [450, 68, 480, 82]
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      IconDisplay	      "Port number"
      BusOutputAsStruct	      off
    }
    Line {
      SrcBlock		      "Constant"
      SrcPort		      1
      DstBlock		      "Chart"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Chart"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	Points			[0, 30]
	DstBlock		"Scope"
	DstPort			1
      }
      Branch {
	Points			[0, -30]
	DstBlock		"Out1"
	DstPort			1
      }
    }
    Annotation {
      Name		      "Then open the Stateflow Simulation target\nand "
"enter the same information:\nfollowing:"
      Position		      [65, 563]
      HorizontalAlignment     "left"
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "{\\bf1)} Create a C-style wrapper functions or"
"\n     create access macros for each method\n     called within the Stateflow"
" action language."
      Position		      [52, 361]
      HorizontalAlignment     "left"
      TeXMode		      "on"
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "{\\bfFor this demo to run you must go to the MA"
"TLAB command prompt and enter:} {\\it>> mex -setup}\n{\\bfthen select a C++ c"
"ompiler.}"
      Position		      [80, 206]
      HorizontalAlignment     "left"
      TeXMode		      "on"
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "C++ Code {\\itIntegration}"
      Position		      [52, 257]
      HorizontalAlignment     "left"
      TeXMode		      "on"
      FontName		      "Arial"
      FontSize		      14
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "You can integrate C++ code into a model via\nSt"
"ateflow.  The following steps illustrate\nhow to perform this integration:"
      Position		      [52, 306]
      HorizontalAlignment     "left"
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "{\\bf2)} Open the {\\itCustom Code} section\n  "
"   of the {\\itReal-Time} {\\itWorkshop} settings and\n     add the S-Functio"
"n source files and any\n     include directories."
      Position		      [53, 476]
      HorizontalAlignment     "left"
      TeXMode		      "on"
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "C++ Code Generation and Integration in Stateflo"
"w"
      Position		      [141, 23]
      HorizontalAlignment     "left"
      BackgroundColor	      "yellow"
      DropShadow	      on
      FontName		      "Arial"
      FontSize		      16
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Additional documentation"
      Position		      [377, 405]
      HorizontalAlignment     "left"
      FontName		      "Arial"
      FontSize		      14
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Additional documentation is available\ndescribi"
"ng how to generate and integrate\nC++ code in {\\itReal-Time} {\\itWorkshop} "
"\nby double-clicking the links below."
      Position		      [376, 462]
      HorizontalAlignment     "left"
      TeXMode		      "on"
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "Open the models' configuration parameters\nand "
"navigate to the {\\itReal-Time} {\\itWorkshop}\nsettings, or double-click bel"
"ow to see these\nsettings.  Next change the {\\itLanguage} setting\nto {\\itC"
"++}."
      Position		      [373, 316]
      HorizontalAlignment     "left"
      TeXMode		      "on"
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "C++ Code {\\itGeneration}"
      Position		      [372, 257]
      HorizontalAlignment     "left"
      TeXMode		      "on"
      FontName		      "Arial"
      FontSize		      14
      FontWeight	      "bold"
    }
  }
}

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

Stateflow {

	machine {
		id                   		1
		name                 		"sf_cpp"
		created              		"02-Jun-2003 14:10:05"
		isLibrary            		0
		firstTarget          		11
		sfVersion            		62014000
		sfDemoChecksum       		[4270665899 3892470280 3321119600 1194254701]
	}

	chart {
		id                                        		2
		name                                      		"Chart"
		windowPosition                            		[132.8 117.6 480 324.8]
		viewLimits                                		[8.543 359.325 1.124 232.336]
		zoomFactor                                		0.809
		screen                                    		[1 1 1600 1200 1.25]
		treeNode                                  		[0 3 0 0]
		firstTransition                           		5
		viewObj                                   		2
		visible                                   		1
		machine                                   		1
		subviewS {
		}
		decomposition                             		CLUSTER_CHART
		firstData                                 		8
		chartFileNumber                           		1
	}

	state {
		id                  		3
		labelString         		"under_100\n"
						"during: counter = adderOutput(adderVar, increment);"
		position            		[18.8066 65.3222 332.9537 54.2694]
		fontSize            		12
		chart               		2
		treeNode            		[2 0 0 4]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		4
		labelString         		"over_100\n"
						"during: counter = adderOutput(adderVar, -increment);"
		position            		[16.1078 166.5806 334.7219 49.5167]
		fontSize            		12
		chart               		2
		treeNode            		[2 0 3 0]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	transition {
		id             		5
		labelString    		"/ counter = 0;"
		labelPosition  		[134.994 25.947 71.839 16.143]
		fontSize       		12
		src {
			intersection		[0 0 1 0 128.8725 17.3222 0 0]
		}
		dst {
			id          		3
			intersection		[1 0 -1 0.3306 128.8725 65.3222 0 0]
		}
		midPoint       		[128.8725 38.105]
		chart          		2
		linkNode       		[2 0 7]
		dataLimits     		[126.472 131.273 17.322 65.322]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		6
		labelString    		"[counter > 100]"
		labelPosition  		[178.719 132.48 80.9 16.143]
		fontSize       		12
		src {
			id          		3
			intersection		[3 0 1 0.5455 170.1341 119.5916 0 -16.5]
		}
		dst {
			id          		4
			intersection		[1 0 -1 0.4602 170.1341 166.5806 0 17.25]
		}
		midPoint       		[170.119 139.8469]
		chart          		2
		linkNode       		[2 7 0]
		dataLimits     		[167.734 172.534 119.592 166.581]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		7
		labelString    		"[counter < 0]"
		labelPosition  		[26.043 137.545 67.956 16.143]
		fontSize       		12
		src {
			id          		4
			intersection		[1 0 -1 0.3189 122.8546 166.5806 0 -16.5]
		}
		dst {
			id          		3
			intersection		[3 0 1 0.6875 122.8546 119.5916 0 15.75]
		}
		midPoint       		[122.8475 146.3253]
		chart          		2
		linkNode       		[2 5 6]
		dataLimits     		[120.455 125.255 119.592 166.581]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	data {
		id                            		8
		name                          		"increment"
		linkNode                      		[2 0 9]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"int32"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		1
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		9
		name                          		"counter"
		linkNode                      		[2 8 0]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		1
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

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

	target {
		id                        		11
		name                      		"sfun"
		description               		"Default Simulink S-Function Target."
		customCode                		"#include \"adder_cpp.h\""
		customInitializer         		"adderVar = createAdder();"
		customTerminator          		"deleteAdder(adderVar);"
		codeFlags                 		" debug=1 overflow=1 echo=1"
		machine                   		1
		linkNode                  		[1 0 12]
		userSources               		"./custom_cpp_src/adder_cpp.cpp"
		userIncludeDirs           		"./custom_cpp_src"
	}

	target {
		id                        		12
		name                      		"rtw"
		customCode                		"#include \"adder_cpp.h\""
		codeFlags                 		" comments=0 preservenames=0 preservenameswithparent=0 export"
						"charts=0 statebitsets=0 databitsets=0"
		machine                   		1
		linkNode                  		[1 11 0]
		userSources               		"./custom_cpp_src/adder_cpp.cpp"
		userIncludeDirs           		"./custom_cpp_src"
	}
}
