Model {
  Name			  "sf_car"
  Version		  6.2
  MdlSubVersion		  0
  GraphicalInterface {
    NumRootInports	    0
    NumRootOutports	    0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.70"
    NumModelReferences	    0
    NumTestPointedSignals   0
  }
  SavedCharacterEncoding  "US-ASCII"
  PreLoadFcn		  "load sf_cardat"
  SaveDefaultBlockParams  on
  SampleTimeColors	  on
  LibraryLinkDisplay	  "none"
  WideLines		  on
  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  on
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  on
  Created		  "Tue Jun 02 16:12:01 1998"
  Creator		  "The MathWorks Inc."
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "batserve"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Sat Jan 22 19:11:52 2005"
  ModelVersionFormat	  "1.%<AutoIncrement:70>"
  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	  "oneshot"
  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	  off
  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		  "30"
	  AbsTol		  "1e-6"
	  FixedStep		  "auto"
	  InitialStep		  "auto"
	  MaxNumMinSteps	  "-1"
	  MaxOrder		  5
	  ExtrapolationOrder	  4
	  NumberNewtonIterations  1
	  MaxStep		  "auto"
	  MinStep		  "auto"
	  RelTol		  "1e-3"
	  SolverMode		  "SingleTasking"
	  Solver		  "ode5"
	  SolverName		  "ode5"
	  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	  off
	  MaxDataPoints		  "1000"
	  LoadExternalInput	  off
	  LoadInitialState	  off
	  SaveFinalState	  off
	  SaveFormat		  "Array"
	  SaveOutput		  off
	  SaveState		  off
	  SignalLogging		  on
	  SaveTime		  off
	  StateSaveName		  "xout"
	  TimeSaveName		  "tout"
	  OutputSaveName	  "yout"
	  SignalLoggingName	  "sigsOut"
	  OutputOption		  "RefineOutputTimes"
	  OutputTimes		  "[]"
	  Refine		  "1"
	}
	Simulink.OptimizationCC {
	  $ObjectID		  4
	  Array {
	    Type		    "Cell"
	    Dimension		    5
	    Cell		    "ZeroExternalMemoryAtStartup"
	    Cell		    "ZeroInternalMemoryAtStartup"
	    Cell		    "InitFltsAndDblsToZero"
	    Cell		    "OptimizeModelRefInitCode"
	    Cell		    "NoFixptDivByZeroProtection"
	    PropName		    "DisabledProps"
	  }
	  Version		  "1.1.0"
	  BlockReduction	  off
	  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 on
	  CheckExecutionContextRuntimeOutputMsg	on
	  SignalResolutionControl "TryResolveAllWithWarning"
	  BlockPriorityViolationMsg "warning"
	  MinStepSizeMsg	  "warning"
	  SolverPrmCheckMsg	  "none"
	  InheritedTsInSrcMsg	  "warning"
	  DiscreteInheritContinuousMsg "warning"
	  MultiTaskDSMMsg	  "warning"
	  MultiTaskRateTransMsg	  "error"
	  SingleTaskRateTransMsg  "none"
	  TasksWithSamePriorityMsg "warning"
	  CheckMatrixSingularityMsg "none"
	  IntegerOverflowMsg	  "none"
	  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 on
	      IncAutoGenComments      off
	      SimulinkDataObjDesc     off
	      SFDataObjDesc	      off
	      IncDataTypeInIds	      off
	      PrefixModelToSubsysFcnNames on
	      CustomSymbolStr	      "$R$N$M"
	      MangleLength	      1
	      DefineNamingRule	      "None"
	      ParamNamingRule	      "None"
	      SignalNamingRule	      "None"
	      InsertBlockDesc	      off
	      SimulinkBlockComments   on
	      EnableCustomComments    off
	      InlinedPrmAccess	      "Literals"
	      ReqsInCode	      off
	    }
	    Simulink.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	      "Solver"
    }
    PropName		    "ConfigurationSets"
  }
  Simulink.ConfigSet {
    $PropName		    "ActiveConfigurationSet"
    $ObjectID		    1
  }
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  BlockParameterDefaults {
    Block {
      BlockType		      Demux
      Outputs		      "4"
      DisplayOption	      "none"
      BusSelectionMode	      off
    }
    Block {
      BlockType		      FromWorkspace
      VariableName	      "simulink_input"
      SampleTime	      "-1"
      Interpolate	      on
      ZeroCross		      off
      OutputAfterFinalValue   "Extrapolation"
    }
    Block {
      BlockType		      Fcn
      Expr		      "sin(u[1])"
      SampleTime	      "-1"
    }
    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		      Integrator
      ExternalReset	      "none"
      InitialConditionSource  "internal"
      InitialCondition	      "0"
      LimitOutput	      off
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      AbsoluteTolerance	      "auto"
      IgnoreLimit	      off
      ZeroCross		      on
    }
    Block {
      BlockType		      Lookup
      InputValues	      "[-4:5]"
      OutputValues	      " rand(1,10)-0.5"
      LookUpMeth	      "Interpolation-Extrapolation"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
      LUTDesignTableMode      "Redesign Table"
      LUTDesignDataSource     "Block Dialog"
      LUTDesignFunctionName   "sqrt(x)"
      LUTDesignUseExistingBP  on
      LUTDesignRelError	      "0.01"
      LUTDesignAbsError	      "1e-6"
    }
    Block {
      BlockType		      Lookup2D
      RowIndex		      "[0 1]"
      ColumnIndex	      "[0 1]"
      OutputValues	      "[0 0;0 0]"
      LookUpMeth	      "Interpolation-Extrapolation"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
      LUTDesignTableMode      "Redesign Table"
      LUTDesignDataSource     "Block Dialog"
      LUTDesignFunctionName   "sqrt(x)"
      LUTDesignUseExistingBP  on
      LUTDesignRelError	      "0.01"
      LUTDesignAbsError	      "1e-6"
    }
    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		      Product
      Inputs		      "2"
      Multiplication	      "Element-wise(.*)"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	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		      Signum
      ZeroCross		      on
      SampleTime	      "-1"
    }
    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		      TriggerPort
      TriggerType	      "rising"
      StatesWhenEnabling      "inherit"
      ShowOutputPort	      off
      OutputDataType	      "auto"
      SampleTimeType	      "triggered"
      SampleTime	      "1"
      ZeroCross		      on
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "sf_car"
    Location		    [20, 104, 700, 469]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "portrait"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      SubSystem
      Name		      "Engine"
      Ports		      [2, 1]
      Position		      [195, 57, 255, 113]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Engine"
	Location		[3, 415, 453, 549]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Ti"
	  Position		  [35, 19, 60, 31]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "throttle"
	  Position		  [35, 48, 60, 62]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [1, 1]
	  Position		  [325, 45, 355, 75]
	  ShowName		  off
	  InitialCondition	  "1000"
	  LimitOutput		  on
	  UpperSaturationLimit	  "6000"
	  LowerSaturationLimit	  "600"
	  ZeroCross		  off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [195, 42, 225, 73]
	  ShowName		  off
	  Inputs		  "-+"
	}
	Block {
	  BlockType		  Lookup2D
	  Name			  "engine\ntorque"
	  Position		  [115, 47, 145, 78]
	  RowIndex		  "thvec"
	  ColumnIndex		  "nevec"
	  OutputValues		  "emap"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "engine + impeller\ninertia"
	  Position		  [260, 39, 300, 81]
	  Gain			  "1/Iei"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Ne"
	  Position		  [395, 54, 420, 66]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Ti"
	  SrcPort		  1
	  Points		  [95, 0; 0, 25]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "throttle"
	  SrcPort		  1
	  DstBlock		  "engine\ntorque"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    Points		    [0, 60; -300, 0; 0, -50]
	    DstBlock		    "engine\ntorque"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "Ne"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "engine + impeller\ninertia"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "engine + impeller\ninertia"
	  SrcPort		  1
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "engine\ntorque"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [2, 1]
      Position		      [580, 317, 585, 348]
      BackgroundColor	      "black"
      ShowName		      off
      Inputs		      "2"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Threshold Calculation"
      Ports		      [2, 2, 0, 1]
      Position		      [195, 253, 320, 302]
      Orientation	      "left"
      TreatAsAtomicUnit	      on
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Threshold Calculation"
	Location		[148, 234, 563, 417]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "gear"
	  Position		  [20, 118, 50, 132]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "throttle"
	  Position		  [20, 53, 50, 67]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  TriggerPort
	  Name			  "run"
	  Ports			  []
	  Position		  [160, 15, 180, 35]
	  TriggerType		  "function-call"
	  ZeroCross		  off
	}
	Block {
	  BlockType		  Lookup2D
	  Name			  "interp_down"
	  Position		  [240, 117, 270, 153]
	  RowIndex		  "downth"
	  ColumnIndex		  "[1:4]"
	  OutputValues		  "downtab"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Lookup2D
	  Name			  "interp_up"
	  Position		  [240, 52, 270, 88]
	  RowIndex		  "upth"
	  ColumnIndex		  "[1:4]"
	  OutputValues		  "uptab"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Outport
	  Name			  "down_th"
	  Position		  [340, 128, 370, 142]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "up_th"
	  Position		  [335, 63, 365, 77]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "interp_up"
	  SrcPort		  1
	  DstBlock		  "up_th"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "interp_down"
	  SrcPort		  1
	  DstBlock		  "down_th"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "throttle"
	  SrcPort		  1
	  Points		  [110, 0]
	  Branch {
	    DstBlock		    "interp_up"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 65]
	    DstBlock		    "interp_down"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "gear"
	  SrcPort		  1
	  Points		  [85, 0]
	  Branch {
	    Points		    [0, -45]
	    DstBlock		    "interp_up"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "interp_down"
	    DstPort		    2
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "User Inputs"
      Tag		      "STV Subsys"
      Ports		      [0, 2]
      Position		      [15, 170, 90, 210]
      NamePlacement	      "alternate"
      CopyFcn		      "sigbuilder_block('copy');"
      DeleteFcn		      "sigbuilder_block('delete');"
      LoadFcn		      "sigbuilder_block('load');"
      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',[6 24.75 413.25 257.25 "
"]);"
      CloseFcn		      "sigbuilder_block('close');"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskType		      "Sigbuilder block"
      MaskDescription	      "Sigbuilder GUI"
      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			"User Inputs"
	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, 2]
	  Position		  [150, 36, 160, 609]
	  Outputs		  "2"
	}
	Block {
	  BlockType		  FromWorkspace
	  Name			  "FromWs"
	  Tag			  "STV FromWs"
	  Position		  [30, 300, 115, 350]
	  VariableName		  "tuvar"
	  SampleTime		  "0"
	  SigBuilderData	  "DataTag0"
	  VnvData		  "DataTag1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Brake"
	  Tag			  "STV Outport"
	  Position		  [280, 30, 300, 40]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Throttle"
	  Tag			  "STV Outport"
	  Position		  [280, 60, 300, 70]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "FromWs"
	  SrcPort		  1
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  DstBlock		  "Brake"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  DstBlock		  "Throttle"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Vehicle"
      Ports		      [2, 2]
      Position		      [530, 97, 625, 153]
      FontSize		      8
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskType		      "vehicle model"
      MaskDescription	      "vehicle dynamics: torque input from trans., out"
"puts are input speed (transmission output) and vehicle speed "
      MaskPromptString	      " final drive ratio | drag friction at wheels | "
"aerodynamic drag | wheel radius | vehicle inertia | initial transmission outp"
"ut speed"
      MaskStyleString	      "edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on"
      MaskCallbackString      "|||||"
      MaskEnableString	      "on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,"
      MaskInitialization      "Rfd = @1; rload0 = @2; rload2 = @3; Rw = @4; Iv"
" = @5; N20 = @6;"
      MaskDisplay	      "plot([cos(pi*[0:5:360]/180) + 6], [sin(pi*[0:5:"
"360]/180) + 1.5],[cos(pi*[0:5:360]/180) + 1], [sin(pi*[0:5:360]/180) + 4], [1"
"0 7.5 6.75], [3.5 1 1.5], [10 9.75 7.5 6.25 3 1.5 4 5 7.5], [3.5 4.75 5.5 7 8"
" 7 6 4 5.5], [6.5 4], [7 6], [5.25 2], [2 4], [7.5 1 0], [2.5 6 6.5], [7.5 7."
"25 9.75], [1 2.25 4.75], [2.75 2 0 0 0.25], [7.5 8 6.5 5.25 5], [1.5 0.5], [6"
".75 6.25])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "port"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "vehicledata(1)|vehicledata(2)|vehicledata(3)|ve"
"hicledata(4)|vehicledata(5)|vehicledata(6)/vehicledata(4)*vehicledata(1)"
      MaskTabNameString	      ",,,,,"
      Port {
	PortNumber		1
	Name			"vehicle\nspeed"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
      Port {
	PortNumber		2
	Name			"transmission speed"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
      System {
	Name			"Vehicle"
	Location		[33, 226, 868, 656]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "brake torque"
	  Position		  [40, 250, 60, 270]
	  FontSize		  12
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "transmission\noutput torque"
	  Position		  [40, 70, 60, 90]
	  FontSize		  12
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Signum
	  Name			  "Sign"
	  Position		  [595, 165, 625, 195]
	  ShowName		  off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [185, 68, 210, 112]
	  ShowName		  off
	  FontSize		  12
	  Inputs		  "+-"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1]
	  Position		  [645, 191, 670, 284]
	  ShowName		  off
	  FontSize		  12
	}
	Block {
	  BlockType		  Gain
	  Name			  "final\ndrive\nratio1"
	  Position		  [110, 63, 145, 97]
	  FontSize		  12
	  Gain			  "Rfd"
	}
	Block {
	  BlockType		  Gain
	  Name			  "final drive\nratio2"
	  Position		  [580, 74, 615, 106]
	  FontSize		  12
	  Gain			  "Rfd"
	}
	Block {
	  BlockType		  Gain
	  Name			  "linear speed"
	  Position		  [370, 188, 430, 242]
	  NamePlacement		  "alternate"
	  FontSize		  12
	  Gain			  "2*pi*Rw"
	}
	Block {
	  BlockType		  Gain
	  Name			  "mph"
	  Position		  [450, 188, 510, 242]
	  NamePlacement		  "alternate"
	  FontSize		  12
	  Gain			  "60/5280"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "road load"
	  Position		  [550, 201, 615, 229]
	  FontSize		  12
	  Expr			  "rload0 + rload2*u^2"
	}
	Block {
	  BlockType		  Product
	  Name			  "signed\nload"
	  Ports			  [2, 1]
	  Position		  [700, 149, 725, 271]
	  FontSize		  12
	  RndMeth		  "Floor"
	}
	Block {
	  BlockType		  Gain
	  Name			  "vehicle\ninertia"
	  Position		  [235, 74, 270, 106]
	  FontSize		  12
	  Gain			  "1/Iv"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "wheel\nspeed"
	  Ports			  [1, 1]
	  Position		  [305, 80, 325, 100]
	  FontSize		  12
	  InitialCondition	  "N20/Rfd"
	  ZeroCross		  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "vehicle\nspeed"
	  Position		  [765, 135, 785, 155]
	  FontSize		  12
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "transmission\noutput speed"
	  Position		  [765, 80, 785, 100]
	  FontSize		  12
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "final drive\nratio2"
	  SrcPort		  1
	  DstBlock		  "transmission\noutput speed"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "brake torque"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "signed\nload"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "road load"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sign"
	  SrcPort		  1
	  DstBlock		  "signed\nload"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "signed\nload"
	  SrcPort		  1
	  Points		  [25, 0; 0, 115; -590, 0; 0, -225]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "transmission\noutput torque"
	  SrcPort		  1
	  DstBlock		  "final\ndrive\nratio1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "vehicle\ninertia"
	  SrcPort		  1
	  DstBlock		  "wheel\nspeed"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "vehicle\ninertia"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "mph"
	  SrcPort		  1
	  Points		  [10, 0; 0, -35]
	  Branch {
	    Points		    [0, -35]
	    DstBlock		    "vehicle\nspeed"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Sign"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 35]
	    DstBlock		    "road load"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "linear speed"
	  SrcPort		  1
	  DstBlock		  "mph"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "wheel\nspeed"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, 125]
	    DstBlock		    "linear speed"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "final drive\nratio2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "final\ndrive\nratio1"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Annotation {
	  Name			  "Vehicle"
	  Position		  [367, 352]
	  VerticalAlignment	  "top"
	  FontSize		  16
	  FontWeight		  "bold"
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "engine RPM"
      Ports		      [1]
      Position		      [295, 105, 325, 135]
      NamePlacement	      "alternate"
      Location		      [703, 52, 965, 345]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "0"
      YMax		      "6000"
      DataFormat	      "Array"
    }
    Block {
      BlockType		      SubSystem
      Name		      "shift_logic"
      Ports		      [3, 2]
      Position		      [180, 144, 315, 216]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskType		      "Stateflow"
      MaskDescription	      "Stateflow diagram"
      MaskDisplay	      "plot(sf('Private','sfblk','xIcon'),sf('Private'"
",'sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'HorizontalAl',"
"'Center','VerticalAl','Bottom');"
      MaskSelfModifiable      on
      MaskIconFrame	      off
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"shift_logic"
	Location		[70, 200, 570, 460]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "speed"
	  Position		  [20, 101, 40, 119]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "up_th"
	  Position		  [20, 136, 40, 154]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "down_th"
	  Position		  [20, 171, 40, 189]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Demux
	  Name			  " Demux "
	  Ports			  [1, 1]
	  Position		  [270, 180, 320, 220]
	  Outputs		  "1"
	  Port {
	    PortNumber		    1
	    Name		    "CALC_TH"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  " SFunction "
	  Tag			  "Stateflow S-Function sf_car 1"
	  Ports			  [3, 2]
	  Position		  [180, 100, 230, 180]
	  FunctionName		  "sf_sfun"
	  Parameters		  "TWAIT"
	  PortCounts		  "[3 2]"
	  Port {
	    PortNumber		    2
	    Name		    "gear"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "gear"
	  Position		  [460, 101, 480, 119]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "CALC_TH"
	  Position		  [460, 136, 480, 154]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  " SFunction "
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  " Demux "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "speed"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "up_th"
	  SrcPort		  1
	  Points		  [120, 0]
	  DstBlock		  " SFunction "
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "down_th"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  3
	}
	Line {
	  Name			  "gear"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  2
	  DstBlock		  "gear"
	  DstPort		  1
	}
	Line {
	  Name			  "CALC_TH"
	  Labels		  [0, 0]
	  SrcBlock		  " Demux "
	  SrcPort		  1
	  DstBlock		  "CALC_TH"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "transmission"
      Ports		      [3, 2]
      Position		      [395, 67, 455, 163]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      Port {
	PortNumber		1
	Name			"impeller torque"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
      Port {
	PortNumber		2
	Name			"output torque"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
      System {
	Name			"transmission"
	Location		[518, 287, 984, 538]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Ne"
	  Position		  [25, 48, 55, 62]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "gear"
	  Position		  [25, 118, 55, 132]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Nout"
	  Position		  [25, 153, 55, 167]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Torque\nConverter"
	  Ports			  [2, 2]
	  Position		  [140, 40, 195, 95]
	  FontName		  "Arial"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskType		  "torque converter"
	  MaskDescription	  "torque converter "
	  MaskHelp		  "Torque converter input and output torques a"
"re computed as a function of the input and output speeds"
	  MaskPromptString	  " speed ratio | K factor | torque ratio"
	  MaskStyleString	  "edit,edit,edit"
	  MaskTunableValueString  "on,on,on"
	  MaskCallbackString	  "||"
	  MaskEnableString	  "on,on,on"
	  MaskVisibilityString	  "on,on,on"
	  MaskToolTipString	  "on,on,on"
	  MaskVarAliasString	  ",,"
	  MaskVariables		  "speedratio=@1;Kfactor=@2;Torkratio=@3;"
	  MaskDisplay		  "plot([cos([90:10:450]*pi/180),.63*cos([90:1"
"0:450]*pi/180),.63*cos([90:10:240]*pi/180),cos([240:10:300]*pi/180),.63*cos(["
"300]*pi/180)],[sin([90:10:450]*pi/180),.63*sin([90:10:450]*pi/180)+.1,.63*sin"
"([90:10:240]*pi/180)+.1,sin([240:10:300]*pi/180),.63*sin([300]*pi/180)+.1])"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "converter_data(:,1)|converter_data(:,2)|con"
"verter_data(:,3)"
	  MaskTabNameString	  ",,"
	  Port {
	    PortNumber		    2
	    Name		    "turbine torque"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Torque\nConverter"
	    Location		    [182, 80, 766, 337]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Ne"
	      Position		      [30, 98, 55, 112]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Nin"
	      Position		      [30, 68, 55, 82]
	      NamePlacement	      "alternate"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Lookup
	      Name		      "K\nfactor"
	      Position		      [190, 65, 240, 115]
	      InputValues	      "speedratio"
	      OutputValues	      "Kfactor"
	    }
	    Block {
	      BlockType		      Lookup
	      Name		      "Torque\nratio"
	      Position		      [340, 119, 395, 171]
	      InputValues	      "speedratio"
	      OutputValues	      "Torkratio"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "impeller"
	      Position		      [335, 56, 395, 94]
	      Expr		      "u^2"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "quotient"
	      Ports		      [2, 1]
	      Position		      [270, 39, 315, 106]
	      Inputs		      "*/"
	      RndMeth		      "Floor"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "speed\nratio"
	      Ports		      [2, 1]
	      Position		      [100, 61, 150, 119]
	      Inputs		      "*/"
	      RndMeth		      "Floor"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "turbine"
	      Ports		      [2, 1]
	      Position		      [445, 64, 490, 106]
	      RndMeth		      "Floor"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Ti"
	      Position		      [515, 29, 540, 41]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Tt"
	      Position		      [515, 79, 540, 91]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Torque\nratio"
	      SrcPort		      1
	      Points		      [15, 0; 0, -50]
	      DstBlock		      "turbine"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "quotient"
	      SrcPort		      1
	      DstBlock		      "impeller"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "K\nfactor"
	      SrcPort		      1
	      DstBlock		      "quotient"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "speed\nratio"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		Points			[0, 55]
		DstBlock		"Torque\nratio"
		DstPort			1
	      }
	      Branch {
		DstBlock		"K\nfactor"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "impeller"
	      SrcPort		      1
	      Points		      [15, 0]
	      Branch {
		DstBlock		"turbine"
		DstPort			1
	      }
	      Branch {
		Points			[0, -40]
		DstBlock		"Ti"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "turbine"
	      SrcPort		      1
	      DstBlock		      "Tt"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Ne"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		DstBlock		"speed\nratio"
		DstPort			2
	      }
	      Branch {
		Points			[0, -50]
		DstBlock		"quotient"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Nin"
	      SrcPort		      1
	      DstBlock		      "speed\nratio"
	      DstPort		      1
	    }
	    Annotation {
	      Name		      "TORQUE CONVERTER"
	      Position		      [262, 197]
	      VerticalAlignment	      "top"
	      FontSize		      12
	      FontWeight	      "bold"
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "transmission\nratio"
	  Ports			  [3, 2]
	  Position		  [300, 71, 360, 129]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "transmission\nratio"
	    Location		    [720, 342, 1111, 576]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Tin"
	      Position		      [25, 28, 55, 42]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "gear"
	      Position		      [25, 73, 55, 87]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Nout"
	      Position		      [335, 163, 365, 177]
	      Orientation	      "left"
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Lookup
	      Name		      "Look-Up\nTable"
	      Position		      [110, 65, 140, 95]
	      InputValues	      "[1 2 3 4]"
	      OutputValues	      "[2.393 1.450 1.000 0.677]"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [235, 27, 265, 58]
	      RndMeth		      "Floor"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product1"
	      Ports		      [2, 1]
	      Position		      [245, 147, 275, 178]
	      Orientation	      "left"
	      RndMeth		      "Floor"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Tout"
	      Position		      [335, 38, 365, 52]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Nin"
	      Position		      [25, 158, 55, 172]
	      Orientation	      "left"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Look-Up\nTable"
	      SrcPort		      1
	      Points		      [30, 0]
	      Branch {
		Points			[115, 0]
		DstBlock		"Product1"
		DstPort			1
	      }
	      Branch {
		Points			[0, -30]
		DstBlock		"Product"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Nout"
	      SrcPort		      1
	      DstBlock		      "Product1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product1"
	      SrcPort		      1
	      DstBlock		      "Nin"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "Tout"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Tin"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "gear"
	      SrcPort		      1
	      DstBlock		      "Look-Up\nTable"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Ti"
	  Position		  [410, 48, 440, 62]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Tout"
	  Position		  [410, 78, 440, 92]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "transmission\nratio"
	  SrcPort		  1
	  DstBlock		  "Tout"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Torque\nConverter"
	  SrcPort		  1
	  DstBlock		  "Ti"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Nout"
	  SrcPort		  1
	  Points		  [200, 0; 0, -40]
	  DstBlock		  "transmission\nratio"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "gear"
	  SrcPort		  1
	  Points		  [180, 0; 0, -25]
	  DstBlock		  "transmission\nratio"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Ne"
	  SrcPort		  1
	  DstBlock		  "Torque\nConverter"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "transmission\nratio"
	  SrcPort		  2
	  Points		  [15, 0; 0, 80; -275, 0; 0, -115]
	  DstBlock		  "Torque\nConverter"
	  DstPort		  2
	}
	Line {
	  Name			  "turbine torque"
	  Labels		  [1, 0]
	  SrcBlock		  "Torque\nConverter"
	  SrcPort		  2
	  DstBlock		  "transmission\nratio"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "vehicle mph \n(yellow)\n& throttle %"
      Ports		      [1]
      Position		      [605, 320, 635, 350]
      NamePlacement	      "alternate"
      Location		      [705, 351, 967, 649]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "0"
      YMax		      "140"
      DataFormat	      "Array"
    }
    Line {
      Name		      "impeller torque"
      Labels		      [3, 0]
      SrcBlock		      "transmission"
      SrcPort		      1
      Points		      [10, 0; 0, -50; -295, 0; 0, 30]
      DstBlock		      "Engine"
      DstPort		      1
    }
    Line {
      SrcBlock		      "User Inputs"
      SrcPort		      2
      Points		      [0, 0; 40, 0]
      Branch {
	Points			[0, -100]
	DstBlock		"Engine"
	DstPort			2
      }
      Branch {
	Points			[0, 140; 205, 0]
	Branch {
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Branch {
	  Points		  [0, -50]
	  DstBlock		  "Threshold Calculation"
	  DstPort		  2
	}
      }
    }
    Line {
      SrcBlock		      "Engine"
      SrcPort		      1
      Points		      [0, 0; 15, 0]
      Branch {
	DstBlock		"transmission"
	DstPort			1
      }
      Branch {
	Points			[0, 35]
	DstBlock		"engine RPM"
	DstPort			1
      }
    }
    Line {
      Name		      "output torque"
      Labels		      [1, 1]
      SrcBlock		      "transmission"
      SrcPort		      2
      DstBlock		      "Vehicle"
      DstPort		      2
    }
    Line {
      Name		      "transmission speed"
      Labels		      [3, 0]
      SrcBlock		      "Vehicle"
      SrcPort		      2
      Points		      [15, 0; 0, 45; -295, 0; 0, -40]
      DstBlock		      "transmission"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Threshold Calculation"
      SrcPort		      1
      Points		      [-25, 0]
      DstBlock		      "shift_logic"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Threshold Calculation"
      SrcPort		      2
      Points		      [-35, 0; 0, -110]
      DstBlock		      "shift_logic"
      DstPort		      2
    }
    Line {
      SrcBlock		      "shift_logic"
      SrcPort		      1
      Points		      [0, 0; 20, 0]
      Branch {
	Points			[0, -50]
	DstBlock		"transmission"
	DstPort			2
      }
      Branch {
	Points			[0, 100]
	DstBlock		"Threshold Calculation"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "shift_logic"
      SrcPort		      2
      Points		      [10, 0; 0, 35; -75, 0]
      DstBlock		      "Threshold Calculation"
      DstPort		      trigger
    }
    Line {
      Name		      "vehicle\nspeed"
      Labels		      [4, 0]
      SrcBlock		      "Vehicle"
      SrcPort		      1
      Points		      [30, 0; 0, 105; -245, 0; 0, 110]
      Branch {
	DstBlock		"Mux"
	DstPort			1
      }
      Branch {
	Points			[-270, 0; 0, -170]
	DstBlock		"shift_logic"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "vehicle mph \n(yellow)\n& throttle %"
      DstPort		      1
    }
    Line {
      SrcBlock		      "User Inputs"
      SrcPort		      1
      Points		      [25, 0; 0, -155; 385, 0; 0, 85]
      DstBlock		      "Vehicle"
      DstPort		      1
    }
    Annotation {
      Name		      "Choose Start from\nthe Simulation menu\nto run "
"the simulation."
      Position		      [603, 55]
      FontName		      "Century Schoolbook"
      FontSize		      12
      FontWeight	      "bold"
      FontAngle		      "italic"
    }
    Annotation {
      Name		      "sf_car.mdl"
      Position		      [55, 27]
      FontName		      "Arial"
      FontSize		      16
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Double-click to\nopen the GUI \nand select an\n"
"input manuever\n"
      Position		      [56, 259]
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      FontAngle		      "italic"
    }
  }
}
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    "
"     )    \"         !(@$) #@   #     &    \"     8         !0    @          "
"     $         \"0         "
  }
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    B!4   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    @    !     @    $         $  \" &]N   .    4 P "
"  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;&"
"Q81&%T80  86QL641A=&$           X   !     !@    @    &          4    (     0 "
"   (    !          D    0                      !)0 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    (             $ .    6 "
"$   8    (     0         %    \"     $    $     0         .    0     8    (  "
"  !@         %    \"     $    \"     0         )    $                       2"
"4 .    0     8    (    !@         %    \"     $    \"     0         )    $   "
"                    24 .    4     8    (    !@         %    \"     $    $    "
" 0         )    (                       )$         D0        $E #@   $     & "
"   \"     8         !0    @    !     @    $         \"0   !                  "
"     $E #@   %@!   &    \"     $         !0    @    !    !     $         #@  "
" $     &    \"     8         !0    @    !     @    $         \"0   !         "
"                 #@   $     &    \"     8         !0    @    !     @    $    "
"     \"0   !                          #@   %     &    \"     8         !0    "
"@    !    !     $         \"0   \"                                !0=$       "
"%!T0 X   !     !@    @    &          4    (     0    (    !          D    0  "
"                        X   !8    !@    @    &          4    (     0    4    "
"!          D    H              #-S,S,S,PM0        \"Y         +D        !)0 X"
"   !8    !@    @    &          4    (     0    4    !          D    H        "
"    3D        !$0        %E         64!I:6EI:6E-0 X    X    !@    @    &     "
"     4    (     0    $    !          D    (               .    .     8    (  "
"  !@         %    \"     $    !     0         )    \"               #@   #   "
"  &    \"     8         !0    @               $         \"0         .    ,   "
"  8    (    !@         %    \"                0         )          X   !(    "
"!@    @    &          4    (     0    ,    !          D    8    0C[HV:SZZC\\ "
"                    #@   #     &    \"     0         !0    @    !     0    $ "
"        $  ! \"T    .    .     8    (    !@         %    \"     $    !     0 "
"        )    \"            /@_#@   #@    &    \"     0         !0    @    !  "
"  \"     $         $     @   !4:')O='1L90X    X    !@    @    &          4   "
" (     0    $    !          D    (            \\#\\.    @ $   8    (     0   "
"      %    \"     $    $     0         .    6     8    (    !@         %    "
"\"     $    %     0         )    *               S<S,S,S,+4         N0       "
" \"Y         24 .    0     8    (    !@         %    \"     $    \"     0    "
"     )    $                       24 .    4     8    (    !@         %    \" "
"    $    $     0         )    (               9V9F9F9F%$!G9F9F9F840        $E"
" #@   %     &    \"     8         !0    @    !    !     $         \"0   \"   "
"            #0S,S,S,Q- -#,S,S,S$T        !)0 X   \"  0  !@    @    !         "
" 4    (     0    0    !          X   !8    !@    @    &          4    (     0"
"    4    !          D    H            3D        !$0        %E         64!I:6E"
"I:6E-0 X   !     !@    @    &          4    (     0    (    !          D    0"
"    S<S,S,S,*D         X0 X   !0    !@    @    &          4    (     0    0  "
"  !          D    @            24        !)0        / _        \\#\\.    4   "
"  8    (    !@         %    \"     $    $     0         )    (            %1 "
"        5$        #P/P       / _#@   / \"   &    \"     (         !0    @    "
"!     @    $         !0 $  L    !    -P   &-H86YN96QS    >4QI;0        !L86)E"
";%!O<P   &QA8F5L2       ;&%B96Q0871C:   #@   #@    &    \"     8         !0  "
"  @    !     0    $         \"0    @             0 X   !     !@    @    &    "
"      4    (     0    (    !          D    0            /D       (!;0 X    P "
"   !@    @    $          4    (     0    (    !         !   @!43   #@   #@   "
" &    \"     8         !0    @    !     0    $         \"0    @       !  (B)0"
" X    X    !@    @    &          4    (     0    $    !          D    (      "
"  0 \" B4 .    .     8    (    !@         %    \"     $    !     0         ) "
"   \"            / _#@   $     &    \"     8         !0    @    !     @    $ "
"        \"0   !            #POP       / _#@   #     &    \"     0         !0 "
"   @    !     @    $         $  \" %1,   .    .     8    (    !@         %   "
" \"     $    !     0         )    \"        $  :(E #@   #@    &    \"     8  "
"       !0    @    !     0    $         \"0    @       !  &\")0 X   !H 0  !@  "
"  @    \"          4    (     0    $    !          4 !  )     0   \"0   !D:7-"
"P5&EM90!D:7-P36]D90!M:6Y4:6UE  !M87A4:6UE        #@   $     &    \"     8    "
"     !0    @    !     @    $         \"0   !                       $E #@   #@"
"    &    \"     8         !0    @    !     0    $         \"0    @           "
"#P/PX    X    !@    @    &          4    (     0    $    !          D    (   "
"            .    .     8    (    !@         %    \"     $    !     0         "
")    \"            $E #@   ,@#   &    \"     (         !0    @    !    !     "
"$         !0 $  X    !    *@   &%C=&EV941I<W!)9'@ =&EM95)A;F=E      !N86UE   "
"                   X   !     !@    @    &          4    (     0    (    !    "
"      D    0             $        #P/PX   !     !@    @    &          4    ( "
"    0    (    !          D    0                      !)0 X   !     !@    @   "
" $          4    (     0   !     !         !     0    4&%S<VEN9R!-86YE=79E<@X"
"   !     !@    @    &          4    (     0    (    !          D    0        "
"     $        #P/PX   !     !@    @    &          4    (     0    (    !     "
"     D    0                      !)0 X   !(    !@    @    $          4    (  "
"   0   !0    !         !     4    1W)A9'5A;\"!!8V-E;&5R871I;VX     #@   $    "
" &    \"     8         !0    @    !     @    $         \"0   !              0"
"        / _#@   $     &    \"     8         !0    @    !     @    $         "
"\"0   !                       $E #@   $     &    \"     0         !0    @    "
"!    #     $         $     P   !(87)D(&)R86MI;F<     #@   $     &    \"     8"
"         !0    @    !     @    $         \"0   !              0        / _#@ "
"  $     &    \"     8         !0    @    !     @    $         \"0   !        "
"               $E #@   #@    &    \"     0         !0    @    !    \"     $  "
"       $     @   !#;V%S=&EN9PX    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_car"
		isLibrary            		0
		firstTarget          		35
		debug {
			runTimeCheck         		[0 0 0 0]
		}
		sfVersion            		62014000
		sfDemoChecksum       		[1970500444 4128402992 656832983 1125810280]
	}

	chart {
		id                                        		2
		name                                      		"shift_logic"
		windowPosition                            		[252.75 243.75 453.75 276.75]
		viewLimits                                		[4.744 586.324 2.327 337.991]
		zoomFactor                                		1.461
		screen                                    		[1 1 1024 768 1.041666666666667]
		treeNode                                  		[0 4 0 0]
		viewObj                                   		2
		machine                                   		1
		subviewS {
			y1        		1.912
			zoomFactor		1.383
		}
		decomposition                             		SET_CHART
		firstEvent                                		28
		firstData                                 		29
		updateMethod                              		DISCRETE
		sampleTime                                		"0.04"
		chartFileNumber                           		1
	}

	state {
		id                  		3
		labelString         		"downshifting"
		position            		[50.63 246.044 86.103 34.075]
		fontSize            		10
		arrowSize           		10
		chart               		2
		treeNode            		[9 0 10 0]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		4
		labelString         		"gear_state"
		position            		[12.661 17.439 567.664 76.723]
		fontSize            		10
		arrowSize           		12.207
		chart               		2
		treeNode            		[2 5 0 9]
		firstTransition     		15
		subviewer           		2
		type                		AND_STATE
		decomposition       		CLUSTER_STATE
		firstEvent          		26
	}

	state {
		id                  		5
		labelString         		"fourth\n"
						"entry: gear = 4;"
		position            		[474.636 34.168 84.643 40.59]
		fontSize            		10
		arrowSize           		9.224
		chart               		2
		treeNode            		[4 0 0 7]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		6
		labelString         		"second\n"
						"entry: gear = 2;"
		position            		[188.214 36.953 85.819 37.936]
		fontSize            		10
		arrowSize           		9.224
		chart               		2
		treeNode            		[4 0 7 8]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		7
		labelString         		"third\n"
						"entry: gear = 3;"
		position            		[334.106 36.116 86.87 37.488]
		fontSize            		10
		arrowSize           		9.224
		chart               		2
		treeNode            		[4 0 5 6]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		8
		labelString         		"first\n"
						"entry: gear = 1;"
		position            		[50.703 39.527 85.34 36.914]
		fontSize            		10
		arrowSize           		9.224
		chart               		2
		treeNode            		[4 0 6 0]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		9
		labelString         		"selection_state\n"
						"during: CALC_TH;"
		position            		[10.743 105.442 568.418 217.437]
		fontSize            		10
		arrowSize           		12.207
		chart               		2
		treeNode            		[2 11 4 0]
		firstTransition     		19
		subgrouped          		1
		subviewer           		2
		subviewS {
			x1        		-35.275
			y1        		-42.119
			zoomFactor		2.808
			pos       		[0 0 1340.435 601.385]
			fontSize  		18.481
		}
		type                		AND_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		10
		labelString         		"upshifting"
		position            		[458.505 241.801 74.109 36.255]
		fontSize            		10
		arrowSize           		10
		chart               		2
		treeNode            		[9 0 11 3]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		11
		labelString         		"steady_state"
		position            		[253.299 145.577 94.026 38.764]
		fontSize            		10
		arrowSize           		10
		chart               		2
		treeNode            		[9 0 0 10]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	transition {
		id             		12
		labelString    		"UP"
		labelPosition  		[443.237 30.416 19.62 18.258]
		fontSize       		10
		arrowSize      		9.224
		src {
			id          		7
			intersection		[2 1 0 0.381 420.9759 50.3989 0 0]
		}
		dst {
			id          		5
			intersection		[4 -1 0 0.5861 474.6359 50.9671 0 0]
		}
		midPoint       		[444.06 50.7015]
		chart          		2
		linkNode       		[4 14 17]
		dataLimits     		[420.976 474.636 48.2 53.734]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		13
		labelString    		"UP"
		labelPosition  		[289.621 27.506 19.62 18.258]
		fontSize       		10
		arrowSize      		9.224
		src {
			id          		6
			intersection		[2 1 0 0.2923 274.033 48.0436 0 0]
		}
		dst {
			id          		7
			intersection		[4 -1 0 0.689 334.1061 47.7732 0 0]
		}
		midPoint       		[300.4631 47.8996]
		chart          		2
		linkNode       		[4 15 14]
		dataLimits     		[274.033 334.106 45.006 50.54]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		14
		labelString    		"UP"
		labelPosition  		[154.021 27.761 19.62 18.258]
		fontSize       		10
		arrowSize      		9.224
		src {
			id          		8
			intersection		[2 1 0 0.2824 136.0434 49.9509 0 0]
		}
		dst {
			id          		6
			intersection		[4 -1 0 0.6654 188.2139 49.6482 0 0]
		}
		midPoint       		[158.3504 49.7897]
		chart          		2
		linkNode       		[4 13 12]
		dataLimits     		[136.043 188.214 46.881 52.415]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		15
		labelPosition  		[33.174 26.142 9.81 18.258]
		fontSize       		10
		arrowSize      		9.224
		src {
			intersection		[0 0 0 0 29.3367 47.5456 0 0]
		}
		dst {
			id          		8
			intersection		[4 -1 0 0.7868 50.703 47.3982 0 0]
		}
		midPoint       		[35.5719 47.4495]
		chart          		2
		linkNode       		[4 0 13]
		dataLimits     		[29.337 50.703 44.631 50.165]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		16
		labelString    		"DOWN"
		labelPosition  		[428.709 70.669 37.838 18.258]
		fontSize       		10
		arrowSize      		9.224
		src {
			id          		5
			intersection		[4 -1 0 0.3598 474.6359 60.1552 0 0]
		}
		dst {
			id          		7
			intersection		[2 1 0 0.6505 420.9759 60.5017 0 0]
		}
		midPoint       		[452.0545 60.2765]
		chart          		2
		linkNode       		[4 17 18]
		dataLimits     		[420.976 474.636 57.734 63.269]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		17
		labelString    		"DOWN"
		labelPosition  		[286.337 72.677 37.838 18.258]
		fontSize       		10
		arrowSize      		9.224
		src {
			id          		7
			intersection		[4 -1 0 0.3495 334.1061 60.5017 0 0]
		}
		dst {
			id          		6
			intersection		[2 1 0 0.6153 274.033 60.294 0 0]
		}
		midPoint       		[307.5336 60.3733]
		chart          		2
		linkNode       		[4 12 16]
		dataLimits     		[274.033 334.106 57.527 63.061]
		subviewer      		2
		executionOrder 		2
	}

	transition {
		id             		18
		labelString    		"DOWN"
		labelPosition  		[146.362 69.093 37.838 18.258]
		fontSize       		10
		arrowSize      		9.224
		src {
			id          		6
			intersection		[4 -1 0 0.3319 188.2139 62.2998 0 0]
		}
		dst {
			id          		8
			intersection		[2 1 0 0.6092 136.0434 62.0159 0 0]
		}
		midPoint       		[165.9069 62.1486]
		chart          		2
		linkNode       		[4 16 0]
		dataLimits     		[136.043 188.214 59.249 64.783]
		subviewer      		2
		executionOrder 		2
	}

	transition {
		id             		19
		labelPosition  		[297.249 127.526 9.81 18.258]
		fontSize       		10
		arrowSize      		10
		src {
			intersection		[0 0 0 0.1467 297.353 123.8093 0 0]
		}
		dst {
			id          		11
			intersection		[1 0 -1 0.4648 297.0026 145.5768 0 0]
		}
		midPoint       		[297.1246 129.84]
		chart          		2
		linkNode       		[9 0 20]
		dataLimits     		[294.003 300.003 123.809 145.577]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		20
		labelString    		"[speed > up_th]"
		labelPosition  		[358.392 146.016 82.682 18.258]
		fontSize       		10
		arrowSize      		10
		src {
			id          		11
			intersection		[2 1 0 0.4364 347.3246 162.4948 0 0]
		}
		dst {
			id          		10
			intersection		[1 0 -1 0.4254 490.0296 241.8005 0 0]
		}
		midPoint       		[443.073 178.668]
		chart          		2
		linkNode       		[9 19 21]
		dataLimits     		[347.325 493.03 162.441 241.8]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		21
		labelString    		"[speed < down_th]"
		labelPosition  		[116.093 148.251 99.499 18.258]
		fontSize       		10
		arrowSize      		10
		src {
			id          		11
			intersection		[4 -1 0 0.5159 253.2986 164.3405 0 0]
		}
		dst {
			id          		3
			intersection		[1 0 -1 0.3373 79.6741 246.044 0 0]
		}
		midPoint       		[137.9285 177.5474]
		chart          		2
		linkNode       		[9 20 23]
		dataLimits     		[76.674 253.299 163.642 246.044]
		subviewer      		2
		executionOrder 		2
	}

	transition {
		id             		22
		labelString    		"[speed < up_th]"
		labelPosition  		[359.467 214.892 82.682 18.258]
		fontSize       		10
		arrowSize      		10
		src {
			id          		10
			intersection		[4 -1 0 0.6747 458.5053 253.5951 0 0]
		}
		dst {
			id          		11
			intersection		[3 0 1 0.2839 320.6299 184.3405 0 0]
		}
		midPoint       		[366.357 239.46]
		chart          		2
		linkNode       		[9 25 0]
		dataLimits     		[317.63 458.505 184.34 253.603]
		subviewer      		2
		executionOrder 		2
	}

	transition {
		id             		23
		labelString    		"[speed > down_th]"
		labelPosition  		[107.686 227.463 99.499 18.258]
		fontSize       		10
		arrowSize      		10
		src {
			id          		3
			intersection		[2 1 0 0.2511 136.7337 254.6004 0 0]
		}
		dst {
			id          		11
			intersection		[3 0 1 0.8059 271.5466 184.3405 0 0]
		}
		midPoint       		[222.9232 243.042]
		chart          		2
		linkNode       		[9 21 24]
		dataLimits     		[136.734 274.547 184.34 254.713]
		subviewer      		2
		executionOrder 		2
	}

	transition {
		id             		24
		labelString    		"after(TWAIT,tick)\n"
						"[speed <= down_th]\n"
						"{gear_state.DOWN}"
		labelPosition  		[162.18 272.336 105.105 46.347]
		fontSize       		10
		arrowSize      		10
		src {
			id          		3
			intersection		[2 1 0 0.6609 136.7337 268.5648 0 0]
		}
		dst {
			id          		11
			intersection		[3 0 1 0.6756 283.8028 184.3405 0 0]
		}
		midPoint       		[232.0486 251.6784]
		chart          		2
		linkNode       		[9 23 25]
		dataLimits     		[136.734 286.803 184.34 268.565]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		25
		labelString    		"after(TWAIT,tick)\n"
						"[speed >= up_th]\n"
						"{gear_state.UP}"
		labelPosition  		[327.58 270.207 88.288 46.347]
		fontSize       		10
		arrowSize      		10
		src {
			id          		10
			intersection		[4 -1 0 0.3414 458.5053 265.6778 0 0]
		}
		dst {
			id          		11
			intersection		[3 0 1 0.4395 306.0035 184.3405 0 0]
		}
		midPoint       		[356.0373 247.4078]
		chart          		2
		linkNode       		[9 24 22]
		dataLimits     		[303.003 458.505 184.34 265.678]
		subviewer      		2
		executionOrder 		1
	}

	event {
		id         		26
		name       		"DOWN"
		linkNode   		[4 0 27]
		scope      		LOCAL_EVENT
		trigger    		EITHER_EDGE_EVENT
		machine    		1
	}

	event {
		id         		27
		name       		"UP"
		linkNode   		[4 26 0]
		scope      		LOCAL_EVENT
		trigger    		EITHER_EDGE_EVENT
		machine    		1
	}

	event {
		id         		28
		name       		"CALC_TH"
		linkNode   		[2 0 0]
		scope      		OUTPUT_EVENT
		trigger    		FUNCTION_CALL_EVENT
		machine    		1
	}

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

	data {
		id                            		30
		name                          		"gear"
		linkNode                      		[2 29 31]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"uint8"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_UINT8_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		units                         		"int"
		props {
			range {
				minimum		"1"
				maximum		"4"
			}
		}
	}

	data {
		id                            		31
		name                          		"TWAIT"
		linkNode                      		[2 30 32]
		scope                         		PARAMETER_DATA
		initFromWorkspace             		1
		machine                       		1
		dataType                      		"uint8"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_UINT8_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		32
		name                          		"up_th"
		linkNode                      		[2 31 33]
		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                            		33
		name                          		"down_th"
		linkNode                      		[2 32 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     		34
		name   		"shift_logic"
		machine		1
		chart  		2
	}

	target {
		id                        		35
		name                      		"sfun"
		description               		"Default S-Function target."
		codeFlags                 		" debug=1 overflow=1 echo=0"
		machine                   		1
		linkNode                  		[1 0 36]
		checksumOld               		[669254712 3226503146 2893573782 4148113788]
	}

	target {
		id                        		36
		name                      		"rtw"
		description               		"Default S-Function target."
		codeFlags                 		" comments=0 preservenames=0 preservenameswithparent=0 export"
						"charts=0 statebitsets=1 databitsets=1 debug=0 telemetry=0 pr"
						"oject=0 multiinstanced=0 echo=0 initializer=1 ioformat=1"
		machine                   		1
		linkNode                  		[1 35 0]
	}
}
