# $Revision: 1.1.2.2 $
Model {
  Name			  "sf_cruise_control_test"
  Version		  6.2
  MdlSubVersion		  0
  GraphicalInterface {
    NumRootInports	    0
    NumRootOutports	    0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.54"
    NumModelReferences	    0
    NumTestPointedSignals   0
  }
  SavedCharacterEncoding  "US-ASCII"
  PreLoadFcn		  "Kp = 30; Kd = 30; Ki = 10;"
  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		  "Tue Apr 17 16:00:28 2001"
  Creator		  "The MathWorks Inc."
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "batserve"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Sat Jan 22 19:11:56 2005"
  ModelVersionFormat	  "1.%<AutoIncrement:54>"
  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		  "10.0"
	  AbsTol		  "auto"
	  FixedStep		  "auto"
	  InitialStep		  "auto"
	  MaxNumMinSteps	  "-1"
	  MaxOrder		  5
	  ExtrapolationOrder	  4
	  NumberNewtonIterations  1
	  MaxStep		  "auto"
	  MinStep		  "auto"
	  RelTol		  "1e-3"
	  SolverMode		  "Auto"
	  Solver		  "ode45"
	  SolverName		  "ode45"
	  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	  "logsout"
	  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	  off
	  ConditionallyExecuteInputs on
	  InlineParams		  off
	  InlineInvariantSignals  on
	  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 off
	  LifeSpan		  "inf"
	  BufferReusableBoundary  on
	}
	Simulink.DebuggingCC {
	  $ObjectID		  5
	  Version		  "1.1.0"
	  RTPrefix		  "error"
	  ConsistencyChecking	  "none"
	  ArrayBoundsChecking	  "none"
	  SignalInfNanChecking	  "none"
	  AlgebraicLoopMsg	  "warning"
	  ArtificialAlgebraicLoopMsg "warning"
	  CheckSSInitialOutputMsg on
	  CheckExecutionContextPreStartOutputMsg off
	  CheckExecutionContextRuntimeOutputMsg	off
	  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	  "Specified"
	  TargetUnknown		  on
	  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"
	  GenerateReport	  off
	  SaveLog		  off
	  RTWVerbose		  on
	  RetainRTWFile		  off
	  ProfileTLC		  off
	  TLCDebug		  off
	  TLCCoverage		  off
	  TLCAssert		  off
	  ProcessScriptMode	  "Default"
	  ConfigurationMode	  "Optimized"
	  ConfigAtBuild		  off
	  IncludeHyperlinkInReport off
	  LaunchReport		  off
	  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 off
	      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	      "Optimization"
    }
    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		      Assertion
      Enabled		      on
      StopWhenAssertionFail   on
      SampleTime	      "-1"
    }
    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		      DiscreteIntegrator
      IntegratorMethod	      "Integration: Forward Euler"
      gainval		      "1.0"
      ExternalReset	      "none"
      InitialConditionSource  "internal"
      InitialCondition	      "0"
      InitialConditionMode    "State and output"
      SampleTime	      "1"
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
      LimitOutput	      off
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      IgnoreLimit	      off
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
    Block {
      BlockType		      DiscretePulseGenerator
      PulseType		      "Sample based"
      TimeSource	      "Use simulation time"
      Amplitude		      "1"
      Period		      "2"
      PulseWidth	      "1"
      PhaseDelay	      "0"
      SampleTime	      "1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      EnablePort
      StatesWhenEnabling      "held"
      ShowOutputPort	      off
      ZeroCross		      on
    }
    Block {
      BlockType		      FromWorkspace
      VariableName	      "simulink_input"
      SampleTime	      "-1"
      Interpolate	      on
      ZeroCross		      off
      OutputAfterFinalValue   "Extrapolation"
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      ParameterDataTypeMode   "Same as input"
      ParameterDataType	      "sfix(16)"
      ParameterScalingMode    "Best Precision: Matrix-wise"
      ParameterScaling	      "2^0"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    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		      Logic
      Operator		      "AND"
      Inputs		      "2"
      AllPortsSameDT	      on
      OutDataTypeMode	      "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      MinMax
      Function		      "min"
      Inputs		      "1"
      InputSameDT	      on
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Mux
      Inputs		      "4"
      DisplayOption	      "none"
      UseBusObject	      off
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    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		      RelationalOperator
      Operator		      ">="
      InputSameDT	      on
      LogicOutDataTypeMode    "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      ZeroCross		      on
      SampleTime	      "-1"
    }
    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		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Switch
      Criteria		      "u2 >= Threshold"
      Threshold		      "0"
      InputSameDT	      on
      OutDataTypeMode	      "Inherit via internal rule"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Terminator
    }
    Block {
      BlockType		      TriggerPort
      TriggerType	      "rising"
      StatesWhenEnabling      "inherit"
      ShowOutputPort	      off
      OutputDataType	      "auto"
      SampleTimeType	      "triggered"
      SampleTime	      "1"
      ZeroCross		      on
    }
    Block {
      BlockType		      UnitDelay
      X0		      "0"
      SampleTime	      "1"
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
    Block {
      BlockType		      ZeroOrderHold
      SampleTime	      "1"
    }
  }
  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_cruise_control_test"
    Location		    [121, 75, 909, 398]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Scope
      Name		      "Actual and Expected \nSpeed Target"
      Ports		      [2]
      Position		      [615, 66, 675, 99]
      FontName		      "Arial"
      FontSize		      14
      FontWeight	      "bold"
      Location		      [571, 398, 976, 666]
      Open		      on
      NumInputPorts	      "2"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      YMin		      "-1~-1"
      YMax		      "35~35"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Assertion
      Name		      "Assertion"
      Position		      [695, 187, 755, 233]
      FontName		      "Arial"
      FontSize		      14
      FontWeight	      "bold"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Controller"
      Ports		      [8, 2]
      Position		      [235, 24, 415, 231]
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Controller"
	Location		[184, 197, 979, 692]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Increment"
	  Position		  [157, 25, 193, 40]
	  Orientation		  "down"
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Decrement"
	  Position		  [218, 50, 252, 65]
	  Orientation		  "down"
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Set"
	  Position		  [280, 75, 310, 90]
	  Orientation		  "down"
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  Port			  "3"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Resume"
	  Position		  [309, 100, 341, 115]
	  Orientation		  "down"
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  Port			  "4"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Power"
	  Position		  [35, 203, 65, 217]
	  NamePlacement		  "alternate"
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  Port			  "5"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "brake ratio"
	  Position		  [35, 233, 65, 247]
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  Port			  "6"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "accl_pedal (%)"
	  Position		  [35, 373, 65, 387]
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  Port			  "7"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "curr_speed"
	  Position		  [35, 353, 65, 367]
	  NamePlacement		  "alternate"
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  Port			  "8"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Enable / Setpoint calculation"
	  Ports			  [4, 2, 0, 1]
	  Position		  [155, 193, 315, 317]
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  TreatAsAtomicUnit	  on
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskType		  "Stateflow"
	  MaskDescription	  "Stateflow diagram"
	  MaskDisplay		  "plot(sf('Private','sfblk','xIcon'),sf('Priv"
"ate','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizontal"
"Al','Center','VerticalAl','Bottom');"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  off
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "Enable / Setpoint calculation"
	    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		      "pwr"
	      Position		      [20, 101, 40, 119]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "brake"
	      Position		      [20, 136, 40, 154]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "accl_pedal"
	      Position		      [20, 171, 40, 189]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "curr_speed"
	      Position		      [20, 206, 40, 224]
	      Port		      "4"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      TriggerPort
	      Name		      " input events "
	      Ports		      [0, 1]
	      Position		      [20, 246, 40, 264]
	      TriggerType	      "either"
	      ShowOutputPort	      on
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Demux
	      Name		      " Demux "
	      Ports		      [1, 1]
	      Position		      [270, 220, 320, 260]
	      Outputs		      "1"
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      " SFunction "
	      Tag		      "Stateflow S-Function sf_cruise_control_"
