# $Revision $
Model {
  Name			  "powerwindow04"
  Version		  6.2
  MdlSubVersion		  0
  GraphicalInterface {
    NumRootInports	    0
    NumRootOutports	    0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.77"
    NumModelReferences	    0
    NumTestPointedSignals   0
  }
  SavedCharacterEncoding  "US-ASCII"
  SaveDefaultBlockParams  on
  SampleTimeColors	  off
  LibraryLinkDisplay	  "none"
  WideLines		  off
  ShowLineDimensions	  off
  ShowPortDataTypes	  off
  ShowLoopsOnError	  on
  IgnoreBidirectionalLines off
  ShowStorageClass	  off
  ShowTestPointIcons	  on
  ShowViewerIcons	  on
  SortedOrder		  off
  ExecutionContextIcon	  off
  ShowLinearizationAnnotations on
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovMetricSettings	  "dw"
  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	  on
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  InitFcn		  "powericon('psbinitsys',bdroot);"
  Created		  "Mon Nov 26 16:45:25 2001"
  Creator		  "The MathWorks Inc."
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "batserve"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Sat Jan 22 19:08:34 2005"
  ModelVersionFormat	  "1.%<AutoIncrement:77>"
  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		8
	Simulink.SolverCC {
	  $ObjectID		  2
	  Version		  "1.1.0"
	  StartTime		  "0.0"
	  StopTime		  "inf"
	  AbsTol		  "auto"
	  FixedStep		  "1e-4"
	  InitialStep		  "auto"
	  MaxNumMinSteps	  "-1"
	  MaxOrder		  5
	  ExtrapolationOrder	  4
	  NumberNewtonIterations  1
	  MaxStep		  "auto"
	  MinStep		  "auto"
	  RelTol		  "1e-2"
	  SolverMode		  "Auto"
	  Solver		  "ode23t"
	  SolverName		  "ode23t"
	  ZeroCrossControl	  "UseLocalSettings"
	  AlgebraicLoopSolver	  "TrustRegion"
	  SolverResetMethod	  "Fast"
	  PositivePriorityOrder	  off
	  AutoInsertRateTranBlk	  off
	  SampleTimeConstraint	  "Unconstrained"
	  RateTranMode		  "Deterministic"
	}
	Simulink.DataIOCC {
	  $ObjectID		  3
	  Version		  "1.1.0"
	  Decimation		  "1"
	  ExternalInput		  "[t, u]"
	  FinalStateName	  "xFinal"
	  InitialState		  "xInitial"
	  LimitDataPoints	  on
	  MaxDataPoints		  "1000"
	  LoadExternalInput	  off
	  LoadInitialState	  off
	  SaveFinalState	  off
	  SaveFormat		  "Array"
	  SaveOutput		  on
	  SaveState		  off
	  SignalLogging		  on
	  SaveTime		  on
	  StateSaveName		  "xout"
	  TimeSaveName		  "tout"
	  OutputSaveName	  "yout"
	  SignalLoggingName	  "sigsOut"
	  OutputOption		  "RefineOutputTimes"
	  OutputTimes		  "[]"
	  Refine		  "1"
	}
	Simulink.OptimizationCC {
	  $ObjectID		  4
	  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 on
	  CheckExecutionContextRuntimeOutputMsg	on
	  SignalResolutionControl "TryResolveAllWithWarning"
	  BlockPriorityViolationMsg "warning"
	  MinStepSizeMsg	  "warning"
	  SolverPrmCheckMsg	  "none"
	  InheritedTsInSrcMsg	  "warning"
	  DiscreteInheritContinuousMsg "warning"
	  MultiTaskDSMMsg	  "warning"
	  MultiTaskRateTransMsg	  "error"
	  SingleTaskRateTransMsg  "none"
	  TasksWithSamePriorityMsg "warning"
	  CheckMatrixSingularityMsg "none"
	  IntegerOverflowMsg	  "warning"
	  Int32ToFloatConvMsg	  "warning"
	  ParameterDowncastMsg	  "error"
	  ParameterOverflowMsg	  "error"
	  ParameterPrecisionLossMsg "none"
	  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"
	  }
	}
	MECH.SimMechanicsCC {
	  $ObjectID		  11
	  Version		  "1.1.0"
	  Name			  "SimMechanics"
	  WarnOnRedundantConstraints on
	  WarnOnSingularInitialAssembly	off
	  ShowCutJoints		  off
	  VisOnUpdateDiagram	  on
	  VisDuringSimulation	  off
	}
	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		      Abs
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      CombinatorialLogic
      TruthTable	      "[0 0;0 1;0 1;1 0;0 1;1 0;1 0;1 1]"
      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		      DataTypeConversion
      OutDataTypeMode	      "Inherit via back propagation"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      ConvertRealWorld	      "Real World Value (RWV)"
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Demux
      Outputs		      "4"
      DisplayOption	      "none"
      BusSelectionMode	      off
    }
    Block {
      BlockType		      DiscretePulseGenerator
      PulseType		      "Sample based"
      TimeSource	      "Use simulation time"
      Amplitude		      "1"
      Period		      "2"
      PulseWidth	      "1"
      PhaseDelay	      "0"
      SampleTime	      "1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      From
      IconDisplay	      "Tag"
    }
    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		      Goto
      IconDisplay	      "Tag"
    }
    Block {
      BlockType		      SignalConversion
      OverrideOpt	      off
    }
    Block {
      BlockType		      Inport
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    Block {
      BlockType		      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		      Logic
      Operator		      "AND"
      Inputs		      "2"
      AllPortsSameDT	      on
      OutDataTypeMode	      "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      SampleTime	      "-1"
    }
    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		      MultiPortSwitch
      Inputs		      "4"
      zeroidx		      off
      InputSameDT	      on
      OutDataTypeMode	      "Inherit via internal rule"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	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		      PMIOPort
    }
    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		      Reference
    }
    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		      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		      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		      TransferFcn
      Numerator		      "[1]"
      Denominator	      "[1 2 1]"
      AbsoluteTolerance	      "auto"
      Realization	      "auto"
    }
    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		    "powerwindow04"
    Location		    [89, 117, 743, 435]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    BlocksetDataString	    "[0 0 0]|1|0|1e-3|1|1e-3|1|2|1e-4|1e-4|0|0|1|1e-5|"
"Deprecated|0|0|0||1|0"
    Block {
      BlockType		      Goto
      Name		      "Goto1"
      Position		      [550, 250, 640, 270]
      ShowName		      off
      GotoTag		      "object_present"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      Terminator
      Name		      "Terminator"
      Position		      [525, 181, 535, 189]
      ShowName		      off
    }
    Block {
      BlockType		      Constant
      Name		      "absent"
      Position		      [425, 263, 450, 277]
      Value		      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "armature_current"
      Ports		      [1]
      Position		      [545, 39, 575, 61]
      ForegroundColor	      "gray"
      Location		      [288, 314, 540, 552]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "driver_switch"
      Ports		      [0, 3]
      Position		      [15, 66, 105, 124]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"driver_switch"
	Location		[710, 103, 1003, 255]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Constant
	  Name			  "Constant12"
	  Position		  [15, 26, 35, 44]
	  NamePlacement		  "alternate"
	  ShowName		  off
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant3"
	  Position		  [15, 101, 35, 119]
	  ShowName		  off
	  Value			  "0"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant5"
	  Position		  [15, 46, 35, 64]
	  ShowName		  off
	  Value			  "0"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant7"
	  Position		  [15, 81, 35, 99]
	  NamePlacement		  "alternate"
	  ShowName		  off
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 3]
	  Position		  [235, 20, 240, 130]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Outputs		  "3"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux1"
	  Ports			  [2, 1]
	  Position		  [105, 18, 110, 127]
	  ForegroundColor	  "magenta"
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "control\ninput"
	  Position		  [125, 64, 175, 86]
	  ForegroundColor	  "magenta"
	  ShowName		  off
	  OutDataTypeMode	  "boolean"
	}
	Block {
	  BlockType		  Reference
	  Name			  "down\ncontrol"
	  Ports			  [2, 1]
	  Position		  [60, 82, 90, 118]
	  SourceBlock		  "simulink/Signal\nRouting/Manual Switch"
	  SourceType		  "Manual Switch"
	  ShowPortLabels	  "on"
	  sw			  "0"
	  action		  "0"
	}
	Block {
	  BlockType		  CombinatorialLogic
	  Name			  "map"
	  Position		  [190, 60, 220, 90]
	  ForegroundColor	  "magenta"
	  TruthTable		  "[1 0 0;0 0 1;0 1 0;1 0 0]"
	}
	Block {
	  BlockType		  Reference
	  Name			  "up\ncontrol"
	  Ports			  [2, 1]
	  Position		  [60, 27, 90, 63]
	  NamePlacement		  "alternate"
	  SourceBlock		  "simulink/Signal\nRouting/Manual Switch"
	  SourceType		  "Manual Switch"
	  ShowPortLabels	  "on"
	  sw			  "0"
	  action		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "neutral"
	  Position		  [255, 33, 285, 47]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "up"
	  Position		  [255, 68, 285, 82]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "down"
	  Position		  [255, 103, 285, 117]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "control\ninput"
	  SrcPort		  1
	  DstBlock		  "map"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant12"
	  SrcPort		  1
	  DstBlock		  "up\ncontrol"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant5"
	  SrcPort		  1
	  DstBlock		  "up\ncontrol"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant7"
	  SrcPort		  1
	  DstBlock		  "down\ncontrol"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant3"
	  SrcPort		  1
	  DstBlock		  "down\ncontrol"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "down\ncontrol"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Mux1"
	  SrcPort		  1
	  DstBlock		  "control\ninput"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "up\ncontrol"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "map"
	  SrcPort		  1
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  DstBlock		  "neutral"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  DstBlock		  "up"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  DstBlock		  "down"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "force"
      Ports		      [1]
      Position		      [545, 84, 575, 106]
      ForegroundColor	      "gray"
      Location		      [548, 314, 799, 552]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Reference
      Name		      "object"
      Ports		      [2, 1]
      Position		      [495, 240, 530, 280]
      BackgroundColor	      "cyan"
      SourceBlock	      "simulink/Signal\nRouting/Manual Switch"
      SourceType	      "Manual Switch"
      ShowPortLabels	      on
      sw		      "1"
      action		      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "passenger_switch"
      Ports		      [0, 3]
      Position		      [15, 141, 105, 199]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"passenger_switch"
	Location		[708, 324, 1001, 476]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Constant
	  Name			  "Constant12"
	  Position		  [15, 26, 35, 44]
	  NamePlacement		  "alternate"
	  ShowName		  off
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant3"
	  Position		  [15, 101, 35, 119]
	  ShowName		  off
	  Value			  "0"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant5"
	  Position		  [15, 46, 35, 64]
	  ShowName		  off
	  Value			  "0"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant7"
	  Position		  [15, 81, 35, 99]
	  NamePlacement		  "alternate"
	  ShowName		  off
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 3]
	  Position		  [235, 20, 240, 130]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Outputs		  "3"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux1"
	  Ports			  [2, 1]
	  Position		  [105, 18, 110, 127]
	  ForegroundColor	  "magenta"
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "control\ninput"
	  Position		  [125, 64, 175, 86]
	  ForegroundColor	  "magenta"
	  ShowName		  off
	  OutDataTypeMode	  "boolean"
	}
	Block {
	  BlockType		  Reference
	  Name			  "down\ncontrol"
	  Ports			  [2, 1]
	  Position		  [60, 82, 90, 118]
	  SourceBlock		  "simulink/Signal\nRouting/Manual Switch"
	  SourceType		  "Manual Switch"
	  ShowPortLabels	  "on"
	  sw			  "0"
	  action		  "0"
	}
	Block {
	  BlockType		  CombinatorialLogic
	  Name			  "map"
	  Position		  [190, 60, 220, 90]
	  ForegroundColor	  "magenta"
	  TruthTable		  "[1 0 0;0 0 1;0 1 0;1 0 0]"
	}
	Block {
	  BlockType		  Reference
	  Name			  "up\ncontrol"
	  Ports			  [2, 1]
	  Position		  [60, 27, 90, 63]
	  NamePlacement		  "alternate"
	  SourceBlock		  "simulink/Signal\nRouting/Manual Switch"
	  SourceType		  "Manual Switch"
	  ShowPortLabels	  "on"
	  sw			  "0"
	  action		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "neutral"
	  Position		  [255, 33, 285, 47]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "up"
	  Position		  [255, 68, 285, 82]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "down"
	  Position		  [255, 103, 285, 117]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  DstBlock		  "down"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  DstBlock		  "up"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  DstBlock		  "neutral"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "map"
	  SrcPort		  1
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "up\ncontrol"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux1"
	  SrcPort		  1
	  DstBlock		  "control\ninput"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "down\ncontrol"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant3"
	  SrcPort		  1
	  DstBlock		  "down\ncontrol"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant7"
	  SrcPort		  1
	  DstBlock		  "down\ncontrol"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant5"
	  SrcPort		  1
	  DstBlock		  "up\ncontrol"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant12"
	  SrcPort		  1
	  DstBlock		  "up\ncontrol"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "control\ninput"
	  SrcPort		  1
	  DstBlock		  "map"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "position"
      Ports		      [1]
      Position		      [545, 129, 575, 151]
      ForegroundColor	      "gray"
      Location		      [10, 290, 273, 528]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-0.05"
      YMax		      "0.5"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "power_window_control_system"
      Ports		      [7, 2]
      Position		      [170, 30, 330, 210]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"power_window_control_system"
	Location		[122, 92, 894, 497]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "armature_current"
	  Position		  [685, 38, 715, 52]
	  Orientation		  "left"
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "driver_neutral"
	  Position		  [60, 83, 90, 97]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "driver_up"
	  Position		  [100, 113, 130, 127]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "driver_down"
	  Position		  [140, 143, 170, 157]
	  Port			  "4"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "passenger_neutral"
	  Position		  [55, 238, 85, 252]
	  Port			  "5"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "passenger_up"
	  Position		  [95, 268, 125, 282]
	  Port			  "6"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "passenger_down"
	  Position		  [140, 298, 170, 312]
	  Port			  "7"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  DiscretePulseGenerator
	  Name			  "10 ms"
	  Ports			  [0, 1]
	  Position		  [419, 95, 451, 115]
	  Orientation		  "down"
	  SampleTime		  "10e-3"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "control"
	  Ports			  [4, 2, 0, 1]
	  Position		  [370, 137, 505, 238]
	  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		    "control"
	    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		      "endstop"
	      Position		      [20, 101, 40, 119]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "obstacle"
	      Position		      [20, 136, 40, 154]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "driver"
	      Position		      [20, 171, 40, 189]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "passenger"
	      Position		      [20, 206, 40, 224]
	      Port		      "4"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      TriggerPort
	      Name		      "ticks"
	      Ports		      [0, 1]
	      Position		      [20, 246, 40, 264]
	      TriggerType	      "either"
	      ShowOutputPort	      on
	    }
	    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 powerwindow04 2"
	      Ports		      [5, 3]
	      Position		      [180, 100, 230, 220]
	      FunctionName	      "sf_sfun"
	      PortCounts	      "[5 3]"
	      Port {
		PortNumber		2
		Name			"moveUp"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      Port {
		PortNumber		3
		Name			"moveDown"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Terminator
	      Name		      " Terminator "
	      Position		      [460, 231, 480, 249]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "moveUp"
	      Position		      [460, 101, 480, 119]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "moveDown"
	      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		      "endstop"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "obstacle"
	      SrcPort		      1
	      Points		      [120, 0]
	      DstBlock		      " SFunction "
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "driver"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "passenger"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "ticks"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      5
	    }
	    Line {
	      Name		      "moveUp"
	      Labels		      [0, 0]
	      SrcBlock		      " SFunction "
	      SrcPort		      2
	      DstBlock		      "moveUp"
	      DstPort		      1
	    }
	    Line {
	      Name		      "moveDown"
	      Labels		      [0, 0]
	      SrcBlock		      " SFunction "
	      SrcPort		      3
	      DstBlock		      "moveDown"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "detect_obstacle_endstop"
	  Ports			  [2, 3]
	  Position		  [515, 24, 640, 96]
	  Orientation		  "left"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "detect_obstacle_endstop"
	    Location		    [103, 322, 836, 567]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "armature_current"
	      Position		      [40, 113, 70, 127]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "move_up"
	      Position		      [40, 33, 70, 47]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "detect_endstop"
	      Ports		      [1, 1]
	      Position		      [300, 137, 440, 203]
	      ForegroundColor	      "gray"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"detect_endstop"
		Location		[230, 215, 649, 330]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "armature_current"
		  Position		  [95, 43, 125, 57]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Reference
		  Name			  "current_limit"
		  Ports			  [1, 1]
		  Position		  [175, 30, 215, 70]
		  ForegroundColor	  "magenta"
		  SourceBlock		  "simulink/Logic and Bit\nOperations/"
"Compare\nTo Constant"
		  SourceType		  "Compare To Constant"
		  ShowPortLabels	  "on"
		  relop			  ">"
		  const			  "15"
		  LogicOutDataTypeMode	  "uint8"
		}
		Block {
		  BlockType		  DataTypeConversion
		  Name			  "passenger\ncontrol"
		  Position		  [235, 42, 290, 58]
		  NamePlacement		  "alternate"
		  ShowName		  off
		  OutDataTypeMode	  "boolean"
		}
		Block {
		  BlockType		  Outport
		  Name			  "endstop"
		  Position		  [310, 43, 340, 57]
		  ForegroundColor	  "darkGreen"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "passenger\ncontrol"
		  SrcPort		  1
		  DstBlock		  "endstop"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "current_limit"
		  SrcPort		  1
		  DstBlock		  "passenger\ncontrol"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "armature_current"
		  SrcPort		  1
		  DstBlock		  "current_limit"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "detect_obstacle"
	      Ports		      [2, 1]
	      Position		      [305, 24, 440, 86]
	      ForegroundColor	      "gray"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"detect_obstacle"
		Location		[425, 230, 927, 445]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "move_up"
		  Position		  [445, 143, 475, 157]
		  Orientation		  "left"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "armature_current"
		  Position		  [55, 143, 85, 157]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  DiscretePulseGenerator
		  Name			  "10 ms"
		  Ports			  [0, 1]
		  Position		  [294, 80, 326, 100]
		  Orientation		  "down"
		  ForegroundColor	  "magenta"
		  SampleTime		  "10e-3"
		}
		Block {
		  BlockType		  Product
		  Name			  "Multiply"
		  Ports			  [2, 1]
		  Position		  [193, 90, 222, 120]
		  Orientation		  "up"
		  ForegroundColor	  "magenta"
		  Inputs		  "**"
		  InputSameDT		  off
		  OutDataType		  "sfix(8)"
		  OutScaling		  "2^-5"
		  RndMeth		  "Floor"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  UnitDelay
		  Name			  "break\ndependency"
		  Position		  [400, 130, 425, 170]
		  Orientation		  "left"
		  ForegroundColor	  "magenta"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Reference
		  Name			  "current_limit"
		  Ports			  [1, 1]
		  Position		  [145, 130, 185, 170]
		  ForegroundColor	  "magenta"
		  SourceBlock		  "simulink/Logic and Bit\nOperations/"
"Compare\nTo Constant"
		  SourceType		  "Compare To Constant"
		  ShowPortLabels	  "on"
		  relop			  ">"
		  const			  "1.1"
		  LogicOutDataTypeMode	  "uint8"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "delay_detection"
		  Ports			  [1, 1, 0, 1]
		  Position		  [250, 122, 370, 178]
		  Orientation		  "left"
		  TreatAsAtomicUnit	  on
		  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'),'Ho"
"rizontalAl','Center','VerticalAl','Bottom');"
		  MaskSelfModifiable	  on
		  MaskIconFrame		  off
		  MaskIconOpaque	  off
		  MaskIconRotate	  "none"
		  MaskIconUnits		  "autoscale"
		  System {
		    Name		    "delay_detection"
		    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		    "move_up"
		    Position		    [20, 101, 40, 119]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    TriggerPort
		    Name		    "ticks"
		    Ports		    [0, 1]
		    Position		    [20, 136, 40, 154]
		    TriggerType		    "either"
		    ShowOutputPort	    on
		    }
		    Block {
		    BlockType		    Demux
		    Name		    " Demux "
		    Ports		    [1, 1]
		    Position		    [270, 160, 320, 200]
		    Outputs		    "1"
		    }
		    Block {
		    BlockType		    "S-Function"
		    Name		    " SFunction "
		    Tag			    "Stateflow S-Function powerwindow0"
"4 4"
		    Ports		    [2, 2]
		    Position		    [180, 100, 230, 160]
		    FunctionName	    "sf_sfun"
		    PortCounts		    "[2 2]"
		    Port {
		    PortNumber		    2
		    Name		    "detect"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		    }
		    }
		    Block {
		    BlockType		    Terminator
		    Name		    " Terminator "
		    Position		    [460, 171, 480, 189]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "detect"
		    Position		    [460, 101, 480, 119]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    }
		    Line {
		    SrcBlock		    " SFunction "
		    SrcPort		    1
		    Points		    [0, 65]
		    DstBlock		    " Demux "
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    " Demux "
		    SrcPort		    1
		    DstBlock		    " Terminator "
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "move_up"
		    SrcPort		    1
		    DstBlock		    " SFunction "
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "ticks"
		    SrcPort		    1
		    DstBlock		    " SFunction "
		    DstPort		    2
		    }
		    Line {
		    Name		    "detect"
		    Labels		    [0, 0]
		    SrcBlock		    " SFunction "
		    SrcPort		    2
		    DstBlock		    "detect"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  DataTypeConversion
		  Name			  "passenger\ncontrol"
		  Position		  [182, 55, 238, 70]
		  Orientation		  "up"
		  ForegroundColor	  "magenta"
		  NamePlacement		  "alternate"
		  ShowName		  off
		  OutDataTypeMode	  "boolean"
		}
		Block {
		  BlockType		  Outport
		  Name			  "obstacle"
		  Position		  [195, 20, 225, 35]
		  Orientation		  "up"
		  ForegroundColor	  "darkGreen"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "passenger\ncontrol"
		  SrcPort		  1
		  DstBlock		  "obstacle"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "break\ndependency"
		  SrcPort		  1
		  DstBlock		  "delay_detection"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "10 ms"
		  SrcPort		  1
		  DstBlock		  "delay_detection"
		  DstPort		  trigger
		}
		Line {
		  SrcBlock		  "Multiply"
		  SrcPort		  1
		  DstBlock		  "passenger\ncontrol"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "move_up"
		  SrcPort		  1
		  DstBlock		  "break\ndependency"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "armature_current"
		  SrcPort		  1
		  DstBlock		  "current_limit"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "delay_detection"
		  SrcPort		  1
		  Points		  [-30, 0]
		  DstBlock		  "Multiply"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "current_limit"
		  SrcPort		  1
		  Points		  [10, 0]
		  DstBlock		  "Multiply"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "either"
	      Ports		      [2, 1]
	      Position		      [500, 96, 530, 129]
	      ForegroundColor	      "darkGreen"
	      Operator		      "OR"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "process_current"
	      Ports		      [1, 1]
	      Position		      [110, 94, 260, 146]
	      ForegroundColor	      "gray"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"process_current"
		Location		[197, 211, 641, 349]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "raw_current"
		  Position		  [25, 48, 55, 62]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "3.5 / (2^(bits-1))"
		  Position		  [90, 36, 165, 74]
		  ForegroundColor	  "gray"
		  Gain			  "0.02734375"
		  ParameterDataTypeMode	  "Inherit via internal rule"
		  ParameterDataType	  "sfix( 8 )"
		  ParameterScaling	  "2^-12"
		  OutDataTypeMode	  "Specify via dialog"
		  OutScaling		  "2^-6"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  Abs
		  Name			  "Abs"
		  Position		  [255, 35, 295, 75]
		  ForegroundColor	  "gray"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  Gain
		  Name			  "gain"
		  Position		  [190, 35, 230, 75]
		  ForegroundColor	  "gray"
		  Gain			  "5"
		  ParameterDataTypeMode	  "Inherit via internal rule"
		  ParameterDataType	  "sfix( 8 )"
		  ParameterScaling	  "2^-4"
		  OutDataTypeMode	  "Specify via dialog"
		  OutScaling		  "2^-5"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  Outport
		  Name			  "processed_current"
		  Position		  [350, 48, 380, 62]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "raw_current"
		  SrcPort		  1
		  DstBlock		  "3.5 / (2^(bits-1))"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Abs"
		  SrcPort		  1
		  DstBlock		  "processed_current"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "gain"
		  SrcPort		  1
		  DstBlock		  "Abs"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "3.5 / (2^(bits-1))"
		  SrcPort		  1
		  DstBlock		  "gain"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "reset"
	      Position		      [555, 108, 585, 122]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "obstacle"
	      Position		      [555, 47, 585, 63]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "endstop"
	      Position		      [555, 163, 585, 177]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "armature_current"
	      SrcPort		      1
	      DstBlock		      "process_current"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "detect_obstacle"
	      SrcPort		      1
	      Points		      [0, 0; 15, 0]
	      Branch {
		Points			[0, 50]
		DstBlock		"either"
		DstPort			1
	      }
	      Branch {
		DstBlock		"obstacle"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "detect_endstop"
	      SrcPort		      1
	      Points		      [0, 0; 15, 0]
	      Branch {
		DstBlock		"endstop"
		DstPort			1
	      }
	      Branch {
		Points			[0, -50]
		DstBlock		"either"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "either"
	      SrcPort		      1
	      DstBlock		      "reset"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "move_up"
	      SrcPort		      1
	      DstBlock		      "detect_obstacle"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "process_current"
	      SrcPort		      1
	      Points		      [15, 0]
	      Branch {
		Points			[0, 50]
		DstBlock		"detect_endstop"
		DstPort			1
	      }
	      Branch {
		Points			[0, -50]
		DstBlock		"detect_obstacle"
		DstPort			2
	      }
	    }
	  }
	}
	Block {
	  BlockType		  From
	  Name			  "driver_reset"
	  Position		  [45, 172, 110, 188]
	  ForegroundColor	  "darkGreen"
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "reset"
	}
	Block {
	  BlockType		  From
	  Name			  "passenger_reset"
	  Position		  [50, 327, 115, 343]
	  ForegroundColor	  "darkGreen"
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "reset"
	}
	Block {
	  BlockType		  Goto
	  Name			  "reset"
	  Position		  [425, 27, 485, 43]
	  Orientation		  "left"
	  ForegroundColor	  "darkGreen"
	  GotoTag		  "reset"
	  TagVisibility		  "local"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "validate_driver"
	  Ports			  [4, 1]
	  Position		  [210, 70, 330, 200]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "validate_driver"
	    Location		    [69, 319, 668, 674]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "neutral"
	      Position		      [75, 58, 105, 72]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "up"
	      Position		      [75, 128, 105, 142]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "down"
	      Position		      [70, 213, 100, 227]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "reset"
	      Position		      [65, 308, 95, 322]
	      ForegroundColor	      "darkGreen"
	      Port		      "4"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      From
	      Name		      "From1"
	      Position		      [45, 242, 105, 258]
	      ForegroundColor	      "darkGreen"
	      CloseFcn		      "tagdialog Close"
	      GotoTag		      "reset"
	    }
	    Block {
	      BlockType		      From
	      Name		      "From2"
	      Position		      [55, 157, 115, 173]
	      ForegroundColor	      "darkGreen"
	      CloseFcn		      "tagdialog Close"
	      GotoTag		      "reset"
	    }
	    Block {
	      BlockType		      Goto
	      Name		      "Goto1"
	      Position		      [135, 307, 195, 323]
	      ForegroundColor	      "darkGreen"
	      GotoTag		      "reset"
	      TagVisibility	      "local"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [3, 1]
	      Position		      [485, 131, 490, 169]
	      ShowName		      off
	      Inputs		      "3"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "check_down"
	      Ports		      [2, 1]
	      Position		      [140, 204, 250, 266]
	      ForegroundColor	      "gray"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"check_down"
		Location		[195, 316, 666, 577]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "action"
		  Position		  [75, 33, 105, 47]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "reset"
		  Position		  [75, 88, 105, 102]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Logic
		  Name			  "allow_action"
		  Ports			  [2, 1]
		  Position		  [230, 51, 260, 84]
		}
		Block {
		  BlockType		  Logic
		  Name			  "overrule"
		  Ports			  [1, 1]
		  Position		  [130, 78, 155, 112]
		  Operator		  "NOT"
		}
		Block {
		  BlockType		  Outport
		  Name			  "checked_action"
		  Position		  [340, 63, 370, 77]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "reset"
		  SrcPort		  1
		  DstBlock		  "overrule"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "allow_action"
		  SrcPort		  1
		  DstBlock		  "checked_action"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "action"
		  SrcPort		  1
		  Points		  [75, 0; 0, 20]
		  DstBlock		  "allow_action"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "overrule"
		  SrcPort		  1
		  Points		  [25, 0; 0, -20]
		  DstBlock		  "allow_action"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "check_up"
	      Ports		      [2, 1]
	      Position		      [140, 119, 250, 181]
	      ForegroundColor	      "gray"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"check_up"
		Location		[195, 316, 666, 577]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "action"
		  Position		  [75, 33, 105, 47]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "reset"
		  Position		  [75, 88, 105, 102]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Logic
		  Name			  "allow_action"
		  Ports			  [2, 1]
		  Position		  [230, 51, 260, 84]
		}
		Block {
		  BlockType		  Logic
		  Name			  "overrule"
		  Ports			  [1, 1]
		  Position		  [130, 78, 155, 112]
		  Operator		  "NOT"
		}
		Block {
		  BlockType		  Outport
		  Name			  "checked_action"
		  Position		  [340, 63, 370, 77]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "overrule"
		  SrcPort		  1
		  Points		  [25, 0; 0, -20]
		  DstBlock		  "allow_action"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "action"
		  SrcPort		  1
		  Points		  [75, 0; 0, 20]
		  DstBlock		  "allow_action"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "allow_action"
		  SrcPort		  1
		  DstBlock		  "checked_action"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "reset"
		  SrcPort		  1
		  DstBlock		  "overrule"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "mutually_exclusive"
	      Ports		      [3, 3]
	      Position		      [315, 23, 435, 277]
	      ForegroundColor	      "gray"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"mutually_exclusive"
		Location		[382, 147, 914, 456]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "neutral"
		  Position		  [30, 28, 60, 42]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "up"
		  Position		  [30, 128, 60, 142]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "down"
		  Position		  [25, 198, 55, 212]
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Logic
		  Name			  "default_neutral"
		  Ports			  [2, 1]
		  Position		  [370, 36, 400, 69]
		  ForegroundColor	  "darkGreen"
		  Operator		  "OR"
		}
		Block {
		  BlockType		  Logic
		  Name			  "neutral_after_up"
		  Ports			  [2, 1]
		  Position		  [285, 26, 315, 59]
		  ForegroundColor	  "darkGreen"
		}
		Block {
		  BlockType		  Logic
		  Name			  "not_down"
		  Ports			  [1, 1]
		  Position		  [90, 188, 120, 222]
		  ForegroundColor	  "darkGreen"
		  Operator		  "NOT"
		}
		Block {
		  BlockType		  Logic
		  Name			  "not_up"
		  Ports			  [1, 1]
		  Position		  [225, 73, 255, 107]
		  ForegroundColor	  "darkGreen"
		  Operator		  "NOT"
		}
		Block {
		  BlockType		  Logic
		  Name			  "not_up1"
		  Ports			  [1, 1]
		  Position		  [285, 193, 315, 227]
		  ForegroundColor	  "darkGreen"
		  Operator		  "NOT"
		}
		Block {
		  BlockType		  Logic
		  Name			  "up_after_down"
		  Ports			  [2, 1]
		  Position		  [170, 126, 200, 159]
		  ForegroundColor	  "darkGreen"
		}
		Block {
		  BlockType		  Logic
		  Name			  "up_after_down1"
		  Ports			  [2, 1]
		  Position		  [215, 191, 245, 224]
		  ForegroundColor	  "darkGreen"
		  Operator		  "OR"
		}
		Block {
		  BlockType		  Outport
		  Name			  "validated_neutral"
		  Position		  [465, 48, 495, 62]
		  ForegroundColor	  "blue"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Block {
		  BlockType		  Outport
		  Name			  "validated_up"
		  Position		  [420, 138, 450, 152]
		  ForegroundColor	  "blue"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Block {
		  BlockType		  Outport
		  Name			  "validated_down"
		  Position		  [420, 238, 450, 252]
		  ForegroundColor	  "blue"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "not_down"
		  SrcPort		  1
		  Points		  [15, 0; 0, -55]
		  DstBlock		  "up_after_down"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "up_after_down"
		  SrcPort		  1
		  Points		  [0, 0]
		  Branch {
		    Points		    [0, -55]
		    DstBlock		    "not_up"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "validated_up"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "not_up"
		  SrcPort		  1
		  Points		  [5, 0; 0, -40]
		  DstBlock		  "neutral_after_up"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "down"
		  SrcPort		  1
		  Points		  [5, 0]
		  Branch {
		    DstBlock		    "not_down"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 35]
		    Branch {
		    Points		    [105, 0; 0, -25]
		    DstBlock		    "up_after_down1"
		    DstPort		    2
		    }
		    Branch {
		    Points		    [0, 5]
		    DstBlock		    "validated_down"
		    DstPort		    1
		    }
		  }
		}
		Line {
		  SrcBlock		  "neutral"
		  SrcPort		  1
		  DstBlock		  "neutral_after_up"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "up"
		  SrcPort		  1
		  Points		  [50, 0]
		  Branch {
		    DstBlock		    "up_after_down"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [-5, 0; 0, 50; 90, 0]
		    DstBlock		    "up_after_down1"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "up_after_down1"
		  SrcPort		  1
		  DstBlock		  "not_up1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "neutral_after_up"
		  SrcPort		  1
		  DstBlock		  "default_neutral"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "default_neutral"
		  SrcPort		  1
		  DstBlock		  "validated_neutral"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "not_up1"
		  SrcPort		  1
		  Points		  [25, 0; 0, -150]
		  DstBlock		  "default_neutral"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "neutral_up_down"
	      Position		      [530, 143, 560, 157]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "neutral_up_down"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "reset"
	      SrcPort		      1
	      DstBlock		      "Goto1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "From1"
	      SrcPort		      1
	      DstBlock		      "check_down"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "From2"
	      SrcPort		      1
	      DstBlock		      "check_up"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "check_up"
	      SrcPort		      1
	      DstBlock		      "mutually_exclusive"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "neutral"
	      SrcPort		      1
	      DstBlock		      "mutually_exclusive"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "up"
	      SrcPort		      1
	      DstBlock		      "check_up"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "down"
	      SrcPort		      1
	      DstBlock		      "check_down"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "mutually_exclusive"
	      SrcPort		      1
	      Points		      [25, 0; 0, 75]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "mutually_exclusive"
	      SrcPort		      2
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "mutually_exclusive"
	      SrcPort		      3
	      Points		      [20, 0; 0, -75]
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "check_down"
	      SrcPort		      1
	      DstBlock		      "mutually_exclusive"
	      DstPort		      3
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "validate_passenger"
	  Ports			  [4, 1]
	  Position		  [210, 225, 330, 355]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "validate_passenger"
	    Location		    [69, 319, 668, 674]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "neutral"
	      Position		      [75, 58, 105, 72]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "up"
	      Position		      [75, 128, 105, 142]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "down"
	      Position		      [70, 213, 100, 227]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "reset"
	      Position		      [65, 308, 95, 322]
	      ForegroundColor	      "darkGreen"
	      Port		      "4"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      From
	      Name		      "From1"
	      Position		      [45, 242, 105, 258]
	      ForegroundColor	      "darkGreen"
	      CloseFcn		      "tagdialog Close"
	      GotoTag		      "reset"
	    }
	    Block {
	      BlockType		      From
	      Name		      "From2"
	      Position		      [55, 157, 115, 173]
	      ForegroundColor	      "darkGreen"
	      CloseFcn		      "tagdialog Close"
	      GotoTag		      "reset"
	    }
	    Block {
	      BlockType		      Goto
	      Name		      "Goto1"
	      Position		      [135, 307, 195, 323]
	      ForegroundColor	      "darkGreen"
	      GotoTag		      "reset"
	      TagVisibility	      "local"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [3, 1]
	      Position		      [485, 131, 490, 169]
	      ShowName		      off
	      Inputs		      "3"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "check_down"
	      Ports		      [2, 1]
	      Position		      [140, 204, 250, 266]
	      ForegroundColor	      "gray"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"check_down"
		Location		[195, 316, 666, 577]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "action"
		  Position		  [75, 33, 105, 47]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "reset"
		  Position		  [75, 88, 105, 102]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Logic
		  Name			  "allow_action"
		  Ports			  [2, 1]
		  Position		  [230, 51, 260, 84]
		}
		Block {
		  BlockType		  Logic
		  Name			  "overrule"
		  Ports			  [1, 1]
		  Position		  [130, 78, 155, 112]
		  Operator		  "NOT"
		}
		Block {
		  BlockType		  Outport
		  Name			  "checked_action"
		  Position		  [340, 63, 370, 77]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "reset"
		  SrcPort		  1
		  DstBlock		  "overrule"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "allow_action"
		  SrcPort		  1
		  DstBlock		  "checked_action"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "action"
		  SrcPort		  1
		  Points		  [75, 0; 0, 20]
		  DstBlock		  "allow_action"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "overrule"
		  SrcPort		  1
		  Points		  [25, 0; 0, -20]
		  DstBlock		  "allow_action"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "check_up"
	      Ports		      [2, 1]
	      Position		      [140, 119, 250, 181]
	      ForegroundColor	      "gray"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"check_up"
		Location		[195, 316, 666, 577]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "action"
		  Position		  [75, 33, 105, 47]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "reset"
		  Position		  [75, 88, 105, 102]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Logic
		  Name			  "allow_action"
		  Ports			  [2, 1]
		  Position		  [230, 51, 260, 84]
		}
		Block {
		  BlockType		  Logic
		  Name			  "overrule"
		  Ports			  [1, 1]
		  Position		  [130, 78, 155, 112]
		  Operator		  "NOT"
		}
		Block {
		  BlockType		  Outport
		  Name			  "checked_action"
		  Position		  [340, 63, 370, 77]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "overrule"
		  SrcPort		  1
		  Points		  [25, 0; 0, -20]
		  DstBlock		  "allow_action"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "action"
		  SrcPort		  1
		  Points		  [75, 0; 0, 20]
		  DstBlock		  "allow_action"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "allow_action"
		  SrcPort		  1
		  DstBlock		  "checked_action"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "reset"
		  SrcPort		  1
		  DstBlock		  "overrule"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "mutually_exclusive"
	      Ports		      [3, 3]
	      Position		      [315, 23, 435, 277]
	      ForegroundColor	      "gray"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"mutually_exclusive"
		Location		[382, 147, 914, 456]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "neutral"
		  Position		  [30, 28, 60, 42]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "up"
		  Position		  [30, 128, 60, 142]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "down"
		  Position		  [25, 198, 55, 212]
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Logic
		  Name			  "default_neutral"
		  Ports			  [2, 1]
		  Position		  [370, 36, 400, 69]
		  ForegroundColor	  "darkGreen"
		  Operator		  "OR"
		}
		Block {
		  BlockType		  Logic
		  Name			  "neutral_after_up"
		  Ports			  [2, 1]
		  Position		  [285, 26, 315, 59]
		  ForegroundColor	  "darkGreen"
		}
		Block {
		  BlockType		  Logic
		  Name			  "not_down"
		  Ports			  [1, 1]
		  Position		  [90, 188, 120, 222]
		  ForegroundColor	  "darkGreen"
		  Operator		  "NOT"
		}
		Block {
		  BlockType		  Logic
		  Name			  "not_up"
		  Ports			  [1, 1]
		  Position		  [225, 73, 255, 107]
		  ForegroundColor	  "darkGreen"
		  Operator		  "NOT"
		}
		Block {
		  BlockType		  Logic
		  Name			  "not_up1"
		  Ports			  [1, 1]
		  Position		  [285, 193, 315, 227]
		  ForegroundColor	  "darkGreen"
		  Operator		  "NOT"
		}
		Block {
		  BlockType		  Logic
		  Name			  "up_after_down"
		  Ports			  [2, 1]
		  Position		  [170, 126, 200, 159]
		  ForegroundColor	  "darkGreen"
		}
		Block {
		  BlockType		  Logic
		  Name			  "up_after_down1"
		  Ports			  [2, 1]
		  Position		  [215, 191, 245, 224]
		  ForegroundColor	  "darkGreen"
		  Operator		  "OR"
		}
		Block {
		  BlockType		  Outport
		  Name			  "validated_neutral"
		  Position		  [465, 48, 495, 62]
		  ForegroundColor	  "blue"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Block {
		  BlockType		  Outport
		  Name			  "validated_up"
		  Position		  [420, 138, 450, 152]
		  ForegroundColor	  "blue"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Block {
		  BlockType		  Outport
		  Name			  "validated_down"
		  Position		  [420, 238, 450, 252]
		  ForegroundColor	  "blue"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "not_down"
		  SrcPort		  1
		  Points		  [15, 0; 0, -55]
		  DstBlock		  "up_after_down"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "up_after_down"
		  SrcPort		  1
		  Points		  [0, 0]
		  Branch {
		    Points		    [0, -55]
		    DstBlock		    "not_up"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "validated_up"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "not_up"
		  SrcPort		  1
		  Points		  [5, 0; 0, -40]
		  DstBlock		  "neutral_after_up"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "down"
		  SrcPort		  1
		  Points		  [5, 0]
		  Branch {
		    DstBlock		    "not_down"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 35]
		    Branch {
		    Points		    [105, 0; 0, -25]
		    DstBlock		    "up_after_down1"
		    DstPort		    2
		    }
		    Branch {
		    Points		    [0, 5]
		    DstBlock		    "validated_down"
		    DstPort		    1
		    }
		  }
		}
		Line {
		  SrcBlock		  "neutral"
		  SrcPort		  1
		  DstBlock		  "neutral_after_up"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "up"
		  SrcPort		  1
		  Points		  [50, 0]
		  Branch {
		    DstBlock		    "up_after_down"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [-5, 0; 0, 50; 90, 0]
		    DstBlock		    "up_after_down1"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "up_after_down1"
		  SrcPort		  1
		  DstBlock		  "not_up1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "neutral_after_up"
		  SrcPort		  1
		  DstBlock		  "default_neutral"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "default_neutral"
		  SrcPort		  1
		  DstBlock		  "validated_neutral"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "not_up1"
		  SrcPort		  1
		  Points		  [25, 0; 0, -150]
		  DstBlock		  "default_neutral"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "neutral_up_down"
	      Position		      [530, 143, 560, 157]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "neutral_up_down"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "reset"
	      SrcPort		      1
	      DstBlock		      "Goto1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "From1"
	      SrcPort		      1
	      DstBlock		      "check_down"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "From2"
	      SrcPort		      1
	      DstBlock		      "check_up"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "check_up"
	      SrcPort		      1
	      DstBlock		      "mutually_exclusive"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "neutral"
	      SrcPort		      1
	      DstBlock		      "mutually_exclusive"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "up"
	      SrcPort		      1
	      DstBlock		      "check_up"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "down"
	      SrcPort		      1
	      DstBlock		      "check_down"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "mutually_exclusive"
	      SrcPort		      1
	      Points		      [25, 0; 0, 75]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "mutually_exclusive"
	      SrcPort		      2
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "mutually_exclusive"
	      SrcPort		      3
	      Points		      [20, 0; 0, -75]
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "check_down"
	      SrcPort		      1
	      DstBlock		      "mutually_exclusive"
	      DstPort		      3
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "move_up"
	  Position		  [685, 158, 715, 172]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "move_down"
	  Position		  [685, 208, 715, 222]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "detect_obstacle_endstop"
	  SrcPort		  2
	  Points		  [-165, 0; 0, 115]
	  DstBlock		  "control"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "detect_obstacle_endstop"
	  SrcPort		  3
	  Points		  [-155, 0]
	  DstBlock		  "control"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "detect_obstacle_endstop"
	  SrcPort		  1
	  DstBlock		  "reset"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "armature_current"
	  SrcPort		  1
	  DstBlock		  "detect_obstacle_endstop"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "10 ms"
	  SrcPort		  1
	  DstBlock		  "control"
	  DstPort		  trigger
	}
	Line {
	  SrcBlock		  "control"
	  SrcPort		  1
	  Points		  [145, 0]
	  Branch {
	    DstBlock		    "move_up"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "detect_obstacle_endstop"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "control"
	  SrcPort		  2
	  DstBlock		  "move_down"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "driver_neutral"
	  SrcPort		  1
	  DstBlock		  "validate_driver"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "driver_up"
	  SrcPort		  1
	  DstBlock		  "validate_driver"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "driver_down"
	  SrcPort		  1
	  DstBlock		  "validate_driver"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "driver_reset"
	  SrcPort		  1
	  DstBlock		  "validate_driver"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "passenger_neutral"
	  SrcPort		  1
	  DstBlock		  "validate_passenger"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "passenger_up"
	  SrcPort		  1
	  DstBlock		  "validate_passenger"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "passenger_down"
	  SrcPort		  1
	  DstBlock		  "validate_passenger"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "passenger_reset"
	  SrcPort		  1
	  DstBlock		  "validate_passenger"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "validate_driver"
	  SrcPort		  1
	  Points		  [0, 65]
	  DstBlock		  "control"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "validate_passenger"
	  SrcPort		  1
	  Points		  [10, 0; 0, -65]
	  DstBlock		  "control"
	  DstPort		  4
	}
      }
    }
    Block {
      BlockType		      Constant
      Name		      "present"
      Position		      [425, 243, 450, 257]
      NamePlacement	      "alternate"
    }
    Block {
      BlockType		      SubSystem
      Name		      "window_system"
      Ports		      [2, 4]
      Position		      [365, 28, 505, 207]
      AncestorBlock	      "powerwindowlibphys/detailed_window_system"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"window_system"
	Location		[148, 112, 737, 379]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "move_up"
	  Position		  [25, 128, 55, 142]
	  NamePlacement		  "alternate"
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "move_down"
	  Position		  [25, 168, 55, 182]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "GND"
	  Ports			  [0, 0, 0, 0, 0, 1]
	  Position		  [64, 90, 96, 120]
	  Orientation		  "down"
	  ForegroundColor	  "orange"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  SourceBlock		  "powerlib/Elements/Ground"
	  SourceType		  "Ground"
	  PhysicalDomain	  "powersysdomain"
	  SubClassName		  "unknown"
	  LeftPortType		  "p1"
	  RightPortType		  "p1"
	  LConnTagsString	  "a"
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator"
	  Position		  [480, 161, 490, 169]
	  ShowName		  off
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator1"
	  Position		  [480, 121, 490, 129]
	  ShowName		  off
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator2"
	  Position		  [480, 141, 490, 149]
	  ShowName		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Vbattery 12[V]"
	  Ports			  [0, 0, 0, 0, 0, 1, 1]
	  Position		  [105, 50, 125, 90]
	  ForegroundColor	  "orange"
	  NamePlacement		  "alternate"
	  SourceBlock		  "powerlib/Electrical\nSources/DC Voltage Sou"
"rce"
	  SourceType		  "DC Voltage Source"
	  ShowPortLabels	  "on"
	  Amplitude		  "12"
	  Measurements		  "None"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "process"
	  Ports			  [0, 2, 0, 0, 0, 3]
	  Position		  [355, 114, 430, 236]
	  ForegroundColor	  "red"
	  AncestorBlock		  "powerwindowlibphys/process"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "process"
	    Location		    [34, 177, 376, 384]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      SubSystem
	      Name		      "actuator"
	      Ports		      [1, 2, 0, 0, 0, 3]
	      Position		      [110, 29, 175, 181]
	      ForegroundColor	      "red"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"actuator"
		Location		[261, 179, 742, 492]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "tL"
		  Position		  [30, 17, 60, 33]
		  ForegroundColor	  "red"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "DC Machine"
		  Ports			  [1, 1, 0, 0, 0, 2, 2]
		  Position		  [230, 14, 305, 136]
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  MaskType		  "DC machine"
		  MaskDescription	  "This block implements a separately "
"excited DC machine. Access is provided  to the field connections so that the "
"machine can be used as a shunt-connected or a series-connected  DC machine. "
"\n\nInput 1 and output 1 : positive and negative armature terminals\nInput 2 "
"and output 2 : positive and negative field terminals\nInput 3    : Load torqu"
"e \nOutput 3 : Simulink measurement output [ w Ia If Te ]"
		  MaskHelp		  "web(psbhelp)"
		  MaskPromptString	  "Armature resistance and inductance "
"[Ra (ohms) La (H) ]|Field resistance and inductance [Rf (ohms) Lf (H) ]|Field"
"-armature mutual inductance Laf (H) :|Total inertia J (kg.m^2)|Viscous fricti"
"on coefficient Bm (N.m.s)|Coulomb friction torque Tf (N.m)|Initial speed (rad"
"/s) :|Output type"
		  MaskStyleString	  "edit,edit,edit,edit,edit,edit,edit,"
"edit"
		  MaskTunableValueString  "on,on,on,on,on,on,on,on"
		  MaskCallbackString	  "|||||||"
		  MaskEnableString	  "on,on,on,on,on,on,on,on"
		  MaskVisibilityString	  "on,on,on,on,on,on,on,off"
		  MaskToolTipString	  "on,on,on,on,on,on,on,on"
		  MaskVarAliasString	  ",,,,,,,"
		  MaskVariables		  "RLa=@1;RLf=@2;Laf=@3;J=@4;Bm=@5;Tf="
"@6;w0=@7;PSBOutputType=@8;"
		  MaskInitialization	  "Ra=RLa(1); La=RLa(2);\nRf=RLf(1); L"
"f=RLf(2);\n\n\n\n\n\n"
		  MaskDisplay		  "plot(-80,-80,80,80,[0,9,18,24,29,30"
",29,24,18,9,0,-9,-18,-24,-29,-30,-29,-24,-18,-9,0],[30,29,24,18,9,0,-9,-18,-2"
"4,-29,-30,-29,-24,-18,-9,0,9,18,24,29,30],[-29,-35,-35,-29],[-8,-8,8,8],[29,3"
"5,35,29],[-8,-8,8,8],[-35,-55],[0,0],[35,55],[0,0],[-78,-50,-50,-49,-45,-39,-"
"33,-26,-21,-18,-17,-19,-22,-22,-26,-27,-25,-22,-16,-9,-3,2,6,6,4,1,1,-3,-4,-2"
",2,7,14,20,26,29,30,28,24,24,21,20,21,25,31,37,44,49,50,50,50,78]*.7,[58,58,5"
"7.2,49.2,42.8,38.8,38,39.6,44.4,51.6,59.6,67.6,72.4,72.4,65.2,57.2,49.2,42.8,"
"38.8,38,39.6,44.4,51.6,59.6,67.6,72.4,72.4,65.2,57.2,49.2,42.8,38.8,38,39.6,4"
"4.4,51.6,59.6,67.6,72.4,72.4,65.2,57.2,49.2,42.8,38.8,38,39.6,44.4,51.6,58,58"
",58]*.6+15 );\n"
		  MaskIconFrame		  on
		  MaskIconOpaque	  off
		  MaskIconRotate	  "none"
		  MaskIconUnits		  "autoscale"
		  MaskValueString	  "[0.15  0.036]|[1.5 3]|1|0.085|5|0|0"
"|110"
		  MaskTabNameString	  ",,,,,,,"
		  System {
		    Name		    "DC Machine"
		    Location		    [70, 204, 724, 614]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "TL"
		    Position		    [145, 45, 165, 65]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Coulomb (Tf) &\nViscous ( Bm*w) "
"\nFriction Torques"
		    Ports		    [1, 1]
		    Position		    [375, 139, 400, 161]
		    Orientation		    "left"
		    SourceBlock		    "simulink/Discontinuities/Coulomb "
"&\nViscous Friction"
		    SourceType		    "Coulombic and Viscous Friction"
		    ShowPortLabels	    "on"
		    offset		    "Tf"
		    gain		    "Bm"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "E_FCEM"
		    Ports		    [1, 0, 0, 0, 0, 1, 1]
		    Position		    [125, 211, 155, 244]
		    Orientation		    "left"
		    NamePlacement	    "alternate"
		    SourceBlock		    "powerlib/Electrical\nSources/Cont"
"rolled Voltage Source"
		    SourceType		    "AC"
		    ShowPortLabels	    "on"
		    Initialize		    "on"
		    Amplitude		    "0"
		    Phase		    "0"
		    Frequency		    "0"
		    Measurements	    "None"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain2"
		    Position		    [370, 80, 400, 110]
		    ShowName		    off
		    Gain		    "1/J"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Ia_mot"
		    Ports		    [0, 1, 0, 0, 0, 1, 1]
		    Position		    [55, 78, 80, 102]
		    SourceBlock		    "powerlib/Measurements/Current Mea"
"surement"
		    SourceType		    "Current Measurement"
		    ShowPortLabels	    "on"
		    PhasorSimulation	    "off"
		    OutputType		    "Magnitude"
		    PSBequivalent	    "0"
		    Port {
		    PortNumber		    1
		    Name		    "Ia"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		    }
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [420, 73, 450, 117]
		    NamePlacement	    "alternate"
		    InitialCondition	    "w0"
		    Port {
		    PortNumber		    1
		    Name		    "w"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		    }
		    }
		    Block {
		    BlockType		    Mux
		    Name		    "Mux"
		    Ports		    [4, 1]
		    Position		    [580, 86, 600, 164]
		    }
		    Block {
		    BlockType		    Product
		    Name		    "Product"
		    Ports		    [2, 1]
		    Position		    [175, 201, 200, 234]
		    Orientation		    "left"
		    ShowName		    off
		    RndMeth		    "Floor"
		    }
		    Block {
		    BlockType		    Product
		    Name		    "Product1"
		    Ports		    [2, 1]
		    Position		    [250, 77, 275, 108]
		    ShowName		    off
		    RndMeth		    "Floor"
		    Port {
		    PortNumber		    1
		    Name		    "Te"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		    }
		    }
		    Block {
		    BlockType		    Product
		    Name		    "Product2"
		    Ports		    [2, 1]
		    Position		    [240, 32, 260, 63]
		    ShowName		    off
		    RndMeth		    "Floor"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Ra\n\nLa"
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [85, 140, 115, 180]
		    Orientation		    "down"
		    NamePlacement	    "alternate"
		    SourceBlock		    "powerlib/Elements/Series RLC Bran"
"ch"
		    SourceType		    "Series RLC Branch"
		    PhysicalDomain	    "powersysdomain"
		    SubClassName	    "unknown"
		    LeftPortType	    "p1"
		    RightPortType	    "p1"
		    LConnTagsString	    "__new0"
		    RConnTagsString	    "__new0"
		    Resistance		    "Ra"
		    Inductance		    "La"
		    Capacitance		    "inf"
		    Measurements	    "None"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Rf\n\nLf"
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [100, 325, 130, 365]
		    Orientation		    "down"
		    NamePlacement	    "alternate"
		    SourceBlock		    "powerlib/Elements/Series RLC Bran"
"ch"
		    SourceType		    "Series RLC Branch"
		    PhysicalDomain	    "powersysdomain"
		    SubClassName	    "unknown"
		    LeftPortType	    "p1"
		    RightPortType	    "p1"
		    LConnTagsString	    "__new0"
		    RConnTagsString	    "__new0"
		    Resistance		    "Rf"
		    Inductance		    "Lf"
		    Capacitance		    "inf"
		    Measurements	    "None"
		    }
		    Block {
		    BlockType		    Signum
		    Name		    "Sign"
		    Position		    [365, 15, 390, 35]
		    Orientation		    "left"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [3, 1]
		    Position		    [330, 61, 350, 129]
		    ShowName		    off
		    Inputs		    "-+-"
		    }
		    Block {
		    BlockType		    TransferFcn
		    Name		    "Transfer Fcn2"
		    Position		    [165, 270, 220, 310]
		    ShowName		    off
		    Numerator		    "[Laf]"
		    Denominator		    "[20e-6 1]"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "if"
		    Ports		    [0, 1, 0, 0, 0, 1, 1]
		    Position		    [75, 283, 100, 307]
		    SourceBlock		    "powerlib/Measurements/Current Mea"
"surement"
		    SourceType		    "Current Measurement"
		    ShowPortLabels	    "on"
		    PhasorSimulation	    "off"
		    OutputType		    "Magnitude"
		    PSBequivalent	    "0"
		    Port {
		    PortNumber		    1
		    Name		    "If"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		    }
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "F+"
		    Position		    [15, 285, 35, 305]
		    Port		    "1"
		    Side		    "Left"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "A+"
		    Position		    [15, 80, 35, 100]
		    Port		    "2"
		    Side		    "Left"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "F-"
		    Position		    [20, 370, 40, 390]
		    Port		    "3"
		    Side		    "Right"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "A-"
		    Position		    [15, 245, 35, 265]
		    Port		    "4"
		    Side		    "Right"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "m"
		    Position		    [625, 115, 645, 135]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Coulomb (Tf) &\nViscous ( Bm*w) "
"\nFriction Torques"
		    SrcPort		    1
		    Points		    [-55, 0]
		    DstBlock		    "Sum"
		    DstPort		    3
		    }
		    Line {
		    SrcBlock		    "Transfer Fcn2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -65]
		    Branch {
		    DstBlock		    "Product"
		    DstPort		    2
		    }
		    Branch {
		    DstBlock		    "Product1"
		    DstPort		    2
		    }
		    }
		    Line {
		    SrcBlock		    "Mux"
		    SrcPort		    1
		    DstBlock		    "m"
		    DstPort		    1
		    }
		    Line {
		    Name		    "Te"
		    FontSize		    12
		    Labels		    [1, 1]
		    SrcBlock		    "Product1"
		    SrcPort		    1
		    Points		    [25, 0]
		    Branch {
		    Labels		    [-1, 1]
		    Points		    [0, 160; 220, 0; 0, -100]
		    DstBlock		    "Mux"
		    DstPort		    4
		    }
		    Branch {
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		    }
		    Line {
		    Name		    "w"
		    FontSize		    12
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [15, 0]
		    Branch {
		    Points		    [0, -70]
		    DstBlock		    "Sign"
		    DstPort		    1
		    }
		    Branch {
		    Labels		    [-1, 1]
		    DstBlock		    "Mux"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 55]
		    Branch {
		    Labels		    [-1, 0]
		    Points		    [0, 60]
		    DstBlock		    "Product"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Coulomb (Tf) &\nViscous ( Bm*w) "
"\nFriction Torques"
		    DstPort		    1
		    }
		    }
		    }
		    Line {
		    SrcBlock		    "Gain2"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "Gain2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Sign"
		    SrcPort		    1
		    Points		    [-135, 0]
		    DstBlock		    "Product2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "TL"
		    SrcPort		    1
		    DstBlock		    "Product2"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "Product2"
		    SrcPort		    1
		    Points		    [50, 0]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Product"
		    SrcPort		    1
		    DstBlock		    "E_FCEM"
		    DstPort		    1
		    }
		    Line {
		    Name		    "If"
		    Labels		    [0, 0; 1, 0]
		    SrcBlock		    "if"
		    SrcPort		    1
		    Points		    [40, 0]
		    Branch {
		    Points		    [0, 35; 360, 0; 0, -190]
		    DstBlock		    "Mux"
		    DstPort		    3
		    }
		    Branch {
		    Labels		    [1, 0]
		    DstBlock		    "Transfer Fcn2"
		    DstPort		    1
		    }
		    }
		    Line {
		    Name		    "Ia"
		    Labels		    [0, 0; 1, 0]
		    SrcBlock		    "Ia_mot"
		    SrcPort		    1
		    Points		    [20, 0]
		    Branch {
		    Points		    [0, -80; 400, 0; 0, 110]
		    DstBlock		    "Mux"
		    DstPort		    2
		    }
		    Branch {
		    Labels		    [1, 0]
		    DstBlock		    "Product1"
		    DstPort		    1
		    }
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Rf\n\nLf"
		    SrcPort		    RConn1
		    Points		    [0, 0]
		    DstBlock		    "F-"
		    DstPort		    RConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "E_FCEM"
		    SrcPort		    LConn1
		    Points		    [0, 20]
		    DstBlock		    "A-"
		    DstPort		    RConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "if"
		    SrcPort		    RConn1
		    Points		    [0, 0]
		    DstBlock		    "Rf\n\nLf"
		    DstPort		    LConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "F+"
		    SrcPort		    RConn1
		    Points		    [0, 0]
		    DstBlock		    "if"
		    DstPort		    LConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Ia_mot"
		    SrcPort		    RConn1
		    Points		    [5, 0]
		    DstBlock		    "Ra\n\nLa"
		    DstPort		    LConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "A+"
		    SrcPort		    RConn1
		    Points		    [0, 0]
		    DstBlock		    "Ia_mot"
		    DstPort		    LConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Ra\n\nLa"
		    SrcPort		    RConn1
		    Points		    [0, 35]
		    DstBlock		    "E_FCEM"
		    DstPort		    RConn1
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "Demux"
		  Ports			  [1, 4]
		  Position		  [255, 163, 280, 272]
		  Orientation		  "left"
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "Demux"
		    Location		    [446, 290, 642, 464]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "m"
		    Position		    [25, 58, 55, 72]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Demux
		    Name		    "Demux"
		    Ports		    [1, 4]
		    Position		    [80, 28, 95, 97]
		    ShowName		    off
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "wm"
		    Position		    [120, 13, 150, 27]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Ia"
		    Position		    [120, 43, 150, 57]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "If"
		    Position		    [130, 78, 160, 92]
		    Port		    "3"
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Te"
		    Position		    [120, 118, 150, 132]
		    Port		    "4"
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    }
		    Line {
		    SrcBlock		    "Demux"
		    SrcPort		    4
		    Points		    [5, 0]
		    DstBlock		    "Te"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Demux"
		    SrcPort		    3
		    Points		    [15, 0]
		    DstBlock		    "If"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "m"
		    SrcPort		    1
		    DstBlock		    "Demux"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Demux"
		    SrcPort		    2
		    Points		    [5, 0]
		    DstBlock		    "Ia"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Demux"
		    SrcPort		    1
		    Points		    [5, 0]
		    DstBlock		    "wm"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  Reference
		  Name			  "Ground"
		  Ports			  [0, 0, 0, 0, 0, 1]
		  Position		  [365, 120, 395, 150]
		  Orientation		  "down"
		  ForegroundColor	  "orange"
		  ShowName		  off
		  SourceBlock		  "powerlib/Elements/Ground"
		  SourceType		  "Ground"
		  PhysicalDomain	  "powersysdomain"
		  SubClassName		  "unknown"
		  LeftPortType		  "p1"
		  RightPortType		  "p1"
		  LConnTagsString	  "a"
		}
		Block {
		  BlockType		  Product
		  Name			  "Product2"
		  Ports			  [2, 1]
		  Position		  [145, 17, 165, 48]
		  ShowName		  off
		  RndMeth		  "Floor"
		}
		Block {
		  BlockType		  Signum
		  Name			  "Sign"
		  Position		  [100, 30, 125, 50]
		}
		Block {
		  BlockType		  Terminator
		  Name			  "Terminator2"
		  Position		  [215, 224, 230, 236]
		  Orientation		  "left"
		  ShowName		  off
		}
		Block {
		  BlockType		  Terminator
		  Name			  "Terminator3"
		  Position		  [215, 249, 230, 261]
		  Orientation		  "left"
		  ShowName		  off
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "Vcc"
		  Position		  [185, 65, 205, 85]
		  Port			  "1"
		  Side			  "Left"
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "A-"
		  Position		  [330, 105, 350, 125]
		  Orientation		  "left"
		  Port			  "2"
		  Side			  "Left"
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "A+"
		  Position		  [185, 105, 205, 125]
		  Port			  "3"
		  Side			  "Left"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Ia"
		  Position		  [185, 198, 215, 212]
		  Orientation		  "left"
		  ForegroundColor	  "red"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Block {
		  BlockType		  Outport
		  Name			  "wL"
		  Position		  [25, 173, 55, 187]
		  Orientation		  "left"
		  ForegroundColor	  "red"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "Demux"
		  SrcPort		  4
		  DstBlock		  "Terminator3"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux"
		  SrcPort		  3
		  DstBlock		  "Terminator2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "DC Machine"
		  SrcPort		  1
		  Points		  [140, 0; 0, 185]
		  DstBlock		  "Demux"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Sign"
		  SrcPort		  1
		  DstBlock		  "Product2"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "tL"
		  SrcPort		  1
		  DstBlock		  "Product2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux"
		  SrcPort		  2
		  DstBlock		  "Ia"
		  DstPort		  1
		}
		Line {
		  LineType		  "Connection"
		  SrcBlock		  "Vcc"
		  SrcPort		  RConn1
		  Points		  [0, 0]
		  DstBlock		  "DC Machine"
		  DstPort		  LConn1
		}
		Line {
		  LineType		  "Connection"
		  SrcBlock		  "DC Machine"
		  SrcPort		  LConn2
		  Points		  [0, 0]
		  DstBlock		  "A+"
		  DstPort		  RConn1
		}
		Line {
		  SrcBlock		  "Demux"
		  SrcPort		  1
		  Points		  [0, 0; -165, 0]
		  Branch {
		    DstBlock		    "wL"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Sign"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Product2"
		  SrcPort		  1
		  DstBlock		  "DC Machine"
		  DstPort		  1
		}
		Line {
		  LineType		  "Connection"
		  SrcBlock		  "Ground"
		  SrcPort		  LConn1
		  Points		  [0, -30]
		  DstBlock		  "DC Machine"
		  DstPort		  RConn1
		}
		Line {
		  LineType		  "Connection"
		  SrcBlock		  "DC Machine"
		  SrcPort		  RConn2
		  Points		  [0, 0]
		  DstBlock		  "A-"
		  DstPort		  RConn1
		}
	      }
	    }
	    Block {
	      BlockType		      Scope
	      Name		      "ideal Ia"
	      Ports		      [1]
	      Position		      [205, 54, 235, 86]
	      ForegroundColor	      "gray"
	      Location		      [671, 529, 995, 735]
	      Open		      off
	      NumInputPorts	      "1"
	      List {
		ListType		AxesTitles
		axes1			"%<SignalLabel>"
	      }
	      YMin		      "-7.5"
	      YMax		      "20"
	      SaveName		      "ScopeData4"
	      DataFormat	      "StructureWithTime"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "plant"
	      Ports		      [1, 3]
	      Position		      [190, 113, 245, 177]
	      ForegroundColor	      "red"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"plant"
		Location		[248, 291, 595, 500]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "wi"
		  Position		  [65, 58, 95, 72]
		  ForegroundColor	  "red"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Demux
		  Name			  "Demux1"
		  Ports			  [1, 5]
		  Position		  [290, 43, 295, 147]
		  BackgroundColor	  "black"
		  ShowName		  off
		  Outputs		  "[4, 1, 2, 1, 1]"
		}
		Block {
		  BlockType		  Terminator
		  Name			  "Terminator"
		  Position		  [310, 51, 320, 59]
		  ShowName		  off
		}
		Block {
		  BlockType		  Terminator
		  Name			  "Terminator1"
		  Position		  [310, 91, 320, 99]
		  ShowName		  off
		}
		Block {
		  BlockType		  Terminator
		  Name			  "Terminator2"
		  Position		  [310, 131, 320, 139]
		  ShowName		  off
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "object"
		  Ports			  [2, 1]
		  Position		  [40, 102, 105, 153]
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "object"
		    Location		    [195, 206, 745, 493]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "position"
		    Position		    [20, 47, 50, 63]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "velocity"
		    Position		    [25, 222, 55, 238]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Constant
		    Name		    "Constant1"
		    Position		    [265, 16, 285, 34]
		    ShowName		    off
		    }
		    Block {
		    BlockType		    Constant
		    Name		    "Constant2"
		    Position		    [290, 81, 310, 99]
		    ShowName		    off
		    Value		    "0"
		    }
		    Block {
		    BlockType		    Constant
		    Name		    "Constant3"
		    Position		    [295, 196, 315, 214]
		    ShowName		    off
		    Value		    "0"
		    }
		    Block {
		    BlockType		    Constant
		    Name		    "Constant5"
		    Position		    [80, 59, 115, 81]
		    ShowName		    off
		    Value		    "0.30"
		    }
		    Block {
		    BlockType		    From
		    Name		    "From4"
		    Position		    [85, 15, 180, 35]
		    ShowName		    off
		    CloseFcn		    "tagdialog Close"
		    GotoTag		    "object_present"
		    }
		    Block {
		    BlockType		    Logic
		    Name		    "Logical\nOperator"
		    Ports		    [2, 1]
		    Position		    [220, 42, 250, 73]
		    }
		    Block {
		    BlockType		    MultiPortSwitch
		    Name		    "Multiport\nSwitch"
		    Ports		    [3, 1]
		    Position		    [340, 50, 375, 130]
		    Inputs		    "2"
		    SaturateOnIntegerOverflow off
		    }
		    Block {
		    BlockType		    MultiPortSwitch
		    Name		    "Multiport\nSwitch1"
		    Ports		    [3, 1]
		    Position		    [340, 165, 375, 245]
		    Inputs		    "2"
		    SaturateOnIntegerOverflow off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum1"
		    Ports		    [2, 1]
		    Position		    [295, 55, 315, 75]
		    ShowName		    off
		    IconShape		    "round"
		    Inputs		    "++|"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum2"
		    Ports		    [2, 1]
		    Position		    [155, 105, 175, 125]
		    ShowName		    off
		    IconShape		    "round"
		    Inputs		    "|-+"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum3"
		    Ports		    [2, 1]
		    Position		    [455, 80, 475, 100]
		    ShowName		    off
		    IconShape		    "round"
		    Inputs		    "|++"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "damper"
		    Position		    [405, 190, 435, 220]
		    Gain		    "500"
		    }
		    Block {
		    BlockType		    RelationalOperator
		    Name		    "obstruction1"
		    Position		    [160, 47, 190, 78]
		    Operator		    ">"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "spring"
		    Position		    [400, 75, 430, 105]
		    Gain		    "50"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "torque"
		    Position		    [510, 83, 540, 97]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    }
		    Line {
		    SrcBlock		    "spring"
		    SrcPort		    1
		    DstBlock		    "Sum3"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Sum3"
		    SrcPort		    1
		    DstBlock		    "torque"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "damper"
		    SrcPort		    1
		    Points		    [25, 0]
		    DstBlock		    "Sum3"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "Constant5"
		    SrcPort		    1
		    Points		    [0, 0; 10, 0]
		    Branch {
		    DstBlock		    "obstruction1"
		    DstPort		    2
		    }
		    Branch {
		    Points		    [0, 45]
		    DstBlock		    "Sum2"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Sum1"
		    SrcPort		    1
		    Points		    [0, 0]
		    Branch {
		    DstBlock		    "Multiport\nSwitch"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 115]
		    DstBlock		    "Multiport\nSwitch1"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Constant2"
		    SrcPort		    1
		    DstBlock		    "Multiport\nSwitch"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "Sum2"
		    SrcPort		    1
		    DstBlock		    "Multiport\nSwitch"
		    DstPort		    3
		    }
		    Line {
		    SrcBlock		    "Constant1"
		    SrcPort		    1
		    Points		    [15, 0]
		    DstBlock		    "Sum1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "position"
		    SrcPort		    1
		    Points		    [0, 0; 10, 0]
		    Branch {
		    DstBlock		    "obstruction1"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 85]
		    DstBlock		    "Sum2"
		    DstPort		    2
		    }
		    }
		    Line {
		    SrcBlock		    "Multiport\nSwitch"
		    SrcPort		    1
		    DstBlock		    "spring"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Constant3"
		    SrcPort		    1
		    DstBlock		    "Multiport\nSwitch1"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "velocity"
		    SrcPort		    1
		    DstBlock		    "Multiport\nSwitch1"
		    DstPort		    3
		    }
		    Line {
		    SrcBlock		    "Multiport\nSwitch1"
		    SrcPort		    1
		    DstBlock		    "damper"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "obstruction1"
		    SrcPort		    1
		    DstBlock		    "Logical\nOperator"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "Logical\nOperator"
		    SrcPort		    1
		    Points		    [10, 0; 0, 5]
		    DstBlock		    "Sum1"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "From4"
		    SrcPort		    1
		    Points		    [10, 0; 0, 25]
		    DstBlock		    "Logical\nOperator"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "window"
		  Ports			  [2, 3]
		  Position		  [130, 29, 195, 161]
		  ForegroundColor	  "red"
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "window"
		    Location		    [47, 84, 784, 638]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "wi"
		    Position		    [15, 423, 45, 437]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "Fx"
		    Position		    [15, 498, 45, 512]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "Atomic Subsystem"
		    Ports		    []
		    Position		    [400, 236, 575, 499]
		    ForegroundColor	    "white"
		    ShowName		    off
		    TreatAsAtomicUnit	    on
		    MinAlgLoopOccurrences   off
		    RTWSystemCode	    "Auto"
		    MaskDisplay		    "image(imread('pw_window1c.jpg'))"
		    MaskIconFrame	    on
		    MaskIconOpaque	    on
		    MaskIconRotate	    "none"
		    MaskIconUnits	    "autoscale"
		    System {
		    Name		    "Atomic Subsystem"
		    Location		    [489, 302, 987, 602]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    }
		    }
		    Block {
		    BlockType		    Demux
		    Name		    "Demux1"
		    Ports		    [1, 6]
		    Position		    [580, 194, 585, 266]
		    BackgroundColor	    "black"
		    ShowName		    off
		    Outputs		    "6"
		    }
		    Block {
		    BlockType		    Demux
		    Name		    "Demux2"
		    Ports		    [1, 3]
		    Position		    [115, 324, 120, 396]
		    Orientation		    "left"
		    BackgroundColor	    "black"
		    ShowName		    off
		    Outputs		    "3"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "GND"
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [550, 29, 570, 71]
		    Orientation		    "left"
		    ForegroundColor	    "red"
		    NamePlacement	    "alternate"
		    ShowName		    off
		    UserDataPersistent	    on
		    UserData		    "DataTag0"
		    SourceBlock		    "mblibv1/Bodies/Ground"
		    SourceType		    "msb"
		    ShowPortLabels	    "on"
		    Opaque		    "on"
		    LeftPortType	    "env"
		    RightPortType	    "workingframe"
		    PhysicalDomain	    "Mechanical"
		    DialogClass		    "GroundBlock"
		    ClassName		    "Ground"
		    CoordPosition	    "[10 0 0]"
		    CoordPositionUnits	    "cm"
		    StateVectorMgrId	    "-1"
		    MachineId		    "[0 0]"
		    ShowEnvPort		    "on"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "GND2"
		    Ports		    [0, 0, 0, 0, 0, 0, 1]
		    Position		    [395, 185, 415, 225]
		    Orientation		    "left"
		    ForegroundColor	    "red"
		    ShowName		    off
		    UserDataPersistent	    on
		    UserData		    "DataTag1"
		    SourceBlock		    "mblibv1/Bodies/Ground"
		    SourceType		    "msb"
		    ShowPortLabels	    "on"
		    Opaque		    "on"
		    LeftPortType	    "env"
		    RightPortType	    "workingframe"
		    PhysicalDomain	    "Mechanical"
		    DialogClass		    "GroundBlock"
		    ClassName		    "Ground"
		    CoordPosition	    "[0 0 0]"
		    CoordPositionUnits	    "m"
		    StateVectorMgrId	    "-1"
		    MachineId		    "[0 0]"
		    ShowEnvPort		    "off"
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "Mechanical\nEnvironment"
		    Tag			    "Factory ground"
		    Ports		    [0, 0, 0, 0, 0, 0, 1]
		    Position		    [595, 41, 630, 59]
		    Orientation		    "left"
		    ForegroundColor	    "red"
		    ShowName		    off
		    DialogController	    "MECH.DialogSource"
		    CopyFcn		    "mech_environment_block('CopyFcn',"
" gcbh);"
		    TreatAsAtomicUnit	    off
		    MinAlgLoopOccurrences   off
		    RTWSystemCode	    "Auto"
		    Opaque		    on
		    MaskType		    "Mechanical"
		    MaskDescription	    "Defines the mechanical simulation"
" environment for the machine to which the block is connected: gravity, dimens"
"ionality, analysis mode, constraint solver type, tolerances, linearization, a"
"nd visualization."
		    MaskHelp		    "web(mech_help('environment'))"
		    MaskPromptString	    "PortType|PhysicalDomain|ClassName"
"|DialogTemplateClass|SyncWhenCopied|Gravity|GravityUnits|GravityAsSignal|Dime"
"nsionality|AnalysisType|LinearAssemblyTolerance|LinearAssemblyToleranceUnits|"
"AngularAssemblyTolerance|AngularAssemblyToleranceUnits|ConstraintSolverType|C"
"onstraintRelTolerance|ConstraintAbsTolerance|UseRobustSingularityHandling|Sta"
"tePerturbationType|PerturbationSize|VisualizeMachine"
		    MaskStyleString	    "edit,edit,edit,edit,edit,edit,pop"
"up(km/s^2|m/s^2|cm/s^2|mm/s^2|mi/s^2|ft/s^2|in/s^2),checkbox,popup(2D Only|3D"
" Only|Auto-detect),popup(Forward dynamics|Inverse dynamics|Kinematics|Trimmin"
"g),edit,popup(km|m|cm|mm|mi|ft|in),edit,popup(deg|rad),popup(Stabilizing|Tole"
"rancing|Machine precision),edit,edit,checkbox,popup(Adaptive|Fixed),edit,chec"
"kbox"
		    MaskTunableValueString  "on,on,on,on,on,on,on,on,on,on,on,"
"on,on,on,on,on,on,on,on,on,on"
		    MaskCallbackString	    "||||||||||||||||||||"
		    MaskEnableString	    "on,on,on,on,on,on,on,on,on,on,on,"
"on,on,on,on,on,on,on,on,on,on"
		    MaskVisibilityString    "off,off,off,off,off,on,on,on,on,o"
"n,on,on,on,on,on,on,on,on,on,on,on"
		    MaskToolTipString	    "on,on,on,on,on,on,on,on,on,on,on,"
"on,on,on,on,on,on,on,on,on,on"
		    MaskVarAliasString	    ",,,,,,,,,,,,,,,,,,,,"
		    MaskVariables	    "PortType=&1;PhysicalDomain=&2;Cla"
"ssName=&3;DialogTemplateClass=&4;SyncWhenCopied=&5;Gravity=@6;GravityUnits=&7"
";GravityAsSignal=&8;Dimensionality=&9;AnalysisType=&10;LinearAssemblyToleranc"
"e=@11;LinearAssemblyToleranceUnits=&12;AngularAssemblyTolerance=@13;AngularAs"
"semblyToleranceUnits=&14;ConstraintSolverType=&15;ConstraintRelTolerance=@16;"
"ConstraintAbsTolerance=@17;UseRobustSingularityHandling=&18;StatePerturbation"
"Type=&19;PerturbationSize=@20;VisualizeMachine=&21;"
		    MaskInitialization	    "mech_environment_block('MaskIniti"
"alization', gcbh);"
		    MaskDisplay		    "disp('Env')"
		    MaskSelfModifiable	    on
		    MaskIconFrame	    on
		    MaskIconOpaque	    on
		    MaskIconRotate	    "none"
		    MaskIconUnits	    "pixels"
		    MaskValueString	    "env|Mechanical|Environment|MECH.M"
"achineEnvironment|off|[0 0 0]|m/s^2|off|3D Only|Forward dynamics|1e-3|m|1e-3|"
"rad|Stabilizing|1e-4|1e-4|off|Fixed|1e-5|on"
		    MaskTabNameString	    ",,,,,,,,,,,,,,,,,,,,"
		    System {
		    Name		    "Mechanical\nEnvironment"
		    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		    From
		    Name		    "FROM_BLOCK"
		    Position		    [40, 80, 60, 100]
		    GotoTag		    "sim_mech_tag85b1e66e65c5d388"
		    }
		    Block {
		    BlockType		    Goto
		    Name		    "GOTO_BLOCK"
		    Position		    [80, 40, 100, 60]
		    GotoTag		    "sim_mech_tag85b1e66e65c5d388"
		    TagVisibility	    "global"
		    }
		    Block {
		    BlockType		    Constant
		    Name		    "SOURCE_BLOCK"
		    Position		    [40, 40, 60, 60]
		    Value		    "Gravity"
		    }
		    Block {
		    BlockType		    Terminator
		    Name		    "TERM_BLOCK"
		    Position		    [80, 80, 100, 100]
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "out"
		    Position		    [15, 15, 35, 35]
		    Port		    "1"
		    Side		    "Right"
		    }
		    Line {
		    SrcBlock		    "FROM_BLOCK"
		    SrcPort		    1
		    DstBlock		    "TERM_BLOCK"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "SOURCE_BLOCK"
		    SrcPort		    1
		    DstBlock		    "GOTO_BLOCK"
		    DstPort		    1
		    }
		    }
		    }
		    Block {
		    BlockType		    Mux
		    Name		    "Mux"
		    Ports		    [2, 1]
		    Position		    [580, 139, 585, 186]
		    ShowName		    off
		    Inputs		    "2"
		    DisplayOption	    "bar"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Revolute1"
		    Tag			    "Factory generic"
		    Description		    "Mechanical Blockset"
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [135, 198, 175, 232]
		    Orientation		    "left"
		    ForegroundColor	    "red"
		    ShowName		    off
		    SourceBlock		    "mblibv1/Joints/Revolute"
		    SourceType		    "msb"
		    PhysicalDomain	    "mechanical"
		    SubClassName	    "Unknown"
		    LeftPortType	    "blob"
		    RightPortType	    "blob"
		    LConnTagsString	    "__newl0"
		    RConnTagsString	    "__newr0"
		    NumSAPorts		    "0"
		    CutJoint		    "off"
		    MarkAsCut		    "off"
		    Primitives		    "revolute"
		    PrimitiveProps	    "R1$WORLD$[0 0 1]$revolute"
		    ClassName		    "Joint"
		    DialogClass		    "JointBlock"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Revolute6"
		    Tag			    "Factory generic"
		    Description		    "Mechanical Blockset"
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [300, 188, 340, 222]
		    Orientation		    "left"
		    ForegroundColor	    "red"
		    ShowName		    off
		    SourceBlock		    "mblibv1/Joints/Revolute"
		    SourceType		    "msb"
		    PhysicalDomain	    "mechanical"
		    SubClassName	    "Unknown"
		    LeftPortType	    "blob"
		    RightPortType	    "blob"
		    LConnTagsString	    "__newl0"
		    RConnTagsString	    "__newr0"
		    NumSAPorts		    "0"
		    CutJoint		    "off"
		    MarkAsCut		    "off"
		    Primitives		    "revolute"
		    PrimitiveProps	    "R1$WORLD$[1 0 0]$revolute"
		    ClassName		    "Joint"
		    DialogClass		    "JointBlock"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Revolute8"
		    Tag			    "Factory generic"
		    Description		    "Mechanical Blockset"
		    Ports		    [0, 0, 0, 0, 0, 2, 1]
		    Position		    [300, 350, 340, 385]
		    Orientation		    "left"
		    ForegroundColor	    "red"
		    ShowName		    off
		    SourceBlock		    "mblibv1/Joints/Revolute"
		    SourceType		    "msb"
		    PhysicalDomain	    "mechanical"
		    SubClassName	    "Unknown"
		    LeftPortType	    "blob"
		    RightPortType	    "blob"
		    LConnTagsString	    "__newl0|SA1"
		    RConnTagsString	    "__newr0"
		    NumSAPorts		    "1"
		    CutJoint		    "off"
		    MarkAsCut		    "off"
		    Primitives		    "revolute"
		    PrimitiveProps	    "R1$WORLD$[0 0 1]$revolute"
		    ClassName		    "Joint"
		    DialogClass		    "JointBlock"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum1"
		    Ports		    [2, 1]
		    Position		    [675, 220, 695, 240]
		    Orientation		    "up"
		    NamePlacement	    "alternate"
		    ShowName		    off
		    IconShape		    "round"
		    Inputs		    "++|"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum2"
		    Ports		    [2, 1]
		    Position		    [75, 420, 95, 440]
		    NamePlacement	    "alternate"
		    ShowName		    off
		    IconShape		    "round"
		    Inputs		    "-+|"
		    }
		    Block {
		    BlockType		    Terminator
		    Name		    "Terminator1"
		    Position		    [600, 251, 610, 259]
		    ShowName		    off
		    }
		    Block {
		    BlockType		    Terminator
		    Name		    "Terminator2"
		    Position		    [600, 231, 610, 239]
		    ShowName		    off
		    }
		    Block {
		    BlockType		    Terminator
		    Name		    "Terminator3"
		    Position		    [600, 221, 610, 229]
		    ShowName		    off
		    }
		    Block {
		    BlockType		    Terminator
		    Name		    "Terminator4"
		    Position		    [600, 201, 610, 209]
		    ShowName		    off
		    }
		    Block {
		    BlockType		    Terminator
		    Name		    "Terminator5"
		    Position		    [90, 331, 100, 339]
		    Orientation		    "left"
		    ShowName		    off
		    }
		    Block {
		    BlockType		    Terminator
		    Name		    "Terminator6"
		    Position		    [90, 356, 100, 364]
		    Orientation		    "left"
		    ShowName		    off
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "angle\nmeasurement"
		    Description		    "Mechanical Blockset"
		    Ports		    [0, 1, 0, 0, 0, 1]
		    Position		    [300, 108, 335, 142]
		    ForegroundColor	    "blue"
		    SourceBlock		    "mblibv1/Sensors & \nActuators/Joi"
"nt Sensor"
		    SourceType		    "msb"
		    ShowPortLabels	    "on"
		    Opaque		    "on"
		    PhysicalDomain	    "Mechanical"
		    PortType		    "blob"
		    Muxed		    "on"
		    Pose		    "off"
		    Angle		    "on"
		    AngleUnits		    "rad"
		    ArcVelocity		    "off"
		    ArcVelocityUnits	    "deg/s"
		    ArcAcceleration	    "off"
		    ArcAccelerationUnits    "deg/s^2"
		    CoordPosition	    "off"
		    CoordPositionUnits	    "m"
		    Velocity		    "off"
		    VelocityUnits	    "m/s"
		    Acceleration	    "off"
		    AccelerationUnits	    "m/s^2"
		    Quaternion		    "on"
		    QuaternionDT	    "off"
		    QuaternionDDT	    "off"
		    QuaternionUnits	    "off"
		    OutputVector	    "[ 1 ]"
		    ActiveIO		    "off"
		    Width		    "1"
		    ClassName		    "JointSensor"
		    DialogClass		    "MechanicalSensorBlock"
		    Primitive		    "R1"
		    Force		    "off"
		    ForceUnits		    "N"
		    Torque		    "off"
		    TorqueUnits		    "N-m"
		    ReferenceFrame	    "Absolute (INERTIAL)"
		    ReactionSensedSide	    "Base"
		    ReactionReferenceFrame  "Absolute (World)"
		    ReactionForce	    "off"
		    ReactionForceUnits	    "N"
		    ReactionMoment	    "off"
		    ReactionMomentUnits	    "N-m"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "angular\nvelocity"
		    Description		    "Mechanical Blockset"
		    Ports		    [0, 1, 0, 0, 0, 1]
		    Position		    [140, 345, 170, 375]
		    Orientation		    "left"
		    ForegroundColor	    "blue"
		    SourceBlock		    "mblibv1/Sensors & \nActuators/Bod"
"y Sensor"
		    SourceType		    "msb"
		    ShowPortLabels	    "on"
		    Opaque		    "on"
		    PhysicalDomain	    "Mechanical"
		    PortType		    "blob"
		    Muxed		    "on"
		    Pose		    "off"
		    Angle		    "on"
		    AngleUnits		    "deg"
		    ArcVelocity		    "on"
		    ArcVelocityUnits	    "rad/s"
		    ArcAcceleration	    "off"
		    ArcAccelerationUnits    "deg/s^2"
		    CoordPosition	    "off"
		    CoordPositionUnits	    "m"
		    Velocity		    "off"
		    VelocityUnits	    "m/s"
		    Acceleration	    "off"
		    AccelerationUnits	    "m/s^2"
		    Quaternion		    "on"
		    QuaternionDT	    "off"
		    QuaternionDDT	    "off"
		    QuaternionUnits	    "off"
		    OutputVector	    "[ 3 ]"
		    ActiveIO		    "off"
		    Width		    "3"
		    ClassName		    "BodySensor"
		    DialogClass		    "MechanicalSensorBlock"
		    ReferenceFrame	    "Absolute (World)"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "door"
		    Tag			    "Factory generic"
		    Description		    "Mechanical Blockset"
		    Ports		    [0, 0, 0, 0, 0, 2, 1]
		    Position		    [205, 195, 265, 235]
		    Orientation		    "left"
		    ForegroundColor	    "red"
		    SourceBlock		    "mblibv1/Bodies/Body"
		    SourceType		    "msb"
		    PhysicalDomain	    "mechanical"
		    SubClassName	    "Unknown"
		    LeftPortType	    "workingframe"
		    RightPortType	    "workingframe"
		    LConnTagsString	    "CS3|CG"
		    RConnTagsString	    "CS1"
		    ClassName		    "Body"
		    DialogClass		    "MechanicalBodyBlock"
		    Mass		    "1"
		    MassUnits		    "kg"
		    InertiaUnits	    "kg*m^2"
		    Inertia		    "eye(3)"
		    Shape		    "Cylinder"
		    ShapeDims		    "[1 1]"
		    ShapeUnits		    "m"
		    ShapeUse		    "false"
		    Density		    "1"
		    DensityUnits	    "kg/m^3"
		    DensityUse		    "false"
		    CG			    "Left$CG$[0 0 0]$WORLD$WORLD$cm$[0"
" 0 0]$Euler X-Y-Z$deg$WORLD$true"
		    WorkingFrames	    "Left$CS3$[0 0 0]$CG$CG$cm$[0 0 0]"
"$Euler X-Y-Z$deg$WORLD$true#Right$CS1$[17 0 0]$CG$CG$cm$[0 0 0]$Euler X-Y-Z$d"
"eg$WORLD$true"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "force"
		    Position		    [670, 105, 700, 135]
		    Orientation		    "up"
		    Gain		    "-1"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "force\nmeasurement"
		    Description		    "Mechanical Blockset"
		    Ports		    [0, 1, 0, 0, 0, 1]
		    Position		    [520, 133, 555, 167]
		    ForegroundColor	    "blue"
		    NamePlacement	    "alternate"
		    SourceBlock		    "mblibv1/Sensors & \nActuators/Joi"
"nt Sensor"
		    SourceType		    "msb"
		    ShowPortLabels	    "on"
		    Opaque		    "on"
		    PhysicalDomain	    "Mechanical"
		    PortType		    "blob"
		    Muxed		    "on"
		    Pose		    "off"
		    Angle		    "on"
		    AngleUnits		    "deg"
		    ArcVelocity		    "off"
		    ArcVelocityUnits	    "deg/s"
		    ArcAcceleration	    "off"
		    ArcAccelerationUnits    "deg/s^2"
		    CoordPosition	    "off"
		    CoordPositionUnits	    "m"
		    Velocity		    "off"
		    VelocityUnits	    "m/s"
		    Acceleration	    "off"
		    AccelerationUnits	    "m/s^2"
		    Quaternion		    "on"
		    QuaternionDT	    "off"
		    QuaternionDDT	    "off"
		    QuaternionUnits	    "off"
		    OutputVector	    "[ 3 ]"
		    ActiveIO		    "off"
		    Width		    "3"
		    ClassName		    "JointSensor"
		    DialogClass		    "MechanicalSensorBlock"
		    Primitive		    "P1"
		    Force		    "off"
		    ForceUnits		    "N"
		    Torque		    "off"
		    TorqueUnits		    "N-m"
		    ReferenceFrame	    "Absolute (INERTIAL)"
		    ReactionSensedSide	    "Base"
		    ReactionReferenceFrame  "Absolute (World)"
		    ReactionForce	    "on"
		    ReactionForceUnits	    "N"
		    ReactionMoment	    "off"
		    ReactionMomentUnits	    "N-m"
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "friction"
		    Ports		    [2, 1]
		    Position		    [620, 200, 660, 260]
		    TreatAsAtomicUnit	    off
		    MinAlgLoopOccurrences   off
		    RTWSystemCode	    "Auto"
		    System {
		    Name		    "friction"
		    Location		    [198, 121, 774, 611]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "position"
		    Position		    [15, 112, 45, 128]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "velocity"
		    Position		    [20, 388, 50, 402]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Constant
		    Name		    "Constant1"
		    Position		    [25, 176, 45, 194]
		    ShowName		    off
		    Value		    "0"
		    }
		    Block {
		    BlockType		    Constant
		    Name		    "Constant2"
		    Position		    [250, 71, 270, 89]
		    ShowName		    off
		    Value		    "0"
		    }
		    Block {
		    BlockType		    Constant
		    Name		    "Constant3"
		    Position		    [165, 16, 185, 34]
		    ShowName		    off
		    }
		    Block {
		    BlockType		    Constant
		    Name		    "Constant5"
		    Position		    [10, 59, 45, 81]
		    ShowName		    off
		    Value		    "0.45"
		    }
		    Block {
		    BlockType		    MultiPortSwitch
		    Name		    "Multiport\nSwitch"
		    Ports		    [4, 1]
		    Position		    [310, 55, 345, 135]
		    Inputs		    "3"
		    SaturateOnIntegerOverflow off
		    }
		    Block {
		    BlockType		    MultiPortSwitch
		    Name		    "Multiport\nSwitch1"
		    Ports		    [4, 1]
		    Position		    [445, 360, 480, 440]
		    Inputs		    "3"
		    SaturateOnIntegerOverflow off
		    }
		    Block {
		    BlockType		    Product
		    Name		    "Product"
		    Ports		    [2, 1]
		    Position		    [300, 371, 345, 404]
		    RndMeth		    "Floor"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum1"
		    Ports		    [2, 1]
		    Position		    [480, 85, 500, 105]
		    ShowName		    off
		    IconShape		    "round"
		    Inputs		    "|++"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum2"
		    Ports		    [2, 1]
		    Position		    [155, 110, 175, 130]
		    ShowName		    off
		    IconShape		    "round"
		    Inputs		    "|+-"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum3"
		    Ports		    [3, 1]
		    Position		    [190, 55, 210, 75]
		    ShowName		    off
		    IconShape		    "round"
		    Inputs		    "+++"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "endstop\nfriction"
		    Position		    [395, 80, 425, 110]
		    Gain		    "75000"
		    }
		    Block {
		    BlockType		    RelationalOperator
		    Name		    "obstruction1"
		    Position		    [110, 47, 140, 78]
		    Operator		    ">"
		    }
		    Block {
		    BlockType		    RelationalOperator
		    Name		    "obstruction2"
		    Position		    [105, 162, 135, 193]
		    Operator		    "<"
		    }
		    Block {
		    BlockType		    Lookup
		    Name		    "vehicle\ncharacteristic\nfriction"
		    Position		    [105, 234, 155, 286]
		    InputValues		    "[0 2.5 10 11.5 14 24 30 31 35 47 "
"50]"
		    OutputValues	    "[1.15 1.2 1.05 1.1 1.05 1 1.1 1 0"
".95 0.9 0.95]"
		    }
		    Block {
		    BlockType		    Scope
		    Name		    "vel"
		    Ports		    [1]
		    Position		    [320, 214, 350, 246]
		    Orientation		    "left"
		    Location		    [684, 501, 1008, 739]
		    Open		    off
		    NumInputPorts	    "1"
		    List {
		    ListType		    AxesTitles
		    axes1		    "%<SignalLabel>"
		    }
		    YMin		    "-1"
		    YMax		    "1"
		    SaveName		    "ScopeData6"
		    DataFormat		    "StructureWithTime"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "viscous\nfriction3"
		    Position		    [160, 165, 190, 195]
		    Gain		    "2"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "viscous friction"
		    Position		    [375, 375, 405, 405]
		    Gain		    "150"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "viscous friction1"
		    Position		    [370, 418, 425, 452]
		    Gain		    "100000"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "torque"
		    Position		    [525, 88, 555, 102]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    }
		    Line {
		    SrcBlock		    "viscous friction1"
		    SrcPort		    1
		    Points		    [0, 0]
		    Branch {
		    DstBlock		    "Multiport\nSwitch1"
		    DstPort		    4
		    }
		    Branch {
		    DstBlock		    "Multiport\nSwitch1"
		    DstPort		    3
		    }
		    }
		    Line {
		    SrcBlock		    "Multiport\nSwitch1"
		    SrcPort		    1
		    Points		    [5, 0]
		    DstBlock		    "Sum1"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "viscous friction"
		    SrcPort		    1
		    DstBlock		    "Multiport\nSwitch1"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "vehicle\ncharacteristic\nfriction"
		    SrcPort		    1
		    Points		    [45, 0; 0, 120]
		    DstBlock		    "Product"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Product"
		    SrcPort		    1
		    Points		    [5, 0]
		    Branch {
		    DstBlock		    "viscous friction1"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "viscous friction"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Multiport\nSwitch"
		    SrcPort		    1
		    Points		    [15, 0]
		    Branch {
		    DstBlock		    "vel"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "endstop\nfriction"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Sum3"
		    SrcPort		    1
		    Points		    [20, 0]
		    Branch {
		    Points		    [0, 260; 195, 0]
		    DstBlock		    "Multiport\nSwitch1"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Multiport\nSwitch"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Constant3"
		    SrcPort		    1
		    Points		    [10, 0]
		    DstBlock		    "Sum3"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "viscous\nfriction3"
		    SrcPort		    1
		    Points		    [5, 0]
		    DstBlock		    "Sum3"
		    DstPort		    3
		    }
		    Line {
		    SrcBlock		    "obstruction1"
		    SrcPort		    1
		    DstBlock		    "Sum3"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "obstruction2"
		    SrcPort		    1
		    DstBlock		    "viscous\nfriction3"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Sum2"
		    SrcPort		    1
		    Points		    [90, 0; 0, -15]
		    DstBlock		    "Multiport\nSwitch"
		    DstPort		    3
		    }
		    Line {
		    SrcBlock		    "Constant2"
		    SrcPort		    1
		    Points		    [0, 5]
		    DstBlock		    "Multiport\nSwitch"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "endstop\nfriction"
		    SrcPort		    1
		    DstBlock		    "Sum1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Constant1"
		    SrcPort		    1
		    DstBlock		    "obstruction2"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "Constant5"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    Points		    [0, 75]
		    DstBlock		    "Sum2"
		    DstPort		    2
		    }
		    Branch {
		    Points		    [0, 0]
		    DstBlock		    "obstruction1"
		    DstPort		    2
		    }
		    }
		    Line {
		    SrcBlock		    "position"
		    SrcPort		    1
		    Points		    [25, 0]
		    Branch {
		    Points		    [0, 140]
		    DstBlock		    "vehicle\ncharacteristic\nfriction"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 0; 0, -65]
		    Branch {
		    Points		    [0, 65]
		    DstBlock		    "Sum2"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 40]
		    Branch {
		    Points		    [0, 0]
		    Branch {
		    Points		    [210, 0; 0, 30]
		    DstBlock		    "Multiport\nSwitch"
		    DstPort		    4
		    }
		    Branch {
		    Points		    [0, 75]
		    DstBlock		    "obstruction2"
		    DstPort		    1
		    }
		    }
		    Branch {
		    Points		    [0, -40]
		    DstBlock		    "obstruction1"
		    DstPort		    1
		    }
		    }
		    }
		    }
		    Line {
		    SrcBlock		    "velocity"
		    SrcPort		    1
		    DstBlock		    "Product"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "Sum1"
		    SrcPort		    1
		    DstBlock		    "torque"
		    DstPort		    1
		    }
		    }
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "friction force\nactuation"
		    Description		    "Mechanical Blockset"
		    Ports		    [1, 0, 0, 0, 0, 0, 1]
		    Position		    [595, 74, 630, 106]
		    Orientation		    "left"
		    ForegroundColor	    "blue"
		    SourceBlock		    "mblibv1/Sensors & \nActuators/Joi"
"nt Actuator"
		    SourceType		    "msb"
		    ShowPortLabels	    "on"
		    Opaque		    "on"
		    PhysicalDomain	    "Mechanical"
		    PortType		    "blob"
		    ActuationStyle	    "Force"
		    AngleUnits		    "deg"
		    ArcVelocityUnits	    "deg/s"
		    ArcAccelerationUnits    "deg/s^2"
		    CoordPositionUnits	    "m"
		    VelocityUnits	    "m/s"
		    AccelerationUnits	    "m/s^2"
		    ForceUnits		    "N"
		    TorqueUnits		    "N-m"
		    ActiveIO		    "off"
		    Width		    "1"
		    ClassName		    "JointActuator"
		    DialogClass		    "MechanicalActuatorBlock"
		    Primitive		    "P1"
		    ReferenceFrame	    "Absolute (INERTIAL)"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "main\ngear"
		    Tag			    "Factory generic"
		    Description		    "Mechanical Blockset"
		    Ports		    [0, 0, 0, 0, 0, 2, 1]
		    Position		    [205, 26, 265, 64]
		    ForegroundColor	    "red"
		    SourceBlock		    "mblibv1/Bodies/Body"
		    SourceType		    "msb"
		    PhysicalDomain	    "mechanical"
		    SubClassName	    "Unknown"
		    LeftPortType	    "workingframe"
		    RightPortType	    "workingframe"
		    LConnTagsString	    "CS3|CG"
		    RConnTagsString	    "CS1"
		    ClassName		    "Body"
		    DialogClass		    "MechanicalBodyBlock"
		    Mass		    "2"
		    MassUnits		    "kg"
		    InertiaUnits	    "kg*m^2"
		    Inertia		    "eye(3)"
		    Shape		    "Cylinder"
		    ShapeDims		    "[1 1]"
		    ShapeUnits		    "m"
		    ShapeUse		    "false"
		    Density		    "1"
		    DensityUnits	    "kg/m^3"
		    DensityUse		    "false"
		    CG			    "Left$CG$[17 0 0]$WORLD$WORLD$cm$["
"0 0 0]$Euler X-Y-Z$deg$WORLD$true"
		    WorkingFrames	    "Left$CS3$[0 0 0]$CG$CG$cm$[0 0 0]"
"$Euler X-Y-Z$deg$WORLD$true#Right$CS1$[60 0 0]$CG$CG$cm$[0 0 0]$Euler X-Y-Z$d"
"eg$WORLD$true"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "position &\nvelocity\nmeasurement"
		    Description		    "Mechanical Blockset"
		    Ports		    [0, 1, 0, 0, 0, 1]
		    Position		    [470, 160, 500, 190]
		    ForegroundColor	    "blue"
		    SourceBlock		    "mblibv1/Sensors & \nActuators/Bod"
"y Sensor"
		    SourceType		    "msb"
		    ShowPortLabels	    "on"
		    Opaque		    "on"
		    PhysicalDomain	    "Mechanical"
		    PortType		    "blob"
		    Muxed		    "on"
		    Pose		    "off"
		    Angle		    "on"
		    AngleUnits		    "deg"
		    ArcVelocity		    "off"
		    ArcVelocityUnits	    "deg/s"
		    ArcAcceleration	    "off"
		    ArcAccelerationUnits    "deg/s^2"
		    CoordPosition	    "on"
		    CoordPositionUnits	    "m"
		    Velocity		    "on"
		    VelocityUnits	    "m/s"
		    Acceleration	    "off"
		    AccelerationUnits	    "m/s^2"
		    Quaternion		    "on"
		    QuaternionDT	    "off"
		    QuaternionDDT	    "off"
		    QuaternionUnits	    "off"
		    OutputVector	    "[ 3 3 ]"
		    ActiveIO		    "off"
		    Width		    "6"
		    ClassName		    "BodySensor"
		    DialogClass		    "MechanicalSensorBlock"
		    ReferenceFrame	    "Absolute (World)"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "rotate & slide"
		    Tag			    "Factory generic"
		    Description		    "Mechanical Blockset"
		    Ports		    [0, 0, 0, 0, 0, 2, 1]
		    Position		    [300, 32, 350, 83]
		    ForegroundColor	    "red"
		    SourceBlock		    "mblibv1/Joints/Custom Joint"
		    SourceType		    "msb"
		    PhysicalDomain	    "mechanical"
		    SubClassName	    "custom_joint"
		    LeftPortType	    "blob"
		    RightPortType	    "blob"
		    LConnTagsString	    "__newl0|SA1"
		    RConnTagsString	    "__newr0"
		    NumSAPorts		    "1"
		    CutJoint		    "off"
		    MarkAsCut		    "off"
		    Primitives		    "revolute_prismatic"
		    PrimitiveProps	    "R1$Base$[0 0 1]$revolute#P1$Follo"
"wer$[1 0 0]$prismatic"
		    ClassName		    "Joint"
		    DialogClass		    "JointBlock"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "torque"
		    Position		    [120, 415, 150, 445]
		    Gain		    "10000"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "torque\nactuation"
		    Description		    "Mechanical Blockset"
		    Ports		    [1, 0, 0, 0, 0, 0, 1]
		    Position		    [300, 412, 335, 448]
		    ForegroundColor	    "blue"
		    SourceBlock		    "mblibv1/Sensors & \nActuators/Joi"
"nt Actuator"
		    SourceType		    "msb"
		    ShowPortLabels	    "on"
		    Opaque		    "on"
		    PhysicalDomain	    "Mechanical"
		    PortType		    "blob"
		    ActuationStyle	    "Force"
		    AngleUnits		    "deg"
		    ArcVelocityUnits	    "deg/s"
		    ArcAccelerationUnits    "deg/s^2"
		    CoordPositionUnits	    "m"
		    VelocityUnits	    "m/s"
		    AccelerationUnits	    "m/s^2"
		    ForceUnits		    "N"
		    TorqueUnits		    "N-m"
		    ActiveIO		    "off"
		    Width		    "1"
		    ClassName		    "JointActuator"
		    DialogClass		    "MechanicalActuatorBlock"
		    Primitive		    "R1"
		    ReferenceFrame	    "Absolute (INERTIAL)"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "up & down"
		    Tag			    "Factory generic"
		    Description		    "Mechanical Blockset"
		    Ports		    [0, 0, 0, 0, 0, 2, 2]
		    Position		    [480, 41, 520, 74]
		    Orientation		    "left"
		    ForegroundColor	    "red"
		    SourceBlock		    "mblibv1/Joints/Prismatic"
		    SourceType		    "msb"
		    PhysicalDomain	    "mechanical"
		    SubClassName	    "Unknown"
		    LeftPortType	    "blob"
		    RightPortType	    "blob"
		    LConnTagsString	    "__newl0|SA1"
		    RConnTagsString	    "__newr0|SA1"
		    NumSAPorts		    "2"
		    CutJoint		    "on"
		    MarkAsCut		    "off"
		    Primitives		    "prismatic"
		    PrimitiveProps	    "P1$WORLD$[0 1 0]$prismatic"
		    ClassName		    "Joint"
		    DialogClass		    "JointBlock"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "window"
		    Tag			    "Factory generic"
		    Description		    "Mechanical Blockset"
		    Ports		    [0, 0, 0, 0, 0, 1, 2]
		    Position		    [375, 40, 435, 80]
		    ForegroundColor	    "red"
		    SourceBlock		    "mblibv1/Bodies/Body"
		    SourceType		    "msb"
		    PhysicalDomain	    "mechanical"
		    SubClassName	    "Unknown"
		    LeftPortType	    "workingframe"
		    RightPortType	    "workingframe"
		    LConnTagsString	    "CS1"
		    RConnTagsString	    "CS2|CS3"
		    ClassName		    "Body"
		    DialogClass		    "MechanicalBodyBlock"
		    Mass		    "5"
		    MassUnits		    "kg"
		    InertiaUnits	    "kg*m^2"
		    Inertia		    "eye(3)"
		    Shape		    "Cylinder"
		    ShapeDims		    "[1 1]"
		    ShapeUnits		    "m"
		    ShapeUse		    "false"
		    Density		    "1"
		    DensityUnits	    "kg/m^3"
		    DensityUse		    "false"
		    CG			    "Left$CG$[10 0 0]$WORLD$WORLD$cm$["
"0 0 0]$Euler X-Y-Z$deg$WORLD$false"
		    WorkingFrames	    "Left$CS1$[0 0 0]$CG$CG$cm$[0 0 0]"
"$Euler X-Y-Z$deg$WORLD$true#Right$CS2$[0 0 0]$CG$CG$cm$[0 0 0]$Euler X-Y-Z$de"
"g$WORLD$true#Right$CS3$[-15 0 0]$CG$CG$cm$[0 0 0]$Euler X-Y-Z$deg$WORLD$true"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "worm"
		    Tag			    "Factory generic"
		    Description		    "Mechanical Blockset"
		    Ports		    [0, 0, 0, 0, 0, 2, 1]
		    Position		    [205, 340, 270, 380]
		    Orientation		    "left"
		    ForegroundColor	    "red"
		    SourceBlock		    "mblibv1/Bodies/Body"
		    SourceType		    "msb"
		    PhysicalDomain	    "mechanical"
		    SubClassName	    "Unknown"
		    LeftPortType	    "workingframe"
		    RightPortType	    "workingframe"
		    LConnTagsString	    "CS3|CS4"
		    RConnTagsString	    "CG"
		    ClassName		    "Body"
		    DialogClass		    "MechanicalBodyBlock"
		    Mass		    "0.5"
		    MassUnits		    "kg"
		    InertiaUnits	    "kg*m^2"
		    Inertia		    "eye(3)"
		    Shape		    "Cylinder"
		    ShapeDims		    "[1 1]"
		    ShapeUnits		    "m"
		    ShapeUse		    "false"
		    Density		    "1"
		    DensityUnits	    "kg/m^3"
		    DensityUse		    "false"
		    CG			    "Right$CG$[0 0 0]$WORLD$WORLD$cm$["
"0 0 0]$Euler X-Y-Z$deg$WORLD$true"
		    WorkingFrames	    "Left$CS3$[0 0 0]$CG$CG$cm$[0 0 0]"
"$Euler X-Y-Z$deg$WORLD$true#Left$CS4$[0 0 0]$CG$CG$cm$[0 0 0]$Euler X-Y-Z$deg"
"$WORLD$true"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "worm gear"
		    Tag			    "Factory generic"
		    Description		    "Mechanical Blockset"
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [125, 260, 175, 310]
		    Orientation		    "left"
		    ForegroundColor	    "red"
		    SourceBlock		    "mblibv1/Constraints & \nDrivers/G"
"ear Constraint"
		    SourceType		    "GearConstraint"
		    PhysicalDomain	    "mechanical"
		    SubClassName	    "Unknown"
		    LeftPortType	    "blob"
		    RightPortType	    "blob"
		    LConnTagsString	    "__newl0"
		    RConnTagsString	    "__newr0"
		    ClassName		    "GearConstraint"
		    DialogClass		    "GearConstraint"
		    NumSAPorts		    "0"
		    BaseRadius		    "2"
		    BaseRadiusUnits	    "cm"
		    FollowerRadius	    "15"
		    FollowerRadiusUnits	    "cm"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "ti"
		    Position		    [15, 463, 45, 477]
		    Orientation		    "left"
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "F,d,v"
		    Position		    [615, 158, 645, 172]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "q"
		    Position		    [365, 118, 395, 132]
		    Port		    "3"
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    }
		    Line {
		    SrcBlock		    "Demux2"
		    SrcPort		    2
		    DstBlock		    "Terminator6"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Demux2"
		    SrcPort		    1
		    DstBlock		    "Terminator5"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Demux1"
		    SrcPort		    1
		    DstBlock		    "Terminator4"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Demux1"
		    SrcPort		    3
		    DstBlock		    "Terminator3"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Demux1"
		    SrcPort		    4
		    DstBlock		    "Terminator2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Demux1"
		    SrcPort		    6
		    DstBlock		    "Terminator1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "force"
		    SrcPort		    1
		    Points		    [0, -10]
		    DstBlock		    "friction force\nactuation"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Sum1"
		    SrcPort		    1
		    DstBlock		    "force"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "friction"
		    SrcPort		    1
		    DstBlock		    "Sum1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Fx"
		    SrcPort		    1
		    Points		    [635, 0]
		    DstBlock		    "Sum1"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "wi"
		    SrcPort		    1
		    DstBlock		    "Sum2"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "Demux2"
		    SrcPort		    3
		    Points		    [-25, 0]
		    DstBlock		    "Sum2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "angular\nvelocity"
		    SrcPort		    1
		    DstBlock		    "Demux2"
		    DstPort		    1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "worm"
		    SrcPort		    RConn1
		    Points		    [0, 0]
		    DstBlock		    "angular\nvelocity"
		    DstPort		    LConn1
		    }
		    Line {
		    SrcBlock		    "Sum2"
		    SrcPort		    1
		    DstBlock		    "torque"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "torque"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    DstBlock		    "torque\nactuation"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 0; 0, 40]
		    DstBlock		    "ti"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Demux1"
		    SrcPort		    5
		    DstBlock		    "friction"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "Demux1"
		    SrcPort		    2
		    DstBlock		    "friction"
		    DstPort		    1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "up & down"
		    SrcPort		    RConn1
		    Points		    [0, 0]
		    DstBlock		    "window"
		    DstPort		    RConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "GND"
		    SrcPort		    RConn1
		    DstBlock		    "up & down"
		    DstPort		    LConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "window"
		    SrcPort		    RConn2
		    Points		    [0, 105]
		    DstBlock		    "position &\nvelocity\nmeasurement"
		    DstPort		    LConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "rotate & slide"
		    SrcPort		    RConn1
		    Points		    [0, 0]
		    DstBlock		    "window"
		    DstPort		    LConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "main\ngear"
		    SrcPort		    RConn1
		    Points		    [0, 0]
		    DstBlock		    "rotate & slide"
		    DstPort		    LConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "door"
		    SrcPort		    LConn2
		    Points		    [75, 0]
		    DstBlock		    "Revolute8"
		    DstPort		    LConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "torque\nactuation"
		    SrcPort		    RConn1
		    Points		    [5, 0]
		    DstBlock		    "Revolute8"
		    DstPort		    LConn2
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "GND2"
		    SrcPort		    RConn1
		    Points		    [0, 0]
		    DstBlock		    "Revolute6"
		    DstPort		    LConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "door"
		    SrcPort		    LConn1
		    Points		    [0, 0]
		    DstBlock		    "Revolute6"
		    DstPort		    RConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "worm gear"
		    SrcPort		    RConn1
		    Points		    [-5, 0; 0, -250]
		    DstBlock		    "main\ngear"
		    DstPort		    LConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Revolute1"
		    SrcPort		    RConn1
		    Points		    [-5, 0; 0, -160]
		    DstBlock		    "main\ngear"
		    DstPort		    LConn2
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "door"
		    SrcPort		    RConn1
		    DstBlock		    "Revolute1"
		    DstPort		    LConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "worm"
		    SrcPort		    LConn1
		    Points		    [0, -65]
		    DstBlock		    "worm gear"
		    DstPort		    LConn1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Revolute8"
		    SrcPort		    RConn1
		    DstBlock		    "worm"
		    DstPort		    LConn2
		    }
		    Line {
		    SrcBlock		    "position &\nvelocity\nmeasurement"
		    SrcPort		    1
		    Points		    [0, 0; 35, 0]
		    Branch {
		    Points		    [0, 0; 0, 55]
		    DstBlock		    "Demux1"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Mux"
		    DstPort		    2
		    }
		    }
		    Line {
		    SrcBlock		    "force\nmeasurement"
		    SrcPort		    1
		    DstBlock		    "Mux"
		    DstPort		    1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "friction force\nactuation"
		    SrcPort		    RConn1
		    Points		    [-45, 0]
		    DstBlock		    "up & down"
		    DstPort		    LConn2
		    }
		    Line {
		    SrcBlock		    "Mux"
		    SrcPort		    1
		    DstBlock		    "F,d,v"
		    DstPort		    1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "force\nmeasurement"
		    SrcPort		    LConn1
		    Points		    [-40, 0]
		    DstBlock		    "up & down"
		    DstPort		    RConn2
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "rotate & slide"
		    SrcPort		    LConn2
		    Points		    [-10, 0; 0, 55]
		    DstBlock		    "angle\nmeasurement"
		    DstPort		    LConn1
		    }
		    Line {
		    SrcBlock		    "angle\nmeasurement"
		    SrcPort		    1
		    DstBlock		    "q"
		    DstPort		    1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "GND"
		    SrcPort		    LConn1
		    DstBlock		    "Mechanical\nEnvironment"
		    DstPort		    RConn1
		    }
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "ti"
		  Position		  [235, 43, 265, 57]
		  ForegroundColor	  "red"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Block {
		  BlockType		  Outport
		  Name			  "F, x, v"
		  Position		  [235, 98, 265, 112]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Block {
		  BlockType		  Outport
		  Name			  "q"
		  Position		  [235, 133, 265, 147]
		  ForegroundColor	  "red"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "window"
		  SrcPort		  2
		  Points		  [0, 0; 15, 0]
		  Branch {
		    Points		    [0, 10]
		    DstBlock		    "F, x, v"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Demux1"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Demux1"
		  SrcPort		  5
		  DstBlock		  "Terminator2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux1"
		  SrcPort		  3
		  DstBlock		  "Terminator1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux1"
		  SrcPort		  1
		  DstBlock		  "Terminator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux1"
		  SrcPort		  2
		  Points		  [30, 0; 0, -55; -305, 0]
		  DstBlock		  "object"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux1"
		  SrcPort		  4
		  Points		  [30, 0; 0, 70; -305, 0]
		  DstBlock		  "object"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "window"
		  SrcPort		  3
		  DstBlock		  "q"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "object"
		  SrcPort		  1
		  DstBlock		  "window"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "wi"
		  SrcPort		  1
		  DstBlock		  "window"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "window"
		  SrcPort		  1
		  DstBlock		  "ti"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "Vcc"
	      Position		      [50, 75, 70, 95]
	      Port		      "1"
	      Side		      "Left"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "A-"
	      Position		      [50, 115, 70, 135]
	      Port		      "2"
	      Side		      "Left"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "A+"
	      Position		      [50, 155, 70, 175]
	      Port		      "3"
	      Side		      "Left"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "x, v"
	      Position		      [265, 138, 295, 152]
	      NamePlacement	      "alternate"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "q"
	      Position		      [265, 158, 295, 172]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "plant"
	      SrcPort		      1
	      Points		      [0, -105; -160, 0; 0, 25]
	      DstBlock		      "actuator"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "actuator"
	      SrcPort		      1
	      DstBlock		      "ideal Ia"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "actuator"
	      SrcPort		      2
	      DstBlock		      "plant"
	      DstPort		      1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Vcc"
	      SrcPort		      RConn1
	      Points		      [0, 0]
	      DstBlock		      "actuator"
	      DstPort		      LConn1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "A-"
	      SrcPort		      RConn1
	      Points		      [0, 0]
	      DstBlock		      "actuator"
	      DstPort		      LConn2
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "A+"
	      SrcPort		      RConn1
	      Points		      [0, 0]
	      DstBlock		      "actuator"
	      DstPort		      LConn3
	    }
	    Line {
	      SrcBlock		      "plant"
	      SrcPort		      2
	      DstBlock		      "x, v"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "plant"
	      SrcPort		      3
	      DstBlock		      "q"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "window DAQ"
	  Ports			  [2, 1, 0, 0, 0, 1, 2]
	  Position		  [205, 116, 280, 234]
	  ForegroundColor	  "darkGreen"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "window DAQ"
	    Location		    [171, 329, 643, 548]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "A-\nin"
	      Position		      [25, 88, 55, 102]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "A+ in"
	      Position		      [25, 143, 55, 157]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "ADC\nIa"
	      Ports		      [1, 1]
	      Position		      [350, 38, 390, 72]
	      ForegroundColor	      "darkGreen"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskType		      "AD Converter"
	      MaskDescription	      "Analog (A) to digital (D) converter wit"
"h sample rate, conversion delay, range, and number of bits used for conversio"
"n."
	      MaskPromptString	      "sample time (-1 for inherited)|peak|del"
"ay (-1 for inherited)|bits"
	      MaskStyleString	      "edit,edit,edit,edit"
	      MaskTunableValueString  "on,on,on,on"
	      MaskCallbackString      "|||"
	      MaskEnableString	      "on,on,on,on"
	      MaskVisibilityString    "on,on,on,on"
	      MaskToolTipString	      "on,on,on,on"
	      MaskVarAliasString      ",,,"
	      MaskVariables	      "Ts=@1;peak=@2;Td=@3;bits=@4;"
	      MaskInitialization      "\n"
	      MaskDisplay	      "plot([0.5 1.5 1.5 2.5 2.5 3.5 3.5 4.5],"
" [0 0 1 1 2 2 3 3])\nplot([0 3], [0 3])"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "port"
	      MaskIconUnits	      "autoscale"
	      MaskValueString	      "0.01|3.5|0.005|8"
	      MaskTabNameString	      ",,,"
	      System {
		Name			"ADC\nIa"
		Location		[438, 180, 964, 295]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "A"
		  Position		  [25, 43, 55, 57]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Reference
		  Name			  "Uniform\nEncoder"
		  Ports			  [1, 1]
		  Position		  [215, 29, 285, 71]
		  SourceBlock		  "dspquant2/Uniform\nEncoder"
		  SourceType		  "Uniform Encoder"
		  peak			  "peak"
		  bits			  "bits"
		  otype			  "Signed integer"
		}
		Block {
		  BlockType		  UnitDelay
		  Name			  "Unit Delay"
		  Position		  [85, 30, 120, 70]
		  SampleTime		  "Td"
		}
		Block {
		  BlockType		  ZeroOrderHold
		  Name			  "Zero-Order\nHold"
		  Position		  [150, 31, 185, 69]
		  SampleTime		  "Ts"
		}
		Block {
		  BlockType		  Outport
		  Name			  "D"
		  Position		  [475, 43, 505, 57]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "Uniform\nEncoder"
		  SrcPort		  1
		  DstBlock		  "D"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "A"
		  SrcPort		  1
		  DstBlock		  "Unit Delay"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Unit Delay"
		  SrcPort		  1
		  DstBlock		  "Zero-Order\nHold"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Zero-Order\nHold"
		  SrcPort		  1
		  DstBlock		  "Uniform\nEncoder"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      ZeroOrderHold
	      Name		      "DAC down"
	      Position		      [80, 131, 115, 169]
	      ForegroundColor	      "darkGreen"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      ZeroOrderHold
	      Name		      "DAC up"
	      Position		      [80, 76, 115, 114]
	      ForegroundColor	      "darkGreen"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "amplification\ndown"
	      Ports		      [1, 0, 0, 0, 0, 1, 1]
	      Position		      [170, 142, 230, 178]
	      ForegroundColor	      "darkGreen"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"amplification\ndown"
		Location		[273, 184, 656, 399]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "on"
		  Position		  [25, 33, 55, 47]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Logic
		  Name			  "Logical\nOperator"
		  Ports			  [1, 1]
		  Position		  [105, 99, 135, 131]
		  Operator		  "NOT"
		}
		Block {
		  BlockType		  Terminator
		  Name			  "Terminator1"
		  Position		  [275, 32, 290, 48]
		  ShowName		  off
		}
		Block {
		  BlockType		  Terminator
		  Name			  "Terminator2"
		  Position		  [275, 107, 290, 123]
		  ShowName		  off
		}
		Block {
		  BlockType		  Reference
		  Name			  "high switch"
		  Ports			  [1, 1, 0, 0, 0, 1, 1]
		  Position		  [200, 30, 255, 70]
		  NamePlacement		  "alternate"
		  SourceBlock		  "powerlib/Power\nElectronics/Ideal S"
"witch"
		  SourceType		  "Ideal Switch"
		  ShowPortLabels	  "on"
		  Ron			  "0.01"
		  Lon			  "0"
		  IC			  "0"
		  Rs			  "1000000"
		  Cs			  "inf"
		  Measurements		  "on"
		}
		Block {
		  BlockType		  Reference
		  Name			  "low switch"
		  Ports			  [1, 1, 0, 0, 0, 1, 1]
		  Position		  [200, 105, 255, 145]
		  NamePlacement		  "alternate"
		  SourceBlock		  "powerlib/Power\nElectronics/Ideal S"
"witch"
		  SourceType		  "Ideal Switch"
		  ShowPortLabels	  "on"
		  Ron			  "0.01"
		  Lon			  "0"
		  IC			  "0"
		  Rs			  "1000000"
		  Cs			  "inf"
		  Measurements		  "on"
		}
		Block {
		  BlockType		  Reference
		  Name			  "output Ground1"
		  Ports			  [0, 0, 0, 0, 0, 1]
		  Position		  [149, 165, 181, 195]
		  Orientation		  "down"
		  ShowName		  off
		  SourceBlock		  "powerlib/Elements/Ground"
		  SourceType		  "Ground"
		  PhysicalDomain	  "powersysdomain"
		  SubClassName		  "unknown"
		  LeftPortType		  "p1"
		  RightPortType		  "p1"
		  LConnTagsString	  "a"
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "Vcc"
		  Position		  [145, 50, 165, 70]
		  Port			  "1"
		  Side			  "Left"
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "pin1"
		  Position		  [350, 85, 370, 105]
		  Orientation		  "left"
		  Port			  "2"
		  Side			  "Right"
		}
		Line {
		  SrcBlock		  "low switch"
		  SrcPort		  1
		  DstBlock		  "Terminator2"
		  DstPort		  1
		}
		Line {
		  LineType		  "Connection"
		  SrcBlock		  "high switch"
		  SrcPort		  LConn1
		  Points		  [0, 0]
		  DstBlock		  "Vcc"
		  DstPort		  RConn1
		}
		Line {
		  SrcBlock		  "on"
		  SrcPort		  1
		  Points		  [0, 0; 10, 0]
		  Branch {
		    Points		    [0, 75]
		    DstBlock		    "Logical\nOperator"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "high switch"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "high switch"
		  SrcPort		  1
		  DstBlock		  "Terminator1"
		  DstPort		  1
		}
		Line {
		  LineType		  "Connection"
		  SrcBlock		  "output Ground1"
		  SrcPort		  LConn1
		  Points		  [0, -15]
		  DstBlock		  "low switch"
		  DstPort		  LConn1
		}
		Line {
		  SrcBlock		  "Logical\nOperator"
		  SrcPort		  1
		  DstBlock		  "low switch"
		  DstPort		  1
		}
		Line {
		  LineType		  "Connection"
		  Points		  [320, 95; 0, 40; -50, 0]
		  DstBlock		  "low switch"
		  DstPort		  RConn1
		  Branch {
		    ConnectType		    "SRC_SRC"
		    Points		    [0, -35]
		    DstBlock		    "high switch"
		    DstPort		    RConn1
		  }
		  Branch {
		    ConnectType		    "SRC_DEST"
		    SrcBlock		    "pin1"
		    SrcPort		    RConn1
		    Points		    [0, 0; -15, 0]
		  }
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "amplification\nup"
	      Ports		      [1, 0, 0, 0, 0, 1, 1]
	      Position		      [170, 87, 230, 123]
	      ForegroundColor	      "darkGreen"
	      NamePlacement	      "alternate"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"amplification\nup"
		Location		[312, 239, 723, 448]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "on"
		  Position		  [30, 33, 60, 47]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Logic
		  Name			  "Logical\nOperator"
		  Ports			  [1, 1]
		  Position		  [110, 99, 140, 131]
		  Operator		  "NOT"
		}
		Block {
		  BlockType		  Terminator
		  Name			  "Terminator1"
		  Position		  [280, 32, 295, 48]
		  ShowName		  off
		}
		Block {
		  BlockType		  Terminator
		  Name			  "Terminator2"
		  Position		  [280, 107, 295, 123]
		  ShowName		  off
		}
		Block {
		  BlockType		  Reference
		  Name			  "high switch"
		  Ports			  [1, 1, 0, 0, 0, 1, 1]
		  Position		  [205, 30, 260, 70]
		  NamePlacement		  "alternate"
		  SourceBlock		  "powerlib/Power\nElectronics/Ideal S"
"witch"
		  SourceType		  "Ideal Switch"
		  ShowPortLabels	  "on"
		  Ron			  "0.01"
		  Lon			  "0"
		  IC			  "0"
		  Rs			  "1000000"
		  Cs			  "inf"
		  Measurements		  "on"
		}
		Block {
		  BlockType		  Reference
		  Name			  "low switch"
		  Ports			  [1, 1, 0, 0, 0, 1, 1]
		  Position		  [205, 105, 260, 145]
		  NamePlacement		  "alternate"
		  SourceBlock		  "powerlib/Power\nElectronics/Ideal S"
"witch"
		  SourceType		  "Ideal Switch"
		  ShowPortLabels	  "on"
		  Ron			  "0.01"
		  Lon			  "0"
		  IC			  "0"
		  Rs			  "1000000"
		  Cs			  "inf"
		  Measurements		  "on"
		}
		Block {
		  BlockType		  Reference
		  Name			  "output Ground1"
		  Ports			  [0, 0, 0, 0, 0, 1]
		  Position		  [154, 165, 186, 195]
		  Orientation		  "down"
		  ShowName		  off
		  SourceBlock		  "powerlib/Elements/Ground"
		  SourceType		  "Ground"
		  PhysicalDomain	  "powersysdomain"
		  SubClassName		  "unknown"
		  LeftPortType		  "p1"
		  RightPortType		  "p1"
		  LConnTagsString	  "a"
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "Vcc"
		  Position		  [150, 50, 170, 70]
		  Port			  "1"
		  Side			  "Left"
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "pin1"
		  Position		  [355, 85, 375, 105]
		  Orientation		  "left"
		  Port			  "2"
		  Side			  "Right"
		}
		Line {
		  LineType		  "Connection"
		  Points		  [325, 95; 0, -35; -50, 0]
		  DstBlock		  "high switch"
		  DstPort		  RConn1
		  Branch {
		    ConnectType		    "SRC_SRC"
		    Points		    [0, 40]
		    DstBlock		    "low switch"
		    DstPort		    RConn1
		  }
		  Branch {
		    ConnectType		    "SRC_DEST"
		    SrcBlock		    "pin1"
		    SrcPort		    RConn1
		    Points		    [0, 0; -15, 0]
		  }
		}
		Line {
		  SrcBlock		  "low switch"
		  SrcPort		  1
		  DstBlock		  "Terminator2"
		  DstPort		  1
		}
		Line {
		  LineType		  "Connection"
		  SrcBlock		  "high switch"
		  SrcPort		  LConn1
		  Points		  [0, 0]
		  DstBlock		  "Vcc"
		  DstPort		  RConn1
		}
		Line {
		  SrcBlock		  "on"
		  SrcPort		  1
		  Points		  [0, 0; 10, 0]
		  Branch {
		    DstBlock		    "high switch"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 75]
		    DstBlock		    "Logical\nOperator"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "high switch"
		  SrcPort		  1
		  DstBlock		  "Terminator1"
		  DstPort		  1
		}
		Line {
		  LineType		  "Connection"
		  SrcBlock		  "output Ground1"
		  SrcPort		  LConn1
		  Points		  [0, -15]
		  DstBlock		  "low switch"
		  DstPort		  LConn1
		}
		Line {
		  SrcBlock		  "Logical\nOperator"
		  SrcPort		  1
		  DstBlock		  "low switch"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "conditioning\nIa measurement"
	      Ports		      [0, 1, 0, 0, 0, 1, 1]
	      Position		      [265, 87, 305, 123]
	      ForegroundColor	      "darkGreen"
	      NamePlacement	      "alternate"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"conditioning\nIa measurement"
		Location		[631, 461, 856, 657]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Reference
		  Name			  "R1"
		  Ports			  [0, 0, 0, 0, 0, 1, 1]
		  Position		  [95, 120, 145, 150]
		  ForegroundColor	  "darkGreen"
		  NamePlacement		  "alternate"
		  SourceBlock		  "powerlib/Elements/Series RLC Branch"
		  SourceType		  "Series RLC Branch"
		  PhysicalDomain	  "powersysdomain"
		  SubClassName		  "unknown"
		  LeftPortType		  "p1"
		  RightPortType		  "p1"
		  LConnTagsString	  "__new0"
		  RConnTagsString	  "__new0"
		  Resistance		  "0.18"
		  Inductance		  "0"
		  Capacitance		  "inf"
		  Measurements		  "None"
		}
		Block {
		  BlockType		  Reference
		  Name			  "measure1"
		  Ports			  [0, 1, 0, 0, 0, 2]
		  Position		  [100, 65, 135, 85]
		  Orientation		  "up"
		  SourceBlock		  "powerlib/Measurements/Voltage Measu"
"rement"
		  SourceType		  "Voltage Measurement"
		  ShowPortLabels	  "on"
		  PhasorSimulation	  "off"
		  OutputType		  "Magnitude"
		  PSBequivalent		  "0"
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "Vin"
		  Position		  [40, 125, 60, 145]
		  Port			  "1"
		  Side			  "Left"
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "Vout"
		  Position		  [175, 125, 195, 145]
		  Orientation		  "left"
		  Port			  "2"
		  Side			  "Right"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Vmeas"
		  Position		  [105, 25, 135, 40]
		  Orientation		  "up"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "measure1"
		  SrcPort		  1
		  DstBlock		  "Vmeas"
		  DstPort		  1
		}
		Line {
		  LineType		  "Connection"
		  Points		  [160, 135; 0, -35; -35, 0]
		  DstBlock		  "measure1"
		  DstPort		  LConn2
		  Branch {
		    ConnectType		    "SRC_SRC"
		    DstBlock		    "Vout"
		    DstPort		    RConn1
		  }
		  Branch {
		    ConnectType		    "SRC_DEST"
		    SrcBlock		    "R1"
		    SrcPort		    RConn1
		    Points		    [-5, 0; 5, 0]
		  }
		}
		Line {
		  LineType		  "Connection"
		  Points		  [75, 135; 5, 0]
		  DstBlock		  "R1"
		  DstPort		  LConn1
		  Branch {
		    ConnectType		    "SRC_SRC"
		    Points		    [0, -35]
		    DstBlock		    "measure1"
		    DstPort		    LConn1
		  }
		  Branch {
		    ConnectType		    "SRC_DEST"
		    SrcBlock		    "Vin"
		    SrcPort		    RConn1
		    Points		    [0, 0]
		  }
		}
	      }
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "Vcc"
	      Position		      [30, 20, 50, 40]
	      Port		      "1"
	      Side		      "Left"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "A- out"
	      Position		      [415, 105, 435, 125]
	      Orientation	      "left"
	      Port		      "2"
	      Side		      "Right"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "A+ out"
	      Position		      [415, 150, 435, 170]
	      Orientation	      "left"
	      Port		      "3"
	      Side		      "Right"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Ia"
	      Position		      [410, 47, 440, 63]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "amplification\nup"
	      SrcPort		      RConn1
	      Points		      [0, 0]
	      DstBlock		      "conditioning\nIa measurement"
	      DstPort		      LConn1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "conditioning\nIa measurement"
	      SrcPort		      RConn1
	      Points		      [0, 0]
	      DstBlock		      "A- out"
	      DstPort		      RConn1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "amplification\ndown"
	      SrcPort		      RConn1
	      Points		      [0, 0]
	      DstBlock		      "A+ out"
	      DstPort		      RConn1
	    }
	    Line {
	      SrcBlock		      "DAC up"
	      SrcPort		      1
	      DstBlock		      "amplification\nup"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "DAC down"
	      SrcPort		      1
	      DstBlock		      "amplification\ndown"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "conditioning\nIa measurement"
	      SrcPort		      1
	      Points		      [25, 0]
	      DstBlock		      "ADC\nIa"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "ADC\nIa"
	      SrcPort		      1
	      DstBlock		      "Ia"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "A-\nin"
	      SrcPort		      1
	      DstBlock		      "DAC up"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "A+ in"
	      SrcPort		      1
	      DstBlock		      "DAC down"
	      DstPort		      1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Vcc"
	      SrcPort		      RConn1
	      Points		      [85, 0; 0, 85]
	      Branch {
		ConnectType		"DEST_SRC"
		Points			[0, 55]
		DstBlock		"amplification\ndown"
		DstPort			LConn1
	      }
	      Branch {
		ConnectType		"DEST_SRC"
		DstBlock		"amplification\nup"
		DstPort			LConn1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  Demux
	  Name			  "window kinematics"
	  Ports			  [1, 5]
	  Position		  [460, 113, 465, 177]
	  ForegroundColor	  "gray"
	  BackgroundColor	  "gray"
	  ShowName		  off
	  Outputs		  "[1,1,2,1,4]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "armature_current"
	  Position		  [445, 23, 475, 37]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "force"
	  Position		  [535, 128, 565, 142]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "position"
	  Position		  [505, 148, 535, 162]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "gear\nangle"
	  Position		  [490, 198, 520, 212]
	  Port			  "4"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "window kinematics"
	  SrcPort		  2
	  DstBlock		  "force"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "window kinematics"
	  SrcPort		  1
	  DstBlock		  "Terminator1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "window kinematics"
	  SrcPort		  4
	  DstBlock		  "position"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "window kinematics"
	  SrcPort		  5
	  DstBlock		  "Terminator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "window kinematics"
	  SrcPort		  3
	  DstBlock		  "Terminator2"
	  DstPort		  1
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "GND"
	  SrcPort		  LConn1
	  Points		  [0, -5]
	  DstBlock		  "Vbattery 12[V]"
	  DstPort		  LConn1
	}
	Line {
	  SrcBlock		  "move_up"
	  SrcPort		  1
	  DstBlock		  "window DAQ"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "move_down"
	  SrcPort		  1
	  DstBlock		  "window DAQ"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "window DAQ"
	  SrcPort		  1
	  Points		  [35, 0; 0, -105]
	  DstBlock		  "armature_current"
	  DstPort		  1
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "Vbattery 12[V]"
	  SrcPort		  RConn1
	  Points		  [0, 0]
	  Branch {
	    ConnectType		    "DEST_SRC"
	    Points		    [45, 0; 0, 145]
	    DstBlock		    "window DAQ"
	    DstPort		    LConn1
	  }
	  Branch {
	    ConnectType		    "DEST_SRC"
	    Points		    [195, 0; 0, 65]
	    DstBlock		    "process"
	    DstPort		    LConn1
	  }
	}
	Line {
	  SrcBlock		  "process"
	  SrcPort		  1
	  DstBlock		  "window kinematics"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "process"
	  SrcPort		  2
	  DstBlock		  "gear\nangle"
	  DstPort		  1
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "window DAQ"
	  SrcPort		  RConn1
	  Points		  [0, 0]
	  DstBlock		  "process"
	  DstPort		  LConn2
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "window DAQ"
	  SrcPort		  RConn2
	  Points		  [0, 0]
	  DstBlock		  "process"
	  DstPort		  LConn3
	}
      }
    }
    Line {
      SrcBlock		      "driver_switch"
      SrcPort		      1
      Points		      [20, 0; 0, -5]
      DstBlock		      "power_window_control_system"
      DstPort		      2
    }
    Line {
      SrcBlock		      "driver_switch"
      SrcPort		      2
      DstBlock		      "power_window_control_system"
      DstPort		      3
    }
    Line {
      SrcBlock		      "driver_switch"
      SrcPort		      3
      Points		      [20, 0; 0, 5]
      DstBlock		      "power_window_control_system"
      DstPort		      4
    }
    Line {
      SrcBlock		      "passenger_switch"
      SrcPort		      1
      Points		      [20, 0; 0, -5]
      DstBlock		      "power_window_control_system"
      DstPort		      5
    }
    Line {
      SrcBlock		      "passenger_switch"
      SrcPort		      2
      DstBlock		      "power_window_control_system"
      DstPort		      6
    }
    Line {
      SrcBlock		      "passenger_switch"
      SrcPort		      3
      Points		      [20, 0; 0, 5]
      DstBlock		      "power_window_control_system"
      DstPort		      7
    }
    Line {
      SrcBlock		      "power_window_control_system"
      SrcPort		      1
      DstBlock		      "window_system"
      DstPort		      1
    }
    Line {
      SrcBlock		      "power_window_control_system"
      SrcPort		      2
      DstBlock		      "window_system"
      DstPort		      2
    }
    Line {
      SrcBlock		      "window_system"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	DstBlock		"armature_current"
	DstPort			1
      }
      Branch {
	Points			[0, -30; -355, 0]
	DstBlock		"power_window_control_system"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "present"
      SrcPort		      1
      DstBlock		      "object"
      DstPort		      1
    }
    Line {
      SrcBlock		      "absent"
      SrcPort		      1
      DstBlock		      "object"
      DstPort		      2
    }
    Line {
      SrcBlock		      "object"
      SrcPort		      1
      DstBlock		      "Goto1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "window_system"
      SrcPort		      4
      DstBlock		      "Terminator"
      DstPort		      1
    }
    Line {
      SrcBlock		      "window_system"
      SrcPort		      2
      DstBlock		      "force"
      DstPort		      1
    }
    Line {
      SrcBlock		      "window_system"
      SrcPort		      3
      DstBlock		      "position"
      DstPort		      1
    }
  }
}
MatData {
  NumRecords		  2
  DataRecord {
    Tag			    DataTag1
    Data		    "  %)30     .    :     8    (    !          %    "
"\"     $    U     0         0    -0   '!O=V5R=VEN9&]W,#0O=VEN9&]W7W-Y<W1E;2]P"
"<F]C97-S+W!L86YT+W=I;F1O=R]'3D0R    "
  }
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    :     8    (    !          %    "
"\"     $    T     0         0    -    '!O=V5R=VEN9&]W,#0O=VEN9&]W7W-Y<W1E;2]P"
"<F]C97-S+W!L86YT+W=I;F1O=R]'3D0     "
  }
}

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

Stateflow {

	machine {
		id                   		1
		name                 		"powerwindow04"
		created              		"26-Nov-2001 16:45:42"
		isLibrary            		0
		firstTarget          		81
		sfVersion            		62014000
		sfDemoChecksum       		[2192632206 3815276521 1403072282 2362304147]
	}

	chart {
		id                                        		2
		name                                      		"power_window_control_system/control"
		windowPosition                            		[81.75 177 712.5 391.5]
		viewLimits                                		[0 857.427 0 455.982]
		zoomFactor                                		1.282
		screen                                    		[1 1 2304 864 1.333333333333333]
		treeNode                                  		[0 22 0 0]
		firstTransition                           		28
		viewObj                                   		2
		machine                                   		1
		decomposition                             		CLUSTER_CHART
		firstEvent                                		60
		firstData                                 		61
		chartFileNumber                           		2
		executeAtInitialization                   		1
		disableImplicitCasting                    		1
	}

	state {
		id                  		3
		labelString         		"passengerneutral\n"
						"entry:\n"
						"moveUp = 0;\n"
						"moveDown = 0;"
		position            		[324.138 38.448 108.533 69.029]
		fontSize            		12
		chart               		2
		treeNode            		[15 0 0 6]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		4
		labelString         		"emergencyDown\n"
						"entry:\n"
						"moveUp = 0;\n"
						"moveDown = 1;"
		position            		[724.059 27.423 98.524 90.095]
		fontSize            		12
		chart               		2
		treeNode            		[2 0 22 0]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		5
		labelString         		"passengerUp\n"
						"entry: moveUp = 1;\n"
						"exit: moveUp = 0;"
		position            		[453.984 138.842 235.875 128.438]
		fontSize            		12
		chart               		2
		treeNode            		[15 7 6 0]
		firstTransition     		43
		firstJunction       		24
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		6
		labelString         		"passengerDown\n"
						"entry: moveDown = 1;\n"
						"exit: moveDown = 0;"
		position            		[53.424 130.294 248.375 132.375]
		fontSize            		12
		chart               		2
		treeNode            		[15 8 3 5]
		firstTransition     		36
		firstJunction       		23
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		7
		labelString         		"iniPassengerUp"
		position            		[573.624 147.205 96.875 25]
		fontSize            		12
		chart               		2
		treeNode            		[5 0 0 9]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		8
		labelString         		"iniPassengerDown"
		position            		[184.915 144.838 107.031 25]
		fontSize            		12
		chart               		2
		treeNode            		[6 0 0 11]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		9
		labelString         		"PassengerUp"
		position            		[469.625 223.706 89.219 25]
		fontSize            		12
		chart               		2
		treeNode            		[5 0 7 10]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		10
		labelString         		"autoPassengerUp"
		position            		[570.312 236.174 103.125 25]
		fontSize            		12
		chart               		2
		treeNode            		[5 0 9 0]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		11
		labelString         		"passengerDown"
		position            		[183.925 231.919 99.844 25]
		fontSize            		12
		chart               		2
		treeNode            		[6 0 8 12]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		12
		labelString         		"autoPassengerDown"
		position            		[58.675 233.42 119.531 25]
		fontSize            		12
		chart               		2
		treeNode            		[6 0 11 0]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		13
		labelString         		"driverUp\n"
						"entry: moveUp = 1;\n"
						"exit: moveUp = 0;"
		position            		[444.39 310.898 255 117.188]
		fontSize            		12
		chart               		2
		treeNode            		[22 19 14 0]
		firstTransition     		48
		firstJunction       		26
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		14
		labelString         		"driverDown\n"
						"entry: moveDown = 1;\n"
						"exit: moveDown = 0;"
		position            		[46.386 306.332 232.187 120.937]
		fontSize            		12
		chart               		2
		treeNode            		[22 16 15 13]
		firstTransition     		45
		firstJunction       		25
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		15
		labelString         		"driverNeutral\n"
						"entry:\n"
						"moveUp = 0;\n"
						"moveDown = 0;"
		position            		[44.034 35.589 657.914 242.733]
		fontSize            		12
		chart               		2
		treeNode            		[22 3 0 14]
		firstTransition     		40
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		16
		labelString         		"iniDriverDown"
		position            		[177.241 320.448 92.5 25]
		fontSize            		12
		chart               		2
		treeNode            		[14 0 0 18]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		17
		labelString         		"DriverDown"
		position            		[172.656 397.685 85 25]
		fontSize            		12
		chart               		2
		treeNode            		[14 0 18 0]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		18
		labelString         		"autoDriverDown"
		position            		[53.344 394.498 90.156 25]
		fontSize            		12
		chart               		2
		treeNode            		[14 0 16 17]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		19
		labelString         		"iniDriverUp"
		position            		[583.984 323.601 87.344 25]
		fontSize            		12
		chart               		2
		treeNode            		[13 0 0 20]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		20
		labelString         		"DriverUp"
		position            		[467.797 386.039 89.219 25]
		fontSize            		12
		chart               		2
		treeNode            		[13 0 19 21]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		21
		labelString         		"autoDriverUp"
		position            		[599.265 398.508 86.406 25]
		fontSize            		12
		chart               		2
		treeNode            		[13 0 20 0]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		22
		labelString         		"safe"
		position            		[24.804 12.073 689.036 423.334]
		fontSize            		12
		chart               		2
		treeNode            		[2 15 0 4]
		firstTransition     		58
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	junction {
		id         		23
		position   		[197.2281 204.6495 7]
		chart      		2
		linkNode   		[6 0 0]
		subviewer  		2
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		24
		position   		[569.9133 203.0124 7]
		chart      		2
		linkNode   		[5 0 0]
		subviewer  		2
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		25
		position   		[171.8554 380.3945 7]
		chart      		2
		linkNode   		[14 0 0]
		subviewer  		2
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		26
		position   		[577.1478 373.7835 7]
		chart      		2
		linkNode   		[13 0 0]
		subviewer  		2
		type       		CONNECTIVE_JUNCTION
	}

	transition {
		id             		27
		labelString    		"[passenger[1]]"
		labelPosition  		[78.64 195.508 77.861 16.285]
		fontSize       		12
		src {
			id          		23
			intersection		[0 -0.9717 -0.236 -1 190.4259 202.9974 0 38.3768]
		}
		dst {
			id          		12
			intersection		[1 0 -1 0.8025 154.6007 233.4195 0 -51.625]
		}
		midPoint       		[165.8954 207.4966]
		chart          		2
		linkNode       		[6 36 39]
		dataLimits     		[152.201 190.426 202.133 233.42]
		stampAngle     		-1.2249
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
			arcL          		-23.6048
			arcClockDir   		1
		}
		executionOrder 		1
	}

	transition {
		id             		28
		labelString    		"[endstop | after(100,ticks)]"
		labelPosition  		[523.2 36.781 137.458 16.285]
		fontSize       		12
		src {
			id          		4
			intersection		[4 -1 0 0.6668 724.0587 57.4437 0 -1.0522]
		}
		dst {
			id          		3
			intersection		[2 1 0 0.2752 432.6708 57.4437 0 1.0522]
		}
		midPoint       		[576.2909 57.4437]
		chart          		2
		linkNode       		[2 0 59]
		dataLimits     		[432.671 724.059 55.044 59.844]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		29
		labelString    		"[obstacle]"
		labelPosition  		[726.65 156.576 52.868 16.285]
		fontSize       		12
		src {
			id          		22
			intersection		[2 1 0 0.34 713.8395 156.0148 0 83.5443]
		}
		dst {
			id          		4
			intersection		[3 0 1 0.6093 762.5552 117.5173 0 -83.5437]
		}
		midPoint       		[747.1948 147.8557]
		chart          		2
		linkNode       		[2 59 0]
		dataLimits     		[713.84 764.955 117.517 156.015]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		30
		labelString    		"[passenger[1]]"
		labelPosition  		[316.975 180.602 77.861 16.285]
		fontSize       		12
		src {
			id          		11
			intersection		[1 0 -1 0.9216 275.9375 231.9185 0 -7.831]
		}
		dst {
			id          		3
			intersection		[3 0 1 0.7224 354.2672 107.4773 0 -30.1294]
		}
		midPoint       		[330.2037 168.1204]
		chart          		2
		linkNode       		[15 34 31]
		dataLimits     		[275.938 356.667 107.477 231.918]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
			midPointSticky		1
		}
		executionOrder 		1
	}

	transition {
		id             		31
		labelString    		"[endstop]"
		labelPosition  		[279.362 115.227 50.946 16.285]
		fontSize       		12
		src {
			id          		6
			intersection		[2 1 0 0.2218 301.7993 159.6517 0 29.3577]
		}
		dst {
			id          		3
			intersection		[3 0 1 0.8745 337.7589 107.4773 0 -13.6209]
		}
		midPoint       		[328.513 144.3744]
		chart          		2
		linkNode       		[15 30 32]
		dataLimits     		[301.799 340.159 107.477 159.652]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		32
		labelString    		"[passenger[1]]"
		labelPosition  		[357.716 161.597 77.861 16.285]
		fontSize       		12
		src {
			id          		9
			intersection		[1 0 -1 0.0988 478.4375 223.7055 0 8.8125]
		}
		dst {
			id          		3
			intersection		[3 0 1 0.22 408.7942 107.4773 0 23.8766]
		}
		midPoint       		[441.3463 167.5344]
		chart          		2
		linkNode       		[15 31 33]
		dataLimits     		[406.394 478.438 107.477 223.705]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		33
		labelString    		"[endstop]"
		labelPosition  		[430.593 117.401 50.946 16.285]
		fontSize       		12
		src {
			id          		5
			intersection		[4 -1 0 0.873 453.9837 155.1565 0 -16.3145]
		}
		dst {
			id          		3
			intersection		[3 0 1 0.1232 419.3002 107.4773 0 13.3706]
		}
		midPoint       		[428.4755 141.6997]
		chart          		2
		linkNode       		[15 32 37]
		dataLimits     		[416.9 453.984 107.477 155.156]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		2
	}

	transition {
		id             		34
		labelString    		"[passenger[3]]"
		labelPosition  		[204.291 86.763 77.861 16.285]
		fontSize       		12
		src {
			id          		3
			intersection		[4 -1 0 0.1188 324.1378 99.2762 0 8.2011]
		}
		dst {
			id          		8
			intersection		[1 0 -1 0.5913 248.2059 144.8383 0 -43.7404]
		}
		midPoint       		[273.1295 107.7528]
		chart          		2
		linkNode       		[15 35 30]
		dataLimits     		[245.806 324.138 99.22 144.838]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		2
	}

	transition {
		id             		35
		labelString    		"[passenger[2]]"
		labelPosition  		[473.321 85.268 77.861 16.285]
		fontSize       		12
		src {
			id          		3
			intersection		[2 1 0 0.5715 432.6708 77.8977 0 -29.5796]
		}
		dst {
			id          		7
			intersection		[1 0 -1 0.3805 610.4885 147.2053 0 36.8643]
		}
		midPoint       		[550.15 85.7033]
		chart          		2
		linkNode       		[15 40 34]
		dataLimits     		[432.671 612.889 75.957 147.205]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		36
		labelString    		"after(100,ticks)"
		labelPosition  		[220.211 176.124 79.783 16.285]
		fontSize       		12
		src {
			id          		8
			intersection		[3 0 1 0.614 226.2323 169.8383 0 0]
		}
		dst {
			id          		23
			intersection		[0 -0.0839 -0.9965 -1 196.6408 197.6742 0 0]
		}
		midPoint       		[209.6709 179.9956]
		chart          		2
		linkNode       		[6 0 27]
		dataLimits     		[193.578 226.232 169.838 197.674]
		stampAngle     		-6.1992
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
			arcL          		-29.0042
		}
		executionOrder 		1
	}

	transition {
		id             		37
		labelString    		"[passenger[2]]"
		labelPosition  		[336.577 218.311 77.861 16.285]
		fontSize       		12
		src {
			id          		6
			intersection		[2 1 0 0.7985 301.799 235.9985 0 -0.2073]
		}
		dst {
			id          		9
			intersection		[4 -1 0 0.5083 469.625 235.9985 0 0.2073]
		}
		midPoint       		[385.0998 235.9982]
		chart          		2
		linkNode       		[15 33 38]
		dataLimits     		[301.799 469.625 233.599 238.399]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		2
	}

	transition {
		id             		38
		labelString    		"[passenger[3]]"
		labelPosition  		[341.411 250.845 77.861 16.285]
		fontSize       		12
		src {
			id          		5
			intersection		[4 -1 0 0.1324 453.9837 250.2789 0 6.2935]
		}
		dst {
			id          		11
			intersection		[2 1 0 0.7344 283.7685 250.2789 0 -6.2935]
		}
		midPoint       		[369.4365 250.2789]
		chart          		2
		linkNode       		[15 37 0]
		dataLimits     		[283.769 453.984 247.879 252.679]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		39
		labelPosition  		[223.461 216.412 8.651 16.285]
		fontSize       		12
		src {
			id          		23
			intersection		[0 0.5694 0.822 -1 201.2142 210.4037 0 0]
		}
		dst {
			id          		11
			intersection		[1 0 -1 0.5207 235.918 231.9185 0 0]
		}
		midPoint       		[222.4718 216.2913]
		chart          		2
		linkNode       		[6 27 0]
		dataLimits     		[201.214 238.318 210.404 231.918]
		stampAngle     		0.6058
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
			arcL          		38.6899
		}
		executionOrder 		2
	}

	transition {
		id             		40
		labelPosition  		[293.7 39.222 8.651 16.285]
		fontSize       		12
		src {
			intersection		[0 1 0 0 285.7719 60.5582 0 0]
		}
		dst {
			id          		3
			intersection		[4 -1 0 0.6797 324.1378 60.5582 0 0]
		}
		midPoint       		[301.5281 60.5582]
		chart          		2
		linkNode       		[15 0 35]
		dataLimits     		[285.772 324.138 58.158 62.958]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		41
		labelPosition  		[483.799 187.986 8.651 16.285]
		fontSize       		12
		src {
			id          		24
			intersection		[0 -1 0 -1 562.9133 203.0124 0 38.3768]
		}
		dst {
			id          		9
			intersection		[1 0 -1 0.6155 524.5391 223.7055 0 -51.625]
		}
		midPoint       		[538.9349 202.1289]
		chart          		2
		linkNode       		[5 43 42]
		dataLimits     		[522.139 562.913 201.1 223.706]
		stampAngle     		-1.0796
		subviewer      		2
		slide {
			sticky        		BOTH_STICK
			arcL          		-23.6048
			arcClockDir   		1
		}
		executionOrder 		2
	}

	transition {
		id             		42
		labelString    		"[passenger[1]]"
		labelPosition  		[606.286 203.779 77.861 16.285]
		fontSize       		12
		src {
			id          		24
			intersection		[0 0.9859 0.1674 -1 576.8146 204.1842 0 0]
		}
		dst {
			id          		10
			intersection		[1 0 -1 0.3631 607.7558 236.174 0 0]
		}
		midPoint       		[598.5298 212.0559]
		chart          		2
		linkNode       		[5 41 0]
		dataLimits     		[576.815 610.156 204.184 236.174]
		stampAngle     		1.3906
		subviewer      		2
		slide {
			sticky        		BOTH_STICK
			arcL          		38.6899
		}
		executionOrder 		1
	}

	transition {
		id             		43
		labelString    		"after(100,ticks)"
		labelPosition  		[610.936 180.358 79.783 16.285]
		fontSize       		12
		src {
			id          		7
			intersection		[3 0 1 0.547 617.5086 172.2053 0 0]
		}
		dst {
			id          		24
			intersection		[0 0.5304 -0.8477 -1 573.6261 197.0785 0 0]
		}
		midPoint       		[599.1351 182.8638]
		chart          		2
		linkNode       		[5 0 41]
		dataLimits     		[573.626 617.509 172.205 197.078]
		stampAngle     		-0.4392
		subviewer      		2
		slide {
			sticky        		BOTH_STICK
			arcL          		-29.0042
		}
		executionOrder 		1
	}

	transition {
		id             		44
		labelString    		"[driver[3]]"
		labelPosition  		[155.606 284.806 49.023 16.285]
		fontSize       		12
		src {
			id          		15
			intersection		[3 0 1 0.7494 208.8898 278.3215 0 16.6358]
		}
		dst {
			id          		16
			intersection		[1 0 -1 0.3422 208.8898 320.448 0 -16.6358]
		}
		midPoint       		[208.8898 296.0398]
		chart          		2
		linkNode       		[22 58 54]
		dataLimits     		[206.49 211.29 278.322 320.448]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		2
	}

	transition {
		id             		45
		labelString    		"after(100,ticks)"
		labelPosition  		[193.284 355.184 79.783 16.285]
		fontSize       		12
		src {
			id          		16
			intersection		[3 0 1 0.6777 207.0538 345.448 0 0]
		}
		dst {
			id          		25
			intersection		[0 0.2169 -0.9762 -1 173.3737 373.5611 0 0]
		}
		midPoint       		[190.4959 356.9204]
		chart          		2
		linkNode       		[14 0 46]
		dataLimits     		[172.766 207.054 345.448 373.561]
		stampAngle     		-0.0657
		subviewer      		2
		slide {
			sticky        		BOTH_STICK
			arcL          		-29.0042
		}
		executionOrder 		1
	}

	transition {
		id             		46
		labelString    		"[driver[1]]"
		labelPosition  		[62.718 368.204 49.023 16.285]
		fontSize       		12
		src {
			id          		25
			intersection		[0 -0.9191 -0.3939 -1 165.4217 377.6372 0 38.3768]
		}
		dst {
			id          		18
			intersection		[1 0 -1 0.7377 119.8523 394.498 0 -51.625]
		}
		midPoint       		[140.6879 371.2781]
		chart          		2
		linkNode       		[14 45 47]
		dataLimits     		[117.452 165.422 371.111 394.498]
		stampAngle     		-0.8664
		subviewer      		2
		slide {
			sticky        		BOTH_STICK
			arcL          		-23.6048
			arcClockDir   		1
		}
		executionOrder 		1
	}

	transition {
		id             		47
		labelPosition  		[188.571 367.719 8.651 16.285]
		fontSize       		12
		src {
			id          		25
			intersection		[0 0.9947 0.1029 -1 178.8183 381.1148 0 0]
		}
		dst {
			id          		17
			intersection		[1 0 -1 0.4299 209.1978 397.6853 0 0]
		}
		midPoint       		[198.828 383.2143]
		chart          		2
		linkNode       		[14 46 0]
		dataLimits     		[178.818 211.598 381.115 397.685]
		stampAngle     		1.4214
		subviewer      		2
		slide {
			sticky        		BOTH_STICK
			arcL          		38.6899
		}
		executionOrder 		2
	}

	transition {
		id             		48
		labelString    		"after(100,ticks)"
		labelPosition  		[621.046 350.571 79.783 16.285]
		fontSize       		12
		src {
			id          		19
			intersection		[3 0 1 0.547 623.5507 348.601 0 0]
		}
		dst {
			id          		26
			intersection		[0 0.5304 -0.8477 -1 580.8606 367.8496 0 0]
		}
		midPoint       		[605.6555 356.8862]
		chart          		2
		linkNode       		[13 0 49]
		dataLimits     		[580.861 623.551 348.601 367.85]
		stampAngle     		-0.294
		subviewer      		2
		slide {
			sticky        		BOTH_STICK
			arcL          		-29.0042
		}
		executionOrder 		1
	}

	transition {
		id             		49
		labelPosition  		[481.972 350.321 8.651 16.285]
		fontSize       		12
		src {
			id          		26
			intersection		[0 -1 0 -1 570.1478 373.7835 0 38.3768]
		}
		dst {
			id          		20
			intersection		[1 0 -1 0.6155 522.7114 386.0388 0 -51.625]
		}
		midPoint       		[544.2226 366.3693]
		chart          		2
		linkNode       		[13 48 50]
		dataLimits     		[520.311 570.148 366.342 386.039]
		stampAngle     		-0.5468
		subviewer      		2
		slide {
			sticky        		BOTH_STICK
			arcL          		-23.6048
			arcClockDir   		1
		}
		executionOrder 		2
	}

	transition {
		id             		50
		labelString    		"[driver[1]]"
		labelPosition  		[646.155 372.8 49.023 16.285]
		fontSize       		12
		src {
			id          		26
			intersection		[0 0.9859 0.1674 -1 584.0491 374.9553 0 0]
		}
		dst {
			id          		21
			intersection		[1 0 -1 0.4672 639.6345 398.5075 0 0]
		}
		midPoint       		[622.4962 377.6228]
		chart          		2
		linkNode       		[13 49 0]
		dataLimits     		[584.049 642.034 374.955 398.507]
		stampAngle     		0.6728
		subviewer      		2
		slide {
			sticky        		BOTH_STICK
			arcL          		38.6899
		}
		executionOrder 		1
	}

	transition {
		id             		51
		labelString    		"[driver[3]]"
		labelPosition  		[345.655 412.231 49.023 16.285]
		fontSize       		12
		src {
			id          		13
			intersection		[4 -1 0 0.1529 444.39 410.165 0 -7.878]
		}
		dst {
			id          		17
			intersection		[2 1 0 0.4992 257.6563 410.165 0 -0.0202]
		}
		midPoint       		[351.2244 410.165]
		chart          		2
		linkNode       		[22 52 0]
		dataLimits     		[257.656 444.39 407.765 412.565]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		52
		labelString    		"[driver[2]]"
		labelPosition  		[352.374 381.421 49.023 16.285]
		fontSize       		12
		src {
			id          		14
			intersection		[2 1 0 0.7607 278.5735 398.3314 0 -0.2073]
		}
		dst {
			id          		20
			intersection		[4 -1 0 0.5083 467.7972 398.3314 0 0.2073]
		}
		midPoint       		[373.0382 398.3314]
		chart          		2
		linkNode       		[22 53 51]
		dataLimits     		[278.574 467.797 395.931 400.731]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		2
	}

	transition {
		id             		53
		labelString    		"[driver[2]]"
		labelPosition  		[637.203 285.571 49.023 16.285]
		fontSize       		12
		src {
			id          		15
			intersection		[3 0 1 0.11 629.5477 278.3215 0 -0.7193]
		}
		dst {
			id          		19
			intersection		[1 0 -1 0.5217 629.5477 323.601 0 0.7193]
		}
		midPoint       		[629.5477 297.6849]
		chart          		2
		linkNode       		[22 57 52]
		dataLimits     		[627.148 631.948 278.322 323.601]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		54
		labelString    		"[driver[1]]"
		labelPosition  		[295.625 361.73 49.023 16.285]
		fontSize       		12
		src {
			id          		17
			intersection		[1 0 -1 0.9153 250.455 397.6853 0 35.2987]
		}
		dst {
			id          		15
			intersection		[3 0 1 0.5335 350.9375 278.3215 0 -135.7813]
		}
		midPoint       		[295.2142 361.4472]
		chart          		2
		linkNode       		[22 44 56]
		dataLimits     		[250.455 353.337 278.322 397.685]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
			midPointSticky		1
		}
		executionOrder 		1
	}

	transition {
		id             		55
		labelString    		"[driver[1]]"
		labelPosition  		[386.269 361.344 49.023 16.285]
		fontSize       		12
		src {
			id          		20
			intersection		[1 0 -1 0.0877 475.625 386.0388 0 -36.7816]
		}
		dst {
			id          		15
			intersection		[3 0 1 0.4673 394.5313 278.3215 0 124.4379]
		}
		midPoint       		[417.3941 349.307]
		chart          		2
		linkNode       		[22 56 57]
		dataLimits     		[392.131 475.625 278.322 386.039]
		subviewer      		2
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		56
		labelString    		"[endstop]"
		labelPosition  		[251.091 289.045 50.946 16.285]
		fontSize       		12
		src {
			id          		14
			intersection		[2 1 0 0.2461 278.5735 336.0938 0 145.8551]
		}
		dst {
			id          		15
			intersection		[3 0 1 0.6064 302.9688 278.3215 0 -140.4889]
		}
		midPoint       		[299.0501 317.75]
		chart          		2
		linkNode       		[22 54 55]
		dataLimits     		[278.574 305.369 278.322 336.094]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		57
		labelString    		"[endstop]"
		labelPosition  		[426.755 297.341 50.946 16.285]
		fontSize       		12
		src {
			id          		13
			intersection		[4 -1 0 0.7817 444.39 336.4844 0 -153.0866]
		}
		dst {
			id          		15
			intersection		[3 0 1 0.4264 421.4219 278.3215 0 150.4684]
		}
		midPoint       		[424.6947 317.9094]
		chart          		2
		linkNode       		[22 55 53]
		dataLimits     		[419.022 444.39 278.322 336.484]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		2
	}

	transition {
		id             		58
		labelPosition  		[28.919 66.139 8.651 16.285]
		fontSize       		12
		src {
			intersection		[0 0 0 0 30.7813 65.1563 0 0]
		}
		dst {
			id          		15
			intersection		[4 -1 0 0.876 44.034 65.6878 0 0]
		}
		midPoint       		[33.4336 65.5028]
		chart          		2
		linkNode       		[22 0 44]
		dataLimits     		[30.781 44.034 63.288 68.088]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		59
		labelPosition  		[11.948 60.901 8.651 16.285]
		fontSize       		12
		src {
			intersection		[0 1 0 0 7.5 60.9018 0 0]
		}
		dst {
			id          		22
			intersection		[4 -1 0 0.8847 24.8038 60.9018 0 0]
		}
		midPoint       		[12.2673 60.9018]
		chart          		2
		linkNode       		[2 28 29]
		dataLimits     		[7.5 24.804 58.502 63.302]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	event {
		id         		60
		name       		"ticks"
		linkNode   		[2 0 0]
		scope      		INPUT_EVENT
		trigger    		EITHER_EDGE_EVENT
		machine    		1
	}

	data {
		id                            		61
		name                          		"moveUp"
		linkNode                      		[2 0 62]
		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                            		62
		name                          		"moveDown"
		linkNode                      		[2 61 63]
		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                            		63
		name                          		"endstop"
		linkNode                      		[2 62 64]
		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                            		64
		name                          		"obstacle"
		linkNode                      		[2 63 65]
		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                            		65
		name                          		"driver"
		linkNode                      		[2 64 66]
		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		""
			}
			array {
				size      		"3"
				firstIndex		"1"
			}
		}
	}

	data {
		id                            		66
		name                          		"passenger"
		linkNode                      		[2 65 0]
		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		""
			}
			array {
				size      		"3"
				firstIndex		"1"
			}
		}
	}

	instance {
		id     		67
		name   		"power_window_control_system/control"
		machine		1
		chart  		2
	}

	chart {
		id                                        		68
		name                                      		"power_window_control_system/detect_obstacle_endstop/detect_obstac"
					"le/delay_detection"
		windowPosition                            		[318 132 469.5 246]
		viewLimits                                		[0 532.5 0 262.5]
		zoomFactor                                		1.25
		screen                                    		[1 1 1152 864 1.333333333333333]
		treeNode                                  		[0 70 0 0]
		firstTransition                           		72
		viewObj                                   		68
		machine                                   		1
		toolbarMode                               		LIBRARY_TOOLBAR
		decomposition                             		CLUSTER_CHART
		firstEvent                                		77
		firstData                                 		78
		chartFileNumber                           		4
		executeAtInitialization                   		1
	}

	state {
		id                  		69
		labelString         		"detect"
		position            		[245.4515 132.2294 65.5643 34.8102]
		fontSize            		12
		chart               		68
		treeNode            		[68 0 71 0]
		subviewer           		68
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
		outputData          		78
	}

	state {
		id                  		70
		labelString         		"off"
		position            		[39.203 28.8405 75.4029 37.9925]
		fontSize            		12
		chart               		68
		treeNode            		[68 0 0 71]
		subviewer           		68
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		71
		labelString         		"hold"
		position            		[169.8265 75.0419 65.5643 34.8102]
		fontSize            		12
		chart               		68
		treeNode            		[68 0 70 69]
		subviewer           		68
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	transition {
		id             		72
		labelPosition  		[11.38 15.889 8.423 16.815]
		fontSize       		12
		src {
			intersection		[0 0 0 0 12.9688 33.2526 0 0]
		}
		dst {
			id          		70
			intersection		[4 -1 0 0.902 39.203 32.5638 0 0]
		}
		midPoint       		[22.3943 32.8035]
		chart          		68
		linkNode       		[68 0 73]
		dataLimits     		[12.969 39.203 30.164 34.964]
		subviewer      		68
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		73
		labelString    		"[move_up]"
		labelPosition  		[181.649 24.006 57.087 16.815]
		fontSize       		12
		src {
			id          		70
			intersection		[2 1 0 0.5603 114.6059 50.1276 0 -16.7054]
		}
		dst {
			id          		71
			intersection		[1 0 -1 0.5818 207.9688 75.0419 0 38.1422]
		}
		midPoint       		[175.8616 46.5559]
		chart          		68
		linkNode       		[68 72 74]
		dataLimits     		[114.606 210.369 45.474 75.042]
		subviewer      		68
		drawStyle      		SMART
		slide {
			mode          		MIRROR_SLIDE
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		74
		labelString    		"[~move_up]"
		labelPosition  		[92.304 146.211 64.574 16.815]
		fontSize       		12
		src {
			id          		69
			intersection		[4 -1 0 0.423 245.4515 152.3151 0 -20.0857]
		}
		dst {
			id          		70
			intersection		[3 0 1 0.8651 49.375 66.833 0 65.2309]
		}
		midPoint       		[115.4968 138.8963]
		chart          		68
		linkNode       		[68 73 76]
		dataLimits     		[46.975 245.452 66.833 153.327]
		subviewer      		68
		drawStyle      		SMART
		slide {
			mode          		MIRROR_SLIDE
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		75
		labelString    		"[after(100,ticks)]"
		labelPosition  		[265.705 90.798 89.842 16.815]
		fontSize       		12
		src {
			id          		71
			intersection		[2 1 0 0.6578 235.3908 97.9401 0 -11.9121]
		}
		dst {
			id          		69
			intersection		[1 0 -1 0.2839 264.0625 132.2294 0 18.611]
		}
		midPoint       		[255.9951 106.1224]
		chart          		68
		linkNode       		[68 76 0]
		dataLimits     		[235.391 266.462 97.94 132.229]
		subviewer      		68
		drawStyle      		SMART
		slide {
			mode          		MIRROR_SLIDE
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		76
		labelString    		"[~move_up]"
		labelPosition  		[101.196 91.945 64.574 16.815]
		fontSize       		12
		src {
			id          		71
			intersection		[4 -1 0 0.4769 169.8265 93.2526 0 -18.2106]
		}
		dst {
			id          		70
			intersection		[3 0 1 0.4051 84.0625 66.833 0 30.5434]
		}
		midPoint       		[113.44 95.1257]
		chart          		68
		linkNode       		[68 74 75]
		dataLimits     		[81.662 169.826 66.833 96.692]
		subviewer      		68
		drawStyle      		SMART
		slide {
			mode          		MIRROR_SLIDE
			sticky        		BOTH_STICK
		}
		executionOrder 		2
	}

	event {
		id         		77
		name       		"ticks"
		linkNode   		[68 0 0]
		scope      		INPUT_EVENT
		trigger    		EITHER_EDGE_EVENT
		machine    		1
	}

	data {
		id                            		78
		name                          		"detect"
		linkNode                      		[68 0 79]
		scope                         		OUTPUT_DATA
		outputState                   		69
		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                            		79
		name                          		"move_up"
		linkNode                      		[68 78 0]
		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		""
			}
		}
	}

	instance {
		id     		80
		name   		"power_window_control_system/detect_obstacle_endstop/detect_obstac"
					"le/delay_detection"
		machine		1
		chart  		68
	}

	target {
		id                        		81
		name                      		"sfun"
		description               		"Default Simulink S-Function Target."
		machine                   		1
		linkNode                  		[1 0 0]
	}
}