"test 2"
	      Ports		      [5, 3]
	      Position		      [180, 100, 230, 220]
	      FunctionName	      "sf_sfun"
	      PortCounts	      "[5 3]"
	      Port {
		PortNumber		2
		Name			"active_control"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      Port {
		PortNumber		3
		Name			"target_speed"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Terminator
	      Name		      " Terminator "
	      Position		      [460, 231, 480, 249]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "active_control"
	      Position		      [460, 101, 480, 119]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "target_speed"
	      Position		      [460, 136, 480, 154]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      " SFunction "
	      SrcPort		      1
	      Points		      [0, 120]
	      DstBlock		      " Demux "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      " Demux "
	      SrcPort		      1
	      DstBlock		      " Terminator "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "pwr"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "brake"
	      SrcPort		      1
	      Points		      [120, 0]
	      DstBlock		      " SFunction "
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "accl_pedal"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "curr_speed"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      " input events "
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      5
	    }
	    Line {
	      Name		      "active_control"
	      Labels		      [0, 0]
	      SrcBlock		      " SFunction "
	      SrcPort		      2
	      DstBlock		      "active_control"
	      DstPort		      1
	    }
	    Line {
	      Name		      "target_speed"
	      Labels		      [0, 0]
	      SrcBlock		      " SFunction "
	      SrcPort		      3
	      DstBlock		      "target_speed"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  MinMax
	  Name			  "MinMax"
	  Ports			  [2, 1]
	  Position		  [585, 302, 620, 333]
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  Function		  "max"
	  Inputs		  "2"
	  ZeroCross		  off
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [7, 1]
	  Position		  [124, 150, 346, 155]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  Inputs		  "7"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "PID Controller"
	  Ports			  [3, 1, 1]
	  Position		  [385, 273, 540, 347]
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  TreatAsAtomicUnit	  on
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "PID Controller"
	    Location		    [215, 552, 800, 898]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "target"
	      Position		      [35, 113, 65, 127]
	      FontName		      "Arial"
	      FontSize		      14
	      FontWeight	      "bold"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "measured"
	      Position		      [35, 168, 65, 182]
	      FontName		      "Arial"
	      FontSize		      14
	      FontWeight	      "bold"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "accl_pedal"
	      Position		      [40, 223, 70, 237]
	      FontName		      "Arial"
	      FontSize		      14
	      FontWeight	      "bold"
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      EnablePort
	      Name		      "Enable"
	      Ports		      []
	      Position		      [230, 15, 250, 35]
	      FontName		      "Arial"
	      FontSize		      14
	      FontWeight	      "bold"
	      StatesWhenEnabling      "reset"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Derivative Gain"
	      Position		      [380, 271, 430, 309]
	      FontName		      "Arial"
	      FontSize		      14
	      FontWeight	      "bold"
	      Gain		      "Kd"
	    }
	    Block {
	      BlockType		      DiscreteIntegrator
	      Name		      "Discrete-Time\nIntegrator"
	      Ports		      [2, 1]
	      Position		      [325, 164, 395, 211]
	      FontName		      "Arial"
	      FontSize		      14
	      FontWeight	      "bold"
	      IntegratorMethod	      "Integration: Forward Euler"
	      ExternalReset	      "none"
	      InitialConditionSource  "external"
	      SampleTime	      "0.1"
	      UpperSaturationLimit    "20"
	      LowerSaturationLimit    "-20"
	      ICPrevOutput	      "DiscIntNeverNeededParam"
	      ICPrevScaledInput	      "DiscIntNeverNeededParam"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Integral\nGain"
	      Position		      [230, 157, 275, 193]
	      FontName		      "Arial"
	      FontSize		      14
	      FontWeight	      "bold"
	      Gain		      "Ki"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Proportional Gain"
	      Position		      [300, 90, 350, 130]
	      FontName		      "Arial"
	      FontSize		      14
	      FontWeight	      "bold"
	      Gain		      "Kp"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [3, 1]
	      Position		      [445, 175, 475, 205]
	      ShowName		      off
	      FontName		      "Arial"
	      FontSize		      14
	      FontWeight	      "bold"
	      IconShape		      "round"
	      Inputs		      "+++"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum1"
	      Ports		      [2, 1]
	      Position		      [330, 280, 350, 300]
	      ShowName		      off
	      FontName		      "Arial"
	      FontSize		      14
	      FontWeight	      "bold"
	      IconShape		      "round"
	      Inputs		      "+-|"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum2"
	      Ports		      [2, 1]
	      Position		      [95, 165, 115, 185]
	      ShowName		      off
	      FontName		      "Arial"
	      FontSize		      14
	      FontWeight	      "bold"
	      IconShape		      "round"
	      Inputs		      "+-|"
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay"
	      Position		      [265, 270, 300, 310]
	      FontName		      "Arial"
	      FontSize		      14
	      FontWeight	      "bold"
	      SampleTime	      "0.1"
	    }
	    Block {
	      BlockType		      ZeroOrderHold
	      Name		      "Zero-Order\nHold"
	      Position		      [150, 162, 170, 188]
	      NamePlacement	      "alternate"
	      FontName		      "Arial"
	      FontSize		      14
	      FontWeight	      "bold"
	      SampleTime	      "0.1"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Command"
	      Position		      [515, 183, 545, 197]
	      FontName		      "Arial"
	      FontSize		      14
	      FontWeight	      "bold"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      DstBlock		      "Sum1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum1"
	      SrcPort		      1
	      DstBlock		      "Derivative Gain"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Discrete-Time\nIntegrator"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Derivative Gain"
	      SrcPort		      1
	      Points		      [25, 0]
	      DstBlock		      "Sum"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Proportional Gain"
	      SrcPort		      1
	      Points		      [105, 0]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum2"
	      SrcPort		      1
	      DstBlock		      "Zero-Order\nHold"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "Command"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "target"
	      SrcPort		      1
	      Points		      [35, 0]
	      DstBlock		      "Sum2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "measured"
	      SrcPort		      1
	      DstBlock		      "Sum2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Integral\nGain"
	      SrcPort		      1
	      DstBlock		      "Discrete-Time\nIntegrator"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "accl_pedal"
	      SrcPort		      1
	      Points		      [220, 0; 0, -30]
	      DstBlock		      "Discrete-Time\nIntegrator"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Zero-Order\nHold"
	      SrcPort		      1
	      Points		      [35, 0]
	      Branch {
		Points			[0, -65]
		DstBlock		"Proportional Gain"
		DstPort			1
	      }
	      Branch {
		Points			[0, 80]
		Branch {
		  Points		  [0, 35]
		  DstBlock		  "Unit Delay"
		  DstPort		  1
		}
		Branch {
		  Points		  [130, 0]
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
	      }
	      Branch {
		DstBlock		"Integral\nGain"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  DiscretePulseGenerator
	  Name			  "Pulse\nGenerator"
	  Ports			  [0, 1]
	  Position		  [60, 100, 110, 140]
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  SampleTime		  ".05"
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch"
	  Position		  [655, 305, 685, 395]
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  Threshold		  "1"
	  SaturateOnIntegerOverflow off
	  ZeroCross		  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Target (MPH)"
	  Position		  [715, 198, 745, 212]
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Throt_cmd (%)"
	  Position		  [720, 343, 750, 357]
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "Enable / Setpoint calculation"
	  DstPort		  trigger
	}
	Line {
	  SrcBlock		  "Enable / Setpoint calculation"
	  SrcPort		  2
	  Points		  [0, 0; 30, 0]
	  Branch {
	    DstBlock		    "PID Controller"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -80]
	    DstBlock		    "Target (MPH)"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "curr_speed"
	  SrcPort		  1
	  Points		  [0, 0; 50, 0]
	  Branch {
	    Points		    [215, 0; 0, -50]
	    DstBlock		    "PID Controller"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, -60]
	    DstBlock		    "Enable / Setpoint calculation"
	    DstPort		    4
	  }
	}
	Line {
	  SrcBlock		  "accl_pedal (%)"
	  SrcPort		  1
	  Points		  [0, 0; 25, 0]
	  Branch {
	    Points		    [0, -110]
	    DstBlock		    "Enable / Setpoint calculation"
	    DstPort		    3
	  }
	  Branch {
	    Points		    [260, 0]
	    Branch {
	      Points		      [0, -45]
	      DstBlock		      "PID Controller"
	      DstPort		      3
	    }
	    Branch {
	      Points		      [205, 0]
	      Branch {
		DstBlock		"Switch"
		DstPort			3
	      }
	      Branch {
		Points			[0, -55]
		DstBlock		"MinMax"
		DstPort			2
	      }
	    }
	  }
	}
	Line {
	  SrcBlock		  "Increment"
	  SrcPort		  1
	  Points		  [0, 0; 0, 70]
	  Branch {
	    Points		    [30, 0]
	    DstBlock		    "Mux"
	    DstPort		    3
	  }
	  Branch {
	    DstBlock		    "Mux"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Decrement"
	  SrcPort		  1
	  Points		  [0, 0; 0, 45]
	  Branch {
	    Points		    [30, 0]
	    DstBlock		    "Mux"
	    DstPort		    5
	  }
	  Branch {
	    DstBlock		    "Mux"
	    DstPort		    4
	  }
	}
	Line {
	  SrcBlock		  "Set"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  6
	}
	Line {
	  SrcBlock		  "Resume"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  7
	}
	Line {
	  SrcBlock		  "Power"
	  SrcPort		  1
	  DstBlock		  "Enable / Setpoint calculation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "brake ratio"
	  SrcPort		  1
	  DstBlock		  "Enable / Setpoint calculation"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Switch"
	  SrcPort		  1
	  DstBlock		  "Throt_cmd (%)"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Enable / Setpoint calculation"
	  SrcPort		  1
	  Points		  [0, 0; 140, 0]
	  Branch {
	    Points		    [175, 0; 0, 125]
	    DstBlock		    "Switch"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "PID Controller"
	    DstPort		    enable
	  }
	}
	Line {
	  SrcBlock		  "MinMax"
	  SrcPort		  1
	  DstBlock		  "Switch"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "PID Controller"
	  SrcPort		  1
	  DstBlock		  "MinMax"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Pulse\nGenerator"
	  SrcPort		  1
	  Points		  [30, 0]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Signal Builder\n(input and expected output)"
      Tag		      "STV Subsys"
      Ports		      [0, 9]
      Position		      [20, 20, 180, 260]
      CopyFcn		      "sigbuilder_block('copy');"
      DeleteFcn		      "sigbuilder_block('delete');"
      LoadFcn		      "sigbuilder_block('load',[42.265 267.038 390.951"
" 268.959 ]);"
      ModelCloseFcn	      "sigbuilder_block('modelClose');"
      PreSaveFcn	      "sigbuilder_block('preSave');"
      StartFcn		      "sigbuilder_block('start');"
      StopFcn		      "sigbuilder_block('stop');"
      NameChangeFcn	      "sigbuilder_block('namechange');"
      ClipboardFcn	      "sigbuilder_block('clipboard');"
      OpenFcn		      "sigbuilder_block('open',[92.25 347.25 417 342.7"
"5 ]);"
      CloseFcn		      "sigbuilder_block('close');"
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskInitialization      "tuvar = sigbuilder_block('maskInit');"
      MaskDisplay	      "plot(0,0,100,100,[10,10,40,40,10],[80,20,20,80,"
"80],[40,10],[50,50], [40,27,10],[65,72,56],[40,25,25,10],[28,28,43,43]);"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Signal Builder\n(input and expected output)"
	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		  Demux
	  Name			  "Demux"
	  Tag			  "STV Demux"
	  Ports			  [1, 9]
	  Position		  [150, 42, 160, 618]
	  Outputs		  "9"
	}
	Block {
	  BlockType		  FromWorkspace
	  Name			  "FromWs"
	  Tag			  "STV FromWs"
	  Position		  [30, 300, 115, 350]
	  VariableName		  "tuvar"
	  SampleTime		  "0"
	  OutputAfterFinalValue	  "Holding final value"
	  SigBuilderData	  "DataTag0"
	  VnvData		  "DataTag1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Increment"
	  Tag			  "STV Outport"
	  Position		  [280, 30, 300, 40]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Decrement"
	  Tag			  "STV Outport"
	  Position		  [280, 60, 300, 70]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Set"
	  Tag			  "STV Outport"
	  Position		  [280, 90, 300, 100]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Resume"
	  Tag			  "STV Outport"
	  Position		  [280, 120, 300, 130]
	  Port			  "4"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Power"
	  Tag			  "STV Outport"
	  Position		  [280, 150, 300, 160]
	  Port			  "5"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Brake"
	  Tag			  "STV Outport"
	  Position		  [280, 180, 300, 190]
	  Port			  "6"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Accelerator"
	  Tag			  "STV Outport"
	  Position		  [280, 210, 300, 220]
	  Port			  "7"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Current speed"
	  Tag			  "STV Outport"
	  Position		  [280, 240, 300, 250]
	  Port			  "8"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Expected Target"
	  Tag			  "STV Outport"
	  Position		  [280, 270, 300, 280]
	  Port			  "9"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  9
	  DstBlock		  "Expected Target"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  8
	  DstBlock		  "Current speed"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  7
	  DstBlock		  "Accelerator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  6
	  DstBlock		  "Brake"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  5
	  DstBlock		  "Power"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  4
	  DstBlock		  "Resume"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  DstBlock		  "Set"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  DstBlock		  "Decrement"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  DstBlock		  "Increment"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "FromWs"
	  SrcPort		  1
	  Points		  [15, 0]
	  DstBlock		  "Demux"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Terminator
      Name		      "Terminator"
      Position		      [440, 168, 455, 192]
      ShowName		      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "test equality\n(within 2 samples)"
      Ports		      [2, 1]
      Position		      [525, 181, 655, 234]
      FontName		      "Arial"
      FontSize		      14
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"test equality\n(within 2 samples)"
	Location		[84, 290, 829, 754]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "actual"
	  Position		  [160, 37, 190, 53]
	  FontName		  "Arial"
	  FontSize		  14
	  FontWeight		  "bold"
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "expected"
	  Position		  [75, 177, 110, 193]
	  FontName		  "Arial"
	  FontSize		  14
	  FontWeight		  "bold"
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator"
	  Ports			  [2, 1]
	  Position		  [575, 161, 615, 194]
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  14
	  FontWeight		  "bold"
	}
	Block {
	  BlockType		  MinMax
	  Name			  "MinMax"
	  Ports			  [3, 1]
	  Position		  [112, 245, 368, 265]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  14
	  FontWeight		  "bold"
	  Function		  "min"
	  Inputs		  "3"
	  ZeroCross		  off
	}
	Block {
	  BlockType		  MinMax
	  Name			  "MinMax2"
	  Ports			  [3, 1]
	  Position		  [109, 110, 371, 135]
	  Orientation		  "up"
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  14
	  FontWeight		  "bold"
	  Function		  "max"
	  Inputs		  "3"
	  ZeroCross		  off
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator"
	  Position		  [505, 67, 535, 98]
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  14
	  FontWeight		  "bold"
	  ZeroCross		  off
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator1"
	  Position		  [505, 277, 535, 308]
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  14
	  FontWeight		  "bold"
	  ZeroCross		  off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [440, 65, 460, 85]
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  14
	  FontWeight		  "bold"
	  IconShape		  "round"
	  Inputs		  "|++"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1]
	  Position		  [440, 290, 460, 310]
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  14
	  FontWeight		  "bold"
	  IconShape		  "round"
	  Inputs		  "-+|"
	}
	Block {
	  BlockType		  UnitDelay
	  Name			  "Unit Delay2"
	  Position		  [315, 26, 340, 64]
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  14
	  FontWeight		  "bold"
	  SampleTime		  "0.1"
	}
	Block {
	  BlockType		  UnitDelay
	  Name			  "Unit Delay3"
	  Position		  [190, 166, 215, 204]
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  14
	  FontWeight		  "bold"
	  SampleTime		  "0.1"
	}
	Block {
	  BlockType		  UnitDelay
	  Name			  "Unit Delay4"
	  Position		  [275, 166, 300, 204]
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  14
	  FontWeight		  "bold"
	  SampleTime		  "0.1"
	}
	Block {
	  BlockType		  Constant
	  Name			  "tollerance"
	  Position		  [370, 172, 420, 198]
	  FontName		  "Arial"
	  FontSize		  14
	  FontWeight		  "bold"
	  Value			  "1e-11"
	}
	Block {
	  BlockType		  Outport
	  Name			  "isEqual"
	  Position		  [640, 173, 670, 187]
	  FontName		  "Arial"
	  FontSize		  14
	  FontWeight		  "bold"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Logical\nOperator"
	  SrcPort		  1
	  DstBlock		  "isEqual"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "actual"
	  SrcPort		  1
	  DstBlock		  "Unit Delay2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relational\nOperator1"
	  SrcPort		  1
	  Points		  [10, 0; 0, -110]
	  DstBlock		  "Logical\nOperator"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Relational\nOperator"
	  SrcPort		  1
	  Points		  [10, 0; 0, 85]
	  DstBlock		  "Logical\nOperator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "expected"
	  SrcPort		  1
	  Points		  [-5, 0; 45, 0]
	  Branch {
	    DstBlock		    "Unit Delay3"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 0]
	    Branch {
	      DstBlock		      "MinMax"
	      DstPort		      1
	    }
	    Branch {
	      DstBlock		      "MinMax2"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Unit Delay3"
	  SrcPort		  1
	  Points		  [0, 0; 20, 0]
	  Branch {
	    DstBlock		    "Unit Delay4"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "MinMax"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 0]
	    DstBlock		    "MinMax2"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Unit Delay2"
	  SrcPort		  1
	  Points		  [135, 0; 0, 45]
	  Branch {
	    Points		    [0, 195]
	    DstBlock		    "Relational\nOperator1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Relational\nOperator"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Unit Delay4"
	  SrcPort		  1
	  Points		  [0, 0; 20, 0]
	  Branch {
	    Points		    [0, 0]
	    DstBlock		    "MinMax2"
	    DstPort		    3
	  }
	  Branch {
	    DstBlock		    "MinMax"
	    DstPort		    3
	  }
	}
	Line {
	  SrcBlock		  "MinMax2"
	  SrcPort		  1
	  Points		  [0, -30]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Relational\nOperator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "Relational\nOperator1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "MinMax"
	  SrcPort		  1
	  Points		  [0, 30]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "tollerance"
	  SrcPort		  1
	  Points		  [25, 0]
	  Branch {
	    DstBlock		    "Sum1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Sum"
	    DstPort		    2
	  }
	}
	Annotation {
	  Name			  "Check that the actual value is within the r"
"ange of expected \nvalues from the last two samples and the next sample"
	  Position		  [344, 370]
	  DropShadow		  on
	  FontName		  "Arial"
	  FontSize		  14
	  FontWeight		  "bold"
	}
      }
    }
    Line {
      SrcBlock		      "Signal Builder\n(input and expected output)"
      SrcPort		      1
      DstBlock		      "Controller"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Signal Builder\n(input and expected output)"
      SrcPort		      2
      DstBlock		      "Controller"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Signal Builder\n(input and expected output)"
      SrcPort		      3
      DstBlock		      "Controller"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Signal Builder\n(input and expected output)"
      SrcPort		      4
      DstBlock		      "Controller"
      DstPort		      4
    }
    Line {
      SrcBlock		      "Signal Builder\n(input and expected output)"
      SrcPort		      5
      DstBlock		      "Controller"
      DstPort		      5
    }
    Line {
      SrcBlock		      "Signal Builder\n(input and expected output)"
      SrcPort		      6
      DstBlock		      "Controller"
      DstPort		      6
    }
    Line {
      SrcBlock		      "Signal Builder\n(input and expected output)"
      SrcPort		      7
      DstBlock		      "Controller"
      DstPort		      7
    }
    Line {
      SrcBlock		      "Signal Builder\n(input and expected output)"
      SrcPort		      8
      DstBlock		      "Controller"
      DstPort		      8
    }
    Line {
      SrcBlock		      "Controller"
      SrcPort		      1
      Points		      [0, 0; 55, 0]
      Branch {
	DstBlock		"Actual and Expected \nSpeed Target"
	DstPort			1
      }
      Branch {
	Points			[0, 120]
	DstBlock		"test equality\n(within 2 samples)"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Signal Builder\n(input and expected output)"
      SrcPort		      9
      Points		      [25, 0; 0, 35; 280, 0; 0, -55]
      Branch {
	DstBlock		"test equality\n(within 2 samples)"
	DstPort			2
      }
      Branch {
	Points			[0, -130]
	DstBlock		"Actual and Expected \nSpeed Target"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "test equality\n(within 2 samples)"
      SrcPort		      1
      DstBlock		      "Assertion"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Controller"
      SrcPort		      2
      DstBlock		      "Terminator"
      DstPort		      1
    }
  }
}
MatData {
  NumRecords		  2
  DataRecord {
    Tag			    DataTag1
    Data		    "  %)30     .    N ,   8    (     @         %    "
"\"     $    !     0         %  0 $0    $   #,    =F5R:69Y0FQK4&%T:',   !V97)I"
"9GE\";&M(86YD;&5S '9N=DUG<DED>           86-T:79E1W)O=7        !R97%$:7-P4')C"
";G0      &)L:T1I<W!-;V1E        9W)O=7!#;G0           !G<F]U<%)E<4-N=        "
"&=R;W5P1$]/4E-I9       ;6]D96Q(              !B;&]C:T@              &]V97)I9&"
"53971T:6YG<P        X    P    !@    @    &          4    (               !   "
"       D         #@   #     &    \"     8         !0    @               $    "
"     \"0         .    ,     8    (    !@         %    \"                0    "
"     )          X    P    !@    @    &          4    (               !       "
"   D         #@   #     &    \"     8         !0    @               $        "
" \"0         .    ,     8    (    !@         %    \"                0        "
" )          X    P    !@    @    &          4    (               !          D"
"         #@   #     &    \"     8         !0    @               $         \"0"
"         .    ,     8    (    !@         %    \"                0         )  "
"        X    X    !@    @    &          4    (     0    $    !          D    "
"(         $ &\"$ .    .     8    (    !@         %    \"     $    !     0    "
"     )    \"          H %I #@   #     &    \"     8         !0    @          "
"     $         \"0         "
  }
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    \\%L   8    (     @         %    "
"\"     $    !     0         %  0 #     $   !(    9W)I9%-E='1I;F< 8VAA;FYE;', "
"    87AE<P          8V]M;6]N        9&%T85-E=       9&%T85-E=$ED>   #@   #   "
"  &    \"     0         !0    @    !     P    $         $  # &]F9@ .    F$L  "
" 8    (     @         %    \"     $    )     0         %  0 \"@    $   \"\"  "
"  >$1A=&$      'E$871A      !S=&5P6       <W1E<%D      'E-:6X       !Y36%X   "
"     8V]L;W(      &QI;F53='EL90!L:6YE5VED=&@ ;&%B96P      &]U=$EN9&5X  !A;&Q8"
"1&%T80  86QL641A=&$           X   !0    !@    @    &          4    (     0   "
" 0    !          D    @                       00        !A         )$ .    4 "
"    8    (    !@         %    \"     $    $     0         )    (             "
"                                  #@   #@    &    \"     8         !0    @   "
" !     0    $         \"0    @               X    X    !@    @    &          "
"4    (     0    $    !          D    (               .    ,     8    (    !@ "
"        %    \"                0         )          X    P    !@    @    &   "
"       4    (               !          D         #@   $@    &    \"     8    "
"     !0    @    !     P    $         \"0   !@   \"J\\=)-8A#0/P          JO'23"
"6(0T#\\.    ,     8    (    !          %    \"     $    !     0         0  $ "
"+0    X    X    !@    @    &          4    (     0    $    !          D    ( "
"           ^#\\.    0     8    (    !          %    \"     $    )     0      "
"   0    \"0   $EN8W)E;65N=          .    .     8    (    !@         %    \"  "
"   $    !     0         )    \"            !! #@   #@#   &    \"     $       "
"  !0    @    !    !P    $         #@   %     &    \"     8         !0    @   "
" !    !     $         \"0   \"                       !!         &$         D0"
" X   \"P    !@    @    &          4    (     0   !     !          D   \"     "
"                   00        !! SLS,S,S,%$#.S,S,S,P40 $      !A  0      &$ ! "
"      <0 $      !Q  0      'D !       >0 $      \"!  0      ($ \"       A0 ( "
"     \"%         )$ .    J     8    (    !@         %    \"     $    /     0 "
"        )    >                       $$#.S,S,S,P40,[,S,S,S!1  0      &$ !    "
"   80 $      !Q  0      '$ !       >0 $      !Y  0      ($ !       @0 (      "
"\"%  @      (4         D0 X   !@    !@    @    &          4    (     0    8  "
"  !          D    P                       (0         A         (T         C0 "
"       \"1 #@   $     &    \"     8         !0    @    !     @    $         "
"\"0   !                       \"1 #@   $     &    \"     8         !0    @   "
" !     @    $         \"0   !                       \"1 #@   %     &    \"   "
"  8         !0    @    !    !     $         \"0   \"                       !!"
"         &$         D0 X    X P  !@    @    !          4    (     0    <    !"
"          X   !0    !@    @    &          4    (     0    0    !          D  "
"  @                                               .    L     8    (    !@    "
"     %    \"     $    0     0         )    @                                 "
"                      \\#\\       #P/P                            #P/P       "
"/ _                             / _        \\#\\                     #@   *@ "
"   &    \"     8         !0    @    !    #P    $         \"0   '@            "
"                               #P/P       / _                             / _"
"        \\#\\                             \\#\\       #P/P                   "
"  .    8     8    (    !@         %    \"     $    &     0         )    ,    "
"                             #P/P       / _                      X   !     !@"
"    @    &          4    (     0    (    !          D    0                   "
"       X   !     !@    @    &          4    (     0    (    !          D    0"
"                          X   !0    !@    @    &          4    (     0    0  "
"  !          D    @                                               .    0     "
"8    (    !@         %    \"     $    \"     0         )    $                "
"       )$ .    0     8    (    !@         %    \"     $    \"     0         )"
"    $                          .    .     8    (    !@         %    \"     $ "
"   !     0         )    \"    )J9F9F9F;D_#@   #@    &    \"     8         !0 "
"   @    !     0    $         \"0    @               X    P    !@    @    &   "
"       4    (               !          D         #@   #     &    \"     8    "
"     !0    @               $         \"0         .    2     8    (    !@     "
"    %    \"     $    #     0         )    &    *KQTDUB$- _JO'236(0X#^J\\=)-8A"
"#@/PX    P    !@    @    $          4    (     0    $    !         !   0 M   "
" #@   #@    &    \"     8         !0    @    !     0    $         \"0    @   "
"        #X/PX   !     !@    @    $          4    (     0    D    !         ! "
"    )    1&5C<F5M96YT          X    X    !@    @    &          4    (     0  "
"  $    !          D    (            &$ .    J (   8    (     0         %    "
"\"     $    '     0         .    0     8    (    !@         %    \"     $    "
"\"     0         )    $                       )$ .    0     8    (    !@     "
"    %    \"     $    \"     0         )    $                       )$ .    0 "
"    8    (    !@         %    \"     $    \"     0         )    $            "
"           )$ .    0     8    (    !@         %    \"     $    \"     0      "
"   )    $                       )$ .    J     8    (    !@         %    \"   "
"  $    /     0         )    >                       $$#.S,S,S,P40,[,S,S,S!1  "
"0      &$ !       80 $      !Q  0      '$ !       >0 $      !Y  0      ($ !  "
"     @0 (      \"%  @      (4         D0 X   !@    !@    @    &          4   "
" (     0    8    !          D    P                       (0         A        "
" (T         C0        \"1 #@   $     &    \"     8         !0    @    !     @"
"    $         \"0   !                       \"1 #@   *@\"   &    \"     $    "
"     !0    @    !    !P    $         #@   $     &    \"     8         !0    @"
"    !     @    $         \"0   !                          #@   $     &    \" "
"    8         !0    @    !     @    $         \"0   !                        "
"  #@   $     &    \"     8         !0    @    !     @    $         \"0   !   "
"                       #@   $     &    \"     8         !0    @    !     @   "
" $         \"0   !                          #@   *@    &    \"     8         "
"!0    @    !    #P    $         \"0   '@                                     "
"      #P/P       / _                             / _        \\#\\            "
"                 \\#\\       #P/P                     .    8     8    (    !@"
"         %    \"     $    &     0         )    ,                             "
"    #P/P       / _                      X   !     !@    @    &          4    "
"(     0    (    !          D    0                          X   !0    !@    @ "
"   &          4    (     0    0    !          D    @                       (0"
"         A         )$ .    4     8    (    !@         %    \"     $    $     "
"0         )    (                                 #P/P       / _#@   #@    &  "
"  \"     8         !0    @    !     0    $         \"0    @               X  "
"  X    !@    @    &          4    (     0    $    !          D    (          "
"     .    ,     8    (    !@         %    \"                0         )      "
"    X    P    !@    @    &          4    (               !          D        "
" #@   $@    &    \"     8         !0    @    !     P    $         \"0   !@   "
"        #P/P          JO'236(0X#\\.    ,     8    (    !          %    \"    "
" $    !     0         0  $ +0    X    X    !@    @    &          4    (     0"
"    $    !          D    (            ^#\\.    ,     8    (    !          %  "
"  \"     $    #     0         0  , 4V5T  X    X    !@    @    &          4   "
" (     0    $    !          D    (            ($ .    H (   8    (     0     "
"    %    \"     $    '     0         .    4     8    (    !@         %    \" "
"    $    $     0         )    (                       \"$         (0        "
"\"1 #@   %     &    \"     8         !0    @    !    !     $         \"0   \""
"                        A         \"$         D0 X   !0    !@    @    &      "
"    4    (     0    0    !          D    @                       (0         A"
"         )$ .    4     8    (    !@         %    \"     $    $     0         "
")    (                        $          0        \"1 #@   %     &    \"     "
"8         !0    @    !    !     $         \"0   \"                        A  "
"       \"$         D0 X   !0    !@    @    &          4    (     0    0    ! "
"         D    @                        0         !         )$ .    8     8   "
" (    !@         %    \"     $    &     0         )    ,               7H_\"]"
"2A<[S]>C\\+U*%SO/Q:N1^%Z%!! %JY'X7H4$$         D0 X   \"@ @  !@    @    !    "
"      4    (     0    <    !          X   !0    !@    @    &          4    ( "
"    0    0    !          D    @                                 / _        \\"
"#\\.    4     8    (    !@         %    \"     $    $     0         )    (   "
"                              #P/P       / _#@   %     &    \"     8         "
"!0    @    !    !     $         \"0   \"                                  \\#"
"\\       #P/PX   !0    !@    @    &          4    (     0    0    !          "
"D    @                                 / _        \\#\\.    4     8    (    !"
"@         %    \"     $    $     0         )    (                            "
"     #P/P       / _#@   %     &    \"     8         !0    @    !    !     $  "
"       \"0   \"                                  \\#\\       #P/PX   !@    !@"
"    @    &          4    (     0    8    !          D    P                   "
"              / _        \\#\\                     #@   $     &    \"     8  "
"       !0    @    !     @    $         \"0   !                       \"1 #@  "
" $     &    \"     8         !0    @    !     @    $         \"0   !         "
"                 #@   #@    &    \"     8         !0    @    !     0    $    "
"     \"0    @               X    X    !@    @    &          4    (     0    $"
"    !          D    (               .    ,     8    (    !@         %    \"  "
"              0         )          X    P    !@    @    &          4    (    "
"           !          D         #@   $@    &    \"     8         !0    @    !"
"     P    $         \"0   !@              *KQTDUB$. _JO'236(0T#\\.    ,     8"
"    (    !          %    \"     $    !     0         0  $ +0    X    X    !@ "
"   @    &          4    (     0    $    !          D    (            ^#\\.   "
" .     8    (    !          %    \"     $    &     0         0    !@   %)E<W5"
"M90  #@   #@    &    \"     8         !0    @    !     0    $         \"0    "
"@            <0 X   !  @  !@    @    !          4    (     0    <    !       "
"   X   !     !@    @    &          4    (     0    (    !          D    0    "
"                   D0 X   !0    !@    @    &          4    (     0    0    ! "
"         D    @                       B0        \")         )$ .    0     8  "
"  (    !@         %    \"     $    \"     0         )    $                   "
"    )$ .    0     8    (    !@         %    \"     $    \"     0         )   "
" $                       )$ .    0     8    (    !@         %    \"     $    "
"\"     0         )    $                       )$ .    0     8    (    !@     "
"    %    \"     $    \"     0         )    $                       )$ .    4 "
"    8    (    !@         %    \"     $    $     0         )    (             "
"   0      '$ !       <0        \"1 #@   $ \"   &    \"     $         !0    @ "
"   !    !P    $         #@   $     &    \"     8         !0    @    !     @  "
"  $         \"0   !                          #@   %     &    \"     8        "
" !0    @    !    !     $         \"0   \"                                  \\"
"#\\       #P/PX   !     !@    @    &          4    (     0    (    !         "
" D    0                          X   !     !@    @    &          4    (     0"
"    (    !          D    0                          X   !     !@    @    &   "
"       4    (     0    (    !          D    0                          X   ! "
"    !@    @    &          4    (     0    (    !          D    0             "
"             X   !0    !@    @    &          4    (     0    0    !          "
"D    @                                 / _        \\#\\.    4     8    (    !"
"@         %    \"     $    $     0         )    (                       \\#\\"
"       #P/P       \"1 #@   %     &    \"     8         !0    @    !    !     "
"$         \"0   \"    \":F9F9F9FY/YJ9F9F9F;D_        \\#\\       #P/PX    X  "
"  !@    @    &          4    (     0    $    !          D    (               "
".    .     8    (    !@         %    \"     $    !     0         )    \"     "
"          #@   #     &    \"     8         !0    @               $         \""
"0         .    ,     8    (    !@         %    \"                0         ) "
"         X   !(    !@    @    &          4    (     0    ,    !          D   "
" 8                                 / _#@   #     &    \"     0         !0    "
"@    !     0    $         $  ! \"T    .    .     8    (    !@         %    \""
"     $    !     0         )    \"            /@_#@   #@    &    \"     0     "
"    !0    @    !    !0    $         $     4   !0;W=E<@    X    X    !@    @  "
"  &          4    (     0    $    !          D    (            \"$ .    D (  "
" 8    (     0         %    \"     $    '     0         .    4     8    (    !"
"@         %    \"     $    $     0         )    (                       \\#\\"
"       #P/P       \"1 #@   %     &    \"     8         !0    @    !    !     "
"$         \"0   \"                       / _        \\#\\        D0 X   !0   "
" !@    @    &          4    (     0    0    !          D    @                "
"      #P/P       / _        )$ .    4     8    (    !@         %    \"     $ "
"   $     0         )    (                       \\#\\       #P/P       \"1 #@"
"   %     &    \"     8         !0    @    !    !     $         \"0   \"      "
"                 / _        \\#\\        D0 X   !0    !@    @    &          4"
"    (     0    0    !          D    @                      #P/P       / _    "
"    )$ .    4     8    (    !@         %    \"     $    $     0         )    "
"(               I7 ]\"M>CX#^E<#T*UZ/@/P       \"1 #@   ) \"   &    \"     $  "
"       !0    @    !    !P    $         #@   %     &    \"     8         !0   "
" @    !    !     $         \"0   \"    \":F9F9F9FY/YJ9F9F9F;D_        \\#\\  "
"     #P/PX   !0    !@    @    &          4    (     0    0    !          D   "
" @    FIF9F9F9N3^:F9F9F9FY/P       / _        \\#\\.    4     8    (    !@   "
"      %    \"     $    $     0         )    (    )J9F9F9F;D_FIF9F9F9N3\\     "
"  #P/P       / _#@   %     &    \"     8         !0    @    !    !     $     "
"    \"0   \"    \":F9F9F9FY/YJ9F9F9F;D_        \\#\\       #P/PX   !0    !@  "
"  @    &          4    (     0    0    !          D    @    FIF9F9F9N3^:F9F9F"
"9FY/P       / _        \\#\\.    4     8    (    !@         %    \"     $    "
"$     0         )    (    )J9F9F9F;D_FIF9F9F9N3\\       #P/P       / _#@   % "
"    &    \"     8         !0    @    !    !     $         \"0   \"    \":F9F9"
"F9FY/YJ9F9F9F;D_        \\#\\       #P/PX   !     !@    @    &          4    "
"(     0    (    !          D    0                       D0 X   !     !@    @ "
"   &          4    (     0    (    !          D    0                         "
" X    X    !@    @    &          4    (     0    $    !          D    (      "
"         .    .     8    (    !@         %    \"     $    !     0         )  "
"  \"               #@   #     &    \"     8         !0    @               $  "
"       \"0         .    ,     8    (    !@         %    \"                0  "
"       )          X   !(    !@    @    &          4    (     0    ,    !     "
"     D    8    V(%S1I3VYC\\          -B!<T:4]N8_#@   #     &    \"     0     "
"    !0    @    !     0    $         $  ! \"T    .    .     8    (    !@      "
"   %    \"     $    !     0         )    \"            /@_#@   #@    &    \" "
"    0         !0    @    !    !0    $         $     4   !\"<F%K90    X    X  "
"  !@    @    &          4    (     0    $    !          D    (             $ "
".    8 (   8    (     0         %    \"     $    '     0         .    0     8"
"    (    !@         %    \"     $    \"     0         )    $                 "
"      )$ .    0     8    (    !@         %    \"     $    \"     0         ) "
"   $                       )$ .    0     8    (    !@         %    \"     $  "
"  \"     0         )    $                       )$ .    0     8    (    !@   "
"      %    \"     $    \"     0         )    $                       )$ .    "
"0     8    (    !@         %    \"     $    \"     0         )    $          "
"             )$ .    0     8    (    !@         %    \"     $    \"     0    "
"     )    $                       )$ .    @     8    (    !@         %    \" "
"    $    *     0         )    4                       \"$         (0         "
"Q         #$ !       40 $      !1  P      %D #       60        \"1 #@   & \" "
"  &    \"     $         !0    @    !    !P    $         #@   $     &    \"   "
"  8         !0    @    !     @    $         \"0   !                          "
"#@   $     &    \"     8         !0    @    !     @    $         \"0   !     "
"                     #@   $     &    \"     8         !0    @    !     @    $"
"         \"0   !                          #@   $     &    \"     8         !0"
"    @    !     @    $         \"0   !                          #@   $     &  "
"  \"     8         !0    @    !     @    $         \"0   !                   "
"       #@   $     &    \"     8         !0    @    !     @    $         \"0  "
" !                          #@   (     &    \"     8         !0    @    !    "
"\"@    $         \"0   %                          9V9F9F9FYC]G9F9F9F;F/P     "
"               !H9F9F9F;F/VAF9F9F9N8_                      X   !     !@    @ "
"   &          4    (     0    (    !          D    0                       D0"
" X   !     !@    @    &          4    (     0    (    !          D    0      "
"                    X    X    !@    @    &          4    (     0    $    !   "
"       D    (               .    .     8    (    !@         %    \"     $    "
"!     0         )    \"               #@   #     &    \"     8         !0    "
"@               $         \"0         .    ,     8    (    !@         %    \""
"                0         )          X   !(    !@    @    &          4    (  "
"   0    ,    !          D    8               0$! 0$!#0/P          #@   #     "
"&    \"     0         !0    @    !     0    $         $  ! \"T    .    .     "
"8    (    !@         %    \"     $    !     0         )    \"            /@_#"
"@   $     &    \"     0         !0    @    !    \"P    $         $     L   !!"
"8V-E;&5R871O<@      #@   #@    &    \"     8         !0    @    !     0    $ "
"        \"0    @           #P/PX    @ @  !@    @    !          4    (     0  "
"  <    !          X   !     !@    @    &          4    (     0    (    !     "
"     D    0                       D0 X   !     !@    @    &          4    (  "
"   0    (    !          D    0                       D0 X   !     !@    @    "
"&          4    (     0    (    !          D    0                       D0 X "
"  !     !@    @    &          4    (     0    (    !          D    0         "
"              D0 X   !     !@    @    &          4    (     0    (    !      "
"    D    0                       D0 X   !     !@    @    &          4    (   "
"  0    (    !          D    0                       D0 X   !     !@    @    &"
"          4    (     0    (    !          D    0                       D0 X  "
"  @ @  !@    @    !          4    (     0    <    !          X   !     !@    "
"@    &          4    (     0    (    !          D    0                       "
"   X   !     !@    @    &          4    (     0    (    !          D    0    "
"                      X   !     !@    @    &          4    (     0    (    ! "
"         D    0                          X   !     !@    @    &          4   "
" (     0    (    !          D    0                          X   !     !@    @"
"    &          4    (     0    (    !          D    0                        "
"  X   !     !@    @    &          4    (     0    (    !          D    0     "
"                     X   !     !@    @    &          4    (     0    (    !  "
"        D    0                          X   !     !@    @    &          4    "
"(     0    (    !          D    0                       D0 X   !     !@    @ "
"   &          4    (     0    (    !          D    0            /D         ^0"
" X    X    !@    @    &          4    (     0    $    !          D    (      "
"         .    .     8    (    !@         %    \"     $    !     0         )  "
"  \"               #@   #     &    \"     8         !0    @               $  "
"       \"0         .    ,     8    (    !@         %    \"                0  "
"       )          X   !(    !@    @    &          4    (     0    ,    !     "
"     D    8    $! 0$! 0X#\\0$! 0$!#@/P          #@   #     &    \"     0     "
"    !0    @    !     0    $         $  ! \"T    .    .     8    (    !@      "
"   %    \"     $    !     0         )    \"            /@_#@   $     &    \" "
"    0         !0    @    !    #0    $         $     T   !#=7)R96YT('-P965D   "
" #@   #@    &    \"     8         !0    @    !     0    $         \"0    @   "
"         40 X    @ @  !@    @    !          4    (     0    <    !          X"
"   !     !@    @    &          4    (     0    (    !          D    0        "
"               D0 X   !     !@    @    &          4    (     0    (    !     "
"     D    0                       D0 X   !     !@    @    &          4    (  "
"   0    (    !          D    0                       D0 X   !     !@    @    "
"&          4    (     0    (    !          D    0                       D0 X "
"  !     !@    @    &          4    (     0    (    !          D    0         "
"              D0 X   !     !@    @    &          4    (     0    (    !      "
"    D    0                       D0 X   !     !@    @    &          4    (   "
"  0    (    !          D    0                       D0 X    @ @  !@    @    !"
"          4    (     0    <    !          X   !     !@    @    &          4  "
"  (     0    (    !          D    0            /D         ^0 X   !     !@    "
"@    &          4    (     0    (    !          D    0            /D         "
"^0 X   !     !@    @    &          4    (     0    (    !          D    0    "
"        /D         ^0 X   !     !@    @    &          4    (     0    (    ! "
"         D    0            /D         ^0 X   !     !@    @    &          4   "
" (     0    (    !          D    0            /D         ^0 X   !     !@    @"
"    &          4    (     0    (    !          D    0            /D         ^"
"0 X   !     !@    @    &          4    (     0    (    !          D    0     "
"       /D         ^0 X   !0    !@    @    &          4    (     0    0    !  "
"        D    @               !       (0 $       A         )$ .    4     8    "
"(    !@         %    \"     $    $     0         )    (                      "
"            ^0        #Y #@   #@    &    \"     8         !0    @    !     0 "
"   $         \"0    @   \":F9F9F9FY/PX    X    !@    @    &          4    (  "
"   0    $    !          D    (            X#\\.    ,     8    (    !@        "
" %    \"                0         )          X    P    !@    @    &          "
"4    (               !          D         #@   $@    &    \"     8         !0"
"    @    !     P    $         \"0   !@    0$! 0$!#@/P                     .  "
"  ,     8    (    !          %    \"     $    !     0         0  $ +0    X   "
" X    !@    @    &          4    (     0    $    !          D    (           "
" ^#\\.    0     8    (    !          %    \"     $    /     0         0    #P"
"   $5X<&5C=&5D(%1A<F=E=  .    .     8    (    !@         %    \"     $    !  "
"   0         )    \"            \") #@   & $   &    \"     $         !0    @ "
"   !    !P    $         #@   %     &    \"     8         !0    @    !    !   "
"  $         \"0   \"                $       A  0      \"$         D0 X   \"0 "
"   !@    @    &          4    (     0    P    !          D   !@              "
" !       (0 $       A S<S,S,S,%$#-S,S,S,P40        !Q         '$         @0  "
"      \"!         (D         B0        \"1 #@   (@    &    \"     8         !"
"0    @    !    \"P    $         \"0   %@               $       A  0      \"$#"
"-S,S,S,P40,W,S,S,S!1         '$         <0        \"!         ($         B0  "
"      \"1 #@   ,     &    \"     8         !0    @    !    $@    $         \""
"0   )                        !          $         (0         A  0      $$ !  "
"     00 $      !1  0      %$ !       80 $      !A  @      '$ \"       <0     "
"   \"!         ($         B0        \")         )$ .    B     8    (    !@   "
"      %    \"     $    +     0         )    6                0      \"$ !    "
"   (0,W,S,S,S!1 S<S,S,S,%$         <0        !Q         ($         @0        "
"\")         )$ .    P     8    (    !@         %    \"     $    2     0      "
"   )    D                        $          0         A         \"$         0"
"0        !!         %$         40        !A         &$         <0        !Q  "
"       ($         @0        \")         (D         D0 X   \"0    !@    @    &"
"          4    (     0    P    !          D   !@               !      #P/P$  "
"    / _ 0      \"$ !       (0 $      !!  0      $$ !       40 $      !1  0   "
"   '$ !       <0        \"1 #@   & $   &    \"     $         !0    @    !    "
"!P    $         #@   %     &    \"     8         !0    @    !    !     $     "
"    \"0   \"                                  /D         ^0 X   \"0    !@    "
"@    &          4    (     0    P    !          D   !@                       "
"          #Y         /D         _0        #]         0$        ! 0       @$! "
"      \" 0$         ^0        #Y #@   (@    &    \"     8         !0    @    "
"!    \"P    $         \"0   %@                                 /D         ^0 "
"       #]         /T        ! 0        $!       \" 0$       (! 0       @$! #@"
"   ,     &    \"     8         !0    @    !    $@    $         \"0   )       "
"                           /D         ^0/_______SY ________/D        ! 0     "
"   $!       \" 0$       (! 0        $%         04       (!!0       @$%       "
"  0D        !\"0       @$)       \" 0D .    B     8    (    !@         %    "
"\"     $    +     0         )    6                                  ^0       "
" #Y         /4         ]0        #Q         /$         [0        #M         ."
"T .    P     8    (    !@         %    \"     $    2     0         )    D    "
"                              ^0        #Y         /4         ]0        #Q   "
"      /$         [0        #M         .D         Z0        #E         .4     "
"    X0        #A         -T         W0 X   \"0    !@    @    &          4    "
"(     0    P    !          D   !@                                 #Y         "
"/D          @                   /D         ^0         \"                    ^"
"0        #Y #@   ' %   &    \"     (         !0    @    !    !     $         "
"!0 $  L    !    -P   &-H86YN96QS    >4QI;0        !L86)E;%!O<P   &QA8F5L2    "
"   ;&%B96Q0871C:   #@   #@    &    \"     8         !0    @    !     0    $  "
"       \"0    @            B0 X   !     !@    @    &          4    (     0   "
" (    !          D    0            %,       (!!0 X    P    !@    @    $      "
"    4    (     0    (    !         !   @!43   #@   #@    &    \"     8       "
"  !0    @    !     0    $         \"0    @         \"-!Z0 X    X    !@    @  "
"  &          4    (     0    $    !          D    (          C >D .    .     "
"8    (    !@         %    \"     $    !     0         )    \"            \"! "
"#@   $     &    \"     8         !0    @    !     @    $         \"0   !     "
"        ]0        #] #@   #     &    \"     0         !0    @    !     @    $"
"         $  \" %1,   .    .     8    (    !@         %    \"     $    !     0"
"         )    \"          ($'M #@   #@    &    \"     8         !0    @    ! "
"    0    $         \"0    @         \" ![0 X    X    !@    @    &          4 "
"   (     0    $    !          D    (            %$ .    0     8    (    !@   "
"      %    \"     $    \"     0         )    $               FIF9F9F9\\3\\.  "
"  ,     8    (    !          %    \"     $    \"     0         0  ( 5$P   X  "
"  X    !@    @    &          4    (     0    $    !          D    (          "
"A0>T .    .     8    (    !@         %    \"     $    !     0         )    \""
"          (0'M #@   #@    &    \"     8         !0    @    !     0    $      "
"   \"0    @            (0 X   !     !@    @    &          4    (     0    (  "
"  !          D    0    FIF9F9F9N;^:F9F9F9GQ/PX    P    !@    @    $          "
"4    (     0    (    !         !   @!43   #@   #@    &    \"     8         !0"
"    @    !     0    $         \"0    @         \")![0 X    X    !@    @    & "
"         4    (     0    $    !          D    (          B >T .    ( (   8   "
" (     @         %    \"     $    !     0         %  0 #@    $   !4    9&ES<%"
"1I;64       !D:7-P36]D90       &UI;E1I;64         ;6%X5&EM90        !A9G1E<D9"
"I;F%L4W1R '-A;7!L951I;64           X   !     !@    @    &          4    (    "
" 0    (    !          D    0                       D0 X    X    !@    @    & "
"         4    (     0    $    !          D    (            \\#\\.    .     8 "
"   (    !@         %    \"     $    !     0         )    \"               #@ "
"  #@    &    \"     8         !0    @    !     0    $         \"0    @       "
"     D0 X   !     !@    @    $          4    (     0   !     !         !     "
"0    2&]L9\"!F:6YA;\"!V86QU90X    X    !@    @    &          4    (     0    "
"$    !          D    (               .    L <   8    (     @         %    \" "
"    $    '     0         %  0 #@    $    X    86-T:79E1&ES<$ED> !T:6UE4F%N9V4"
"      &YA;64             9&ES<&QA>5)A;F=E   .    4     8    (    !@         %"
"    \"     $    $     0         )    (            \")         ($         40  "
"       A #@   $     &    \"     8         !0    @    !     @    $         \"0"
"   !                       \"1 #@   %     &    \"     0         !0    @    ! "
"   &P    $         $    !L   !297%S+B Q+#(L.\" H<&]W97(@86YD('-E=\"D       X "
"  !     !@    @    &          4    (     0    (    !          D    0         "
"              D0 X   !@    !@    @    &          4    (     0    8    !      "
"    D    P            (D         @0        !1         $$         (0        / "
"_#@   $     &    \"     8         !0    @    !     @    $         \"0   !    "
"                   \"1 #@   $     &    \"     0         !0    @    !    #P   "
" $         $     \\   !297$N(#,@*')E<W5M92D #@         .    6     8    (    !"
"@         %    \"     $    %     0         )    *            \")         ($  "
"       40         A         \\#\\.    0     8    (    !@         %    \"     "
"$    \"     0         )    $                       )$ .    2     8    (    ! "
"         %    \"     $    2     0         0    $@   %)E<2X@-\" H<')E<W,@:6YC*"
"0        X         #@   $@    &    \"     8         !0    @    !     P    $  "
"       \"0   !@            B0        \"!         \\#\\.    0     8    (    !@"
"         %    \"     $    \"     0         )    $                       )$ . "
"   2     8    (    !          %    \"     $    1     0         0    $0   %)E<"
"2X@-2 H:&]L9\"!I;F,I          X         #@   %@    &    \"     8         !0  "
"  @    !    !0    $         \"0   \"@            B0        \"!         %$    "
"     (0         ! #@   $     &    \"     8         !0    @    !     @    $   "
"      \"0   !                       \"1 #@   $@    &    \"     0         !0  "
"  @    !    $@    $         $    !(   !297$N(#8@*'!R97-S(&1E8RD        .     "
"     X   !8    !@    @    &          4    (     0    4    !          D    H  "
"          (D         @0        !1         \"$          0 X   !     !@    @   "
" &          4    (     0    (    !          D    0                       D0 X"
"   !(    !@    @    $          4    (     0   !$    !         !     1    4F5Q"
"+B W(\"AH;VQD(&1E8RD         #@         .    8     8    (    !@         %    "
"\"     $    &     0         )    ,            \")         ($         80      "
"  !1         $$         (0 X   !     !@    @    &          4    (     0    ( "
"   !          D    0                       D0 X   !0    !@    @    $         "
" 4    (     0   !D    !         !     9    4F5Q<RXY+#$P(\"AB<F%K92P@<F5S=6UE*"
"0         .          X    X    !@    @    &          4    (     0    $    !  "
"        D    (            \\#\\"
  }
}

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

Stateflow {

	machine {
		id                   		1
		name                 		"sf_cruise_control_test"
		created              		"17-Apr-2001 17:52:53"
		isLibrary            		0
		firstTarget          		49
		debug {
			breakOn              		[1 0 0]
		}
		sfVersion            		62014000
		sfDemoChecksum       		[2819252852 3034913971 3795756739 3487455962]
	}

	chart {
		id                                        		2
		name                                      		"Controller/Enable / Setpoint calculation"
		windowPosition                            		[244.5 201 512.25 428.25]
		viewLimits                                		[4.632 562.764 6.271 473.316]
		zoomFactor                                		1.191
		transitionColor                           		[0 0 0]
		transitionLabelColor                      		[0 0 0]
		junctionColor                             		[0 0 0]
		screen                                    		[1 1 1280 1024 1.333333333333333]
		treeNode                                  		[0 3 0 0]
		viewObj                                   		2
		machine                                   		1
		subviewS {
			zoomFactor		1.227
		}
		decomposition                             		SET_CHART
		firstEvent                                		34
		firstData                                 		41
		chartFileNumber                           		2
	}

	state {
		id                  		3
		labelString         		"Set_Point_Calculation"
		position            		[18.585 17.955 530.226 235.583]
		fontSize            		14
		chart               		2
		treeNode            		[2 7 0 4]
		firstTransition     		16
		superState          		GROUPED
		subviewer           		2
		type                		AND_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		4
		labelString         		"Enable_logic"
		position            		[19.076 281.983 524.166 179.649]
		fontSize            		14
		chart               		2
		treeNode            		[2 9 3 0]
		firstTransition     		30
		superState          		GROUPED
		subviewer           		2
		type                		AND_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		5
		labelString         		"Hold"
		position            		[236.342 78.993 72.708 122.593]
		fontSize            		14
		arrowSize           		7.998
		chart               		2
		treeNode            		[3 0 6 0]
		firstTransition     		26
		firstJunction       		14
		superState          		SUBCHART
		isGrouped           		1
		subviewer           		2
		subviewS {
			x1        		-13.684
			y1        		-18.21
			zoomFactor		1.214
			pos       		[0 0 519.988 220.38]
			fontSize  		13.286
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		6
		labelString         		"Increment\n"
						"en: target_speed++;"
		position            		[34.355 77.481 131.245 126.206]
		fontSize            		14
		arrowSize           		7.998
		chart               		2
		treeNode            		[3 0 7 5]
		firstTransition     		23
		superState          		GROUPED
		isGrouped           		1
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		7
		labelString         		"Decrement\n"
						"en: target_speed--;"
		position            		[380.633 76.962 140.042 127.537]
		fontSize            		14
		arrowSize           		7.998
		chart               		2
		treeNode            		[3 0 0 6]
		firstTransition     		24
		superState          		GROUPED
		isGrouped           		1
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		8
		labelString         		"Off"
		position            		[32.416 349.037 43.204 90.736]
		fontSize            		14
		chart               		2
		treeNode            		[4 0 9 0]
		superState          		GROUPED
		isGrouped           		1
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		9
		labelString         		"on"
		position            		[137.255 303.509 361.277 146.097]
		fontSize            		14
		chart               		2
		treeNode            		[4 11 0 8]
		firstTransition     		20
		superState          		GROUPED
		isGrouped           		1
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		10
		labelString         		"active_control"
		position            		[332.0876 396.4536 136.6733 42.5495]
		fontSize            		14
		chart               		2
		treeNode            		[9 0 12 0]
		isGrouped           		1
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
		outputData          		44
	}

	state {
		id                  		11
		labelString         		"overide\n"
						"target_speed = 0;"
		position            		[326.8701 315.233 143.6455 50.344]
		fontSize            		14
		chart               		2
		treeNode            		[9 0 0 12]
		isGrouped           		1
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		12
		labelString         		"no_target"
		position            		[161.819 393.603 90.015 32.277]
		fontSize            		14
		chart               		2
		treeNode            		[9 0 11 10]
		isGrouped           		1
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	junction {
		id         		13
		position   		[128.75 147 7]
		chart      		2
		linkNode   		[5 14 15]
		visible    		0
		subviewer  		5
		quantum    		[25 0 0 0]
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		14
		position   		[362.875 72.375 7]
		chart      		2
		linkNode   		[5 0 13]
		visible    		0
		subviewer  		5
		quantum    		[26 0 0 0]
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		15
		position   		[363 158.25 7]
		chart      		2
		linkNode   		[5 13 0]
		visible    		0
		subviewer  		5
		type       		CONNECTIVE_JUNCTION
	}

	transition {
		id             		16
		labelPosition  		[271.167 62.579 9.807 17.86]
		fontSize       		14
		arrowSize      		7.998
		src {
			intersection		[0 0 1 0 271.167 53.6729 0 0]
		}
		dst {
			id          		5
			intersection		[1 0 -1 0.479 271.167 78.9929 0 0]
		}
		midPoint       		[271.167 62.6237]
		chart          		2
		linkNode       		[3 0 22]
		isGrouped      		1
		dataLimits     		[268.768 273.566 53.673 78.993]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		17
		labelString    		"Set"
		labelPosition  		[280.47 416.036 23.181 17.86]
		fontSize       		14
		src {
			id          		12
			intersection		[2 1 0 0.5784 251.834 412.272 0 2.5305]
		}
		dst {
			id          		10
			intersection		[4 -1 0 0.6282 332.0876 412.272 0 -2.5305]
		}
		midPoint       		[289.4448 412.272]
		chart          		2
		linkNode       		[9 31 0]
		isGrouped      		1
		dataLimits     		[251.834 332.088 409.872 414.672]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		18
		labelString    		"INC_BD\n"
						"[in(active_control)]"
		labelPosition  		[179.511 199.381 114.123 33.934]
		fontSize       		14
		arrowSize      		7.998
		src {
			id          		5
			intersection		[4 -1 0 0.1481 236.342 183.43 0 -43.1388]
		}
		dst {
			id          		6
			intersection		[2 1 0 0.8395 165.6 183.43 0 43.1388]
		}
		midPoint       		[203.6933 183.4299]
		chart          		2
		linkNode       		[3 33 0]
		isGrouped      		1
		dataLimits     		[165.6 236.342 181.031 185.829]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		2
	}

	transition {
		id             		19
		labelString    		"[!pwr]"
		labelPosition  		[90.68 342.004 35.663 17.86]
		fontSize       		14
		src {
			id          		9
			intersection		[4 -1 0 0.5662 137.255 366.8848 0 0]
		}
		dst {
			id          		8
			intersection		[2 1 0 0.1967 75.62 366.8848 0 0]
		}
		midPoint       		[109.3584 366.8862]
		chart          		2
		linkNode       		[4 30 29]
		isGrouped      		1
		dataLimits     		[75.62 137.255 364.485 369.285]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		20
		labelPosition  		[181.757 375.868 9.807 17.86]
		fontSize       		14
		src {
			intersection		[0 0 1 0 181.7573 363.6027 0 0]
		}
		dst {
			id          		12
			intersection		[1 0 -1 0.2215 181.7573 393.603 0 0]
		}
		midPoint       		[181.7573 374.9943]
		chart          		2
		linkNode       		[9 0 32]
		isGrouped      		1
		dataLimits     		[179.357 184.157 363.603 393.603]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		21
		labelString    		"INC_BU"
		labelPosition  		[178.631 89.91 52.604 17.86]
		fontSize       		14
		arrowSize      		7.998
		src {
			id          		6
			intersection		[2 1 0 0.2999 165.6 115.3296 0 -24.9597]
		}
		dst {
			id          		5
			intersection		[4 -1 0 0.7036 236.342 115.3296 0 24.9597]
		}
		midPoint       		[198.2498 115.3295]
		chart          		2
		linkNode       		[3 22 33]
		isGrouped      		1
		dataLimits     		[165.6 236.342 112.93 117.729]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		22
		labelString    		"DEC_BU"
		labelPosition  		[322.539 95.509 60.628 17.86]
		fontSize       		14
		arrowSize      		7.998
		src {
			id          		7
			intersection		[4 -1 0 0.7136 380.633 113.4907 0 26.8003]
		}
		dst {
			id          		5
			intersection		[2 1 0 0.2814 309.05 113.4907 0 -26.8003]
		}
		midPoint       		[347.5452 113.4906]
		chart          		2
		linkNode       		[3 16 21]
		isGrouped      		1
		dataLimits     		[309.05 380.633 111.091 115.89]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		23
		labelString    		"every(10,Update)\n"
						"{target_speed++;}"
		labelPosition  		[44.841 144.223 113.231 33.934]
		fontSize       		14
		arrowSize      		7.998
		src {
			id          		6
			intersection		[3 0 -1 0.1501 145.9008 203.687 0 0]
		}
		dst {
			id          		6
			intersection		[3 0 -1 0.6843 75.7895 203.687 0 0]
		}
		midPoint       		[108.5604 181.6794]
		chart          		2
		linkNode       		[6 0 0]
		isGrouped      		1
		dataLimits     		[73.39 145.901 181.616 203.687]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		24
		labelString    		"every(10,Update)\n"
						"{target_speed--;}"
		labelPosition  		[402.531 145.849 108.773 33.934]
		fontSize       		14
		arrowSize      		7.998
		src {
			id          		7
			intersection		[3 0 -1 0.2112 491.0981 204.499 0 0]
		}
		dst {
			id          		7
			intersection		[3 0 -1 0.6911 423.892 204.499 0 0]
		}
		midPoint       		[455.3049 183.2852]
		chart          		2
		linkNode       		[7 0 0]
		isGrouped      		1
		dataLimits     		[421.493 491.098 183.219 204.499]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		25
		labelString    		"Set [pwr]\n"
						"{\n"
						"target_speed = curr_speed;\n"
						"set_speed = curr_speed;\n"
						"}"
		labelPosition  		[143.125 28.894 120.51 61.335]
		fontSize       		12
		src {
			id          		5
			intersection		[1 0 1 0.2476 128.75 0 0 0]
		}
		dst {
			id          		13
			intersection		[0 0 -1 -1 128.75 140 0 0]
		}
		midPoint       		[128.75 68.7828]
		chart          		2
		linkNode       		[5 26 27]
		visible        		0
		dataLimits     		[126.35 131.15 0 140]
		stampAngle     		1.5708
		subviewer      		5
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		26
		labelString    		"Resume [pwr]"
		labelPosition  		[374.125 22.539 61.378 13.464]
		fontSize       		12
		src {
			id          		5
			intersection		[1 0 1 0.6979 362.875 0 0 0]
		}
		dst {
			id          		14
			intersection		[0 0 -1 -1 362.875 65.375 0 0]
		}
		midPoint       		[362.875 29.848]
		chart          		2
		linkNode       		[5 0 25]
		visible        		0
		dataLimits     		[360.475 365.275 0 65.375]
		stampAngle     		4.59
		subviewer      		5
		drawStyle      		SMART
		executionOrder 		2
	}

	transition {
		id             		27
		labelPosition  		[341.062 119.623 6.737 13.464]
		fontSize       		12
		src {
			id          		14
			intersection		[0 -0.6037 0.7972 -1 358.6489 77.9553 0 0]
		}
		dst {
			id          		15
			intersection		[0 -0.606 -0.7954 -1 358.7577 152.682 0 0]
		}
		midPoint       		[340.7184 115.1565]
		chart          		2
		linkNode       		[5 25 28]
		visible        		0
		dataLimits     		[340.754 358.758 77.955 152.682]
		stampAngle     		0.6496
		subviewer      		5
		drawStyle      		SMART
		executionOrder 		2
	}

	transition {
		id             		28
		labelString    		"[set_speed > 0]\n"
						"\n"
						"{target_speed = ...\n"
						"set_speed;}"
		labelPosition  		[393 79.5 81.587 49.367]
		fontSize       		12
		src {
			id          		14
			intersection		[0 0.5208 0.8537 -1 366.5205 78.3508 0 0]
		}
		dst {
			id          		15
			intersection		[0 0.5183 -0.8552 -1 366.6281 152.2636 0 0]
		}
		midPoint       		[381.635 115.2041]
		chart          		2
		linkNode       		[5 27 0]
		visible        		0
		dataLimits     		[366.521 381.615 78.351 152.264]
		stampAngle     		-0.5463
		subviewer      		5
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		29
		labelString    		"[pwr]"
		labelPosition  		[95.384 417.541 31.205 17.86]
		fontSize       		14
		src {
			id          		8
			intersection		[2 1 0 0.6878 75.62 411.4452 0 38.6559]
		}
		dst {
			id          		9
			intersection		[4 -1 0 0.2612 137.255 411.4452 0 -40.7365]
		}
		midPoint       		[103.5168 411.4453]
		chart          		2
		linkNode       		[4 19 0]
		isGrouped      		1
		dataLimits     		[75.62 137.255 409.045 413.845]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		30
		labelPosition  		[56.791 331.559 9.807 17.86]
		fontSize       		14
		src {
			intersection		[0 0 1 0 56.792 319.0373 0 0]
		}
		dst {
			id          		8
			intersection		[1 0 -1 0.5642 56.792 349.0373 0 0]
		}
		midPoint       		[56.792 330.4287]
		chart          		2
		linkNode       		[4 0 19]
		isGrouped      		1
		dataLimits     		[54.392 59.192 319.037 349.037]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		31
		labelString    		"[brake]"
		labelPosition  		[445.496 370.008 44.579 17.86]
		fontSize       		14
		src {
			id          		10
			intersection		[1 0 -1 0.6776 424.6958 396.4536 0 21.4015]
		}
		dst {
			id          		11
			intersection		[3 0 1 0.319 424.6958 365.577 0 -21.4015]
		}
		midPoint       		[424.6958 384.6048]
		chart          		2
		linkNode       		[9 32 17]
		isGrouped      		1
		dataLimits     		[422.296 427.096 365.577 396.454]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		32
		labelString    		"Set | Resume"
		labelPosition  		[275.206 372.736 84.701 17.86]
		fontSize       		14
		src {
			id          		11
			intersection		[3 0 1 0.7002 369.9405 365.577 0 23.1217]
		}
		dst {
			id          		10
			intersection		[1 0 -1 0.277 369.9405 396.4536 0 -23.1217]
		}
		midPoint       		[369.9405 377.4258]
		chart          		2
		linkNode       		[9 20 31]
		isGrouped      		1
		dataLimits     		[367.541 372.34 365.577 396.454]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		33
		labelString    		"DEC_BD\n"
						"[in(active_control)]"
		labelPosition  		[320.076 196.309 114.123 33.934]
		fontSize       		14
		arrowSize      		7.998
		src {
			id          		5
			intersection		[2 1 0 0.8427 309.05 182.3021 0 45.8995]
		}
		dst {
			id          		7
			intersection		[4 -1 0 0.174 380.633 182.3021 0 -42.0155]
		}
		midPoint       		[342.1383 182.302]
		chart          		2
		linkNode       		[3 21 18]
		isGrouped      		1
		dataLimits     		[309.05 380.633 179.903 184.702]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	event {
		id         		34
		name       		"Update"
		linkNode   		[2 0 35]
		scope      		INPUT_EVENT
		trigger    		RISING_EDGE_EVENT
		machine    		1
	}

	event {
		id         		35
		name       		"INC_BD"
		linkNode   		[2 34 36]
		scope      		INPUT_EVENT
		trigger    		RISING_EDGE_EVENT
		machine    		1
		debug      		[1 0]
	}

	event {
		id         		36
		name       		"INC_BU"
		linkNode   		[2 35 37]
		scope      		INPUT_EVENT
		trigger    		FALLING_EDGE_EVENT
		machine    		1
	}

	event {
		id         		37
		name       		"DEC_BD"
		linkNode   		[2 36 38]
		scope      		INPUT_EVENT
		trigger    		RISING_EDGE_EVENT
		machine    		1
	}

	event {
		id         		38
		name       		"DEC_BU"
		linkNode   		[2 37 39]
		scope      		INPUT_EVENT
		trigger    		FALLING_EDGE_EVENT
		machine    		1
	}

	event {
		id         		39
		name       		"Set"
		linkNode   		[2 38 40]
		scope      		INPUT_EVENT
		trigger    		EITHER_EDGE_EVENT
		machine    		1
	}

	event {
		id         		40
		name       		"Resume"
		linkNode   		[2 39 0]
		scope      		INPUT_EVENT
		trigger    		EITHER_EDGE_EVENT
		machine    		1
	}

	data {
		id                            		41
		name                          		"pwr"
		linkNode                      		[2 0 42]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"boolean"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_UINT8_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		42
		name                          		"brake"
		linkNode                      		[2 41 43]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"boolean"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_UINT8_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		43
		name                          		"accl_pedal"
		linkNode                      		[2 42 44]
		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                            		44
		name                          		"active_control"
		linkNode                      		[2 43 45]
		scope                         		OUTPUT_DATA
		outputState                   		10
		machine                       		1
		dataType                      		"State"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_UINT8_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		45
		name                          		"target_speed"
		linkNode                      		[2 44 46]
		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                            		46
		name                          		"set_speed"
		linkNode                      		[2 45 47]
		scope                         		LOCAL_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                            		47
		name                          		"curr_speed"
		linkNode                      		[2 46 0]
		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		""
			}
		}
	}

	instance {
		id     		48
		name   		"Controller/Enable // Setpoint calculation"
		machine		1
		chart  		2
	}

	target {
		id                        		49
		name                      		"sfun"
		description               		"Default Simulink S-Function Target."
		codeFlags                 		" debug=1 overflow=1 echo=1"
		machine                   		1
		linkNode                  		[1 0 0]
	}
}
