Model {
  Name			  "controller_position"
  Version		  9.2
  SavedCharacterEncoding  "windows-1252"
  GraphicalInterface {
    NumRootInports	    0
    NumRootOutports	    0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.11"
    NumModelReferences	    0
    NumTestPointedSignals   0
    NumProvidedFunctions    0
    NumRequiredFunctions    0
    NumResetEvents	    0
    HasInitializeEvent	    0
    HasTerminateEvent	    0
    PreCompExecutionDomainType "Unset"
    IsExportFunctionModel   0
    NumParameterArguments   0
    NumExternalFileReferences 12
    ExternalFileReference {
      Reference		      "MCHP_Blockset/System Configuration/Microchip Master"
      Path		      "controller_position/Microchip Master"
      SID		      "4"
      Type		      "LIBRARY_BLOCK"
    }
    ExternalFileReference {
      Reference		      "simulink/Discrete/Discrete Derivative"
      Path		      "controller_position/PID2/Discrete Derivative"
      SID		      "156"
      Type		      "LIBRARY_BLOCK"
    }
    ExternalFileReference {
      Reference		      "MCHP_Blockset/Digital IO/Digital Input"
      Path		      "controller_position/PWM output/Button 1"
      SID		      "176"
      Type		      "LIBRARY_BLOCK"
    }
    ExternalFileReference {
      Reference		      "MCHP_Blockset/Digital IO/Digital Output"
      Path		      "controller_position/PWM output/Digital Output1"
      SID		      "24"
      Type		      "LIBRARY_BLOCK"
    }
    ExternalFileReference {
      Reference		      "MCHP_Blockset/Digital IO/Digital Output"
      Path		      "controller_position/PWM output/Direction"
      SID		      "179"
      Type		      "LIBRARY_BLOCK"
    }
    ExternalFileReference {
      Reference		      "MCHP_Blockset/PWM IO/PWM"
      Path		      "controller_position/PWM output/PWM"
      SID		      "27"
      Type		      "LIBRARY_BLOCK"
    }
    ExternalFileReference {
      Reference		      "MCHP_Blockset/System Info/Port Info"
      Path		      "controller_position/Port Info"
      SID		      "5"
      Type		      "LIBRARY_BLOCK"
    }
    ExternalFileReference {
      Reference		      "MCHP_Blockset/QEI/QEI"
      Path		      "controller_position/QEI"
      SID		      "6"
      Type		      "LIBRARY_BLOCK"
    }
    ExternalFileReference {
      Reference		      "MCHP_Blockset/Analog IO/ADC"
      Path		      "controller_position/Subsystem/ADC"
      SID		      "171"
      Type		      "LIBRARY_BLOCK"
    }
    ExternalFileReference {
      Reference		      "MCHP_Blockset/BUS UART/UART Configuration"
      Path		      "controller_position/UART Configuration"
      SID		      "31"
      Type		      "LIBRARY_BLOCK"
    }
    ExternalFileReference {
      Reference		      "MCHP_Blockset/BUS UART/UART Tx-Matlab"
      Path		      "controller_position/UART Tx-Matlab"
      SID		      "32"
      Type		      "LIBRARY_BLOCK"
    }
    ExternalFileReference {
      Reference		      "MCHP_Blockset/BUS UART/picgui\nGraphical interface"
      Path		      "controller_position/picgui Graphical interface"
      SID		      "33"
      Type		      "LIBRARY_BLOCK"
    }
    OrderedModelArguments   1
  }
  DiagnosticSuppressor	  "on"
  LogicAnalyzerPlugin	  "on"
  SLCCPlugin		  "on"
  WebScopes_FoundationPlugin "on"
  NotesPlugin		  "on"
  ScopeRefreshTime	  0.035000
  OverrideScopeRefreshTime on
  DisableAllScopes	  off
  DataTypeOverride	  "UseLocalSettings"
  DataTypeOverrideAppliesTo "AllNumericTypes"
  MinMaxOverflowLogging	  "UseLocalSettings"
  MinMaxOverflowArchiveMode "Overwrite"
  FPTRunName		  "Run 1"
  MaxMDLFileLineLength	  120
  InitFcn		  "\n%% Calculated parameters\n\n\nKi=0.342\nIi=5.956"
  LastSavedArchitecture	  "win64"
  Object {
    $PropName		    "BdWindowsInfo"
    $ObjectID		    1
    $ClassName		    "Simulink.BDWindowsInfo"
    Object {
      $PropName		      "WindowsInfo"
      $ObjectID		      2
      $ClassName	      "Simulink.WindowInfo"
      IsActive		      [1]
      Location		      [-8.0, -8.0, 1552.0, 840.0]
      Object {
	$PropName		"ModelBrowserInfo"
	$ObjectID		3
	$ClassName		"Simulink.ModelBrowserInfo"
	Visible			[0]
	DockPosition		"Left"
	Width			[50]
	Height			[50]
	Filter			[9]
      }
      Object {
	$PropName		"ExplorerBarInfo"
	$ObjectID		4
	$ClassName		"Simulink.ExplorerBarInfo"
	Visible			[1]
      }
      Array {
	Type			"Simulink.EditorInfo"
	Dimension		3
	Object {
	  $ObjectID		  5
	  IsActive		  [1]
	  ViewObjType		  "SimulinkTopLevel"
	  LoadSaveID		  "0"
	  Extents		  [1498.0, 598.0]
	  ZoomFactor		  [0.8]
	  Offset		  [505.6909848970638, 136.63257024955266]
	}
	Object {
	  $ObjectID		  6
	  IsActive		  [0]
	  ViewObjType		  "SimulinkSubsys"
	  LoadSaveID		  "14"
	  Extents		  [1498.0, 598.0]
	  ZoomFactor		  [1.25]
	  Offset		  [21.751041666666652, -70.899999999999949]
	}
	Object {
	  $ObjectID		  7
	  IsActive		  [0]
	  ViewObjType		  "StateflowChart"
	  LoadSaveID		  "177"
	  Extents		  [1498.0, 598.0]
	  ZoomFactor		  [1.25]
	  Offset		  [-31.388099779815509, 118.4594735597979]
	}
	PropName		"EditorsInfo"
      }
      Object {
	$PropName		"DockComponentsInfo"
	$ObjectID		8
	$ClassName		"Simulink.DockComponentInfo"
	Type			"GLUE2:PropertyInspector"
	ID			"Property Inspector"
	Visible			[0]
	CreateCallback		""
	UserData		""
	Floating		[0]
	DockPosition		"Right"
	Width			[640]
	Height			[480]
      }
      WindowState	      "AAAA/wAAAAD9AAAAAgAAAAAAAAC9AAAB+PwCAAAAA/sAAAAWAEQAbwBjAGsAVwBpAGQAZwBlAHQAMwEAAAAxAAAB+AAAA"
      "AAAAAAA+wAAABYARABvAGMAawBXAGkAZABnAGUAdAA0AAAAAAD/////AAAAAAAAAAD7AAAAUgBHAEwAVQBFADIAIAB0AHIAZQBlACAAYwBvAG0Ac"
      "ABvAG4AZQBuAHQALwBHAEwAVQBFADIAIAB0AHIAZQBlACAAYwBvAG0AcABvAG4AZQBuAHQAAAAAAP////8AAABjAP///wAAAAEAAAAAAAAAAPwCA"
      "AAAAfsAAABUAEcATABVAEUAMgA6AFAAcgBvAHAAZQByAHQAeQBJAG4AcwBwAGUAYwB0AG8AcgAvAFAAcgBvAHAAZQByAHQAeQAgAEkAbgBzAHAAZ"
      "QBjAHQAbwByAAAAAAD/////AAAAOQD///8AAAYAAAACkwAAAAEAAAACAAAAAQAAAAL8AAAAAQAAAAIAAAAA"
    }
  }
  HideAutomaticNames	  on
  Created		  "Tue Jun 09 10:32:32 2020"
  Creator		  "Student"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "42077"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Fri Jun 19 11:45:00 2020"
  RTWModifiedTimeStamp	  514467900
  ModelVersionFormat	  "1.%<AutoIncrement:11>"
  SampleTimeColors	  off
  SampleTimeAnnotations	  off
  LibraryLinkDisplay	  "disabled"
  WideLines		  off
  ShowLineDimensions	  off
  ShowPortDataTypes	  off
  ShowAllPropagatedSignalLabels	off
  PortDataTypeDisplayFormat "AliasTypeOnly"
  ShowEditTimeErrors	  on
  ShowEditTimeWarnings	  on
  ShowEditTimeAdvisorChecks off
  ShowPortUnits		  off
  ShowDesignRanges	  off
  ShowLoopsOnError	  on
  IgnoreBidirectionalLines off
  ShowStorageClass	  off
  ShowTestPointIcons	  on
  ShowSignalResolutionIcons on
  ShowViewerIcons	  on
  SortedOrder		  off
  VariantCondition	  off
  ShowSubsystemDomainSpec off
  ExecutionContextIcon	  off
  ShowLinearizationAnnotations on
  ShowVisualizeInsertedRTB on
  ShowMarkup		  on
  BlockNameDataTip	  off
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip	off
  BlockVariantConditionDataTip off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  FunctionConnectors	  off
  BrowserLookUnderMasks	  off
  MultiThreadCoSim	  on
  SimulationMode	  "normal"
  PauseTimes		  "5"
  NumberOfSteps		  1
  SnapshotBufferSize	  10
  SnapshotInterval	  10
  NumberOfLastSnapshots	  0
  EnablePacing		  off
  PacingRate		  1
  LinearizationMsg	  "none"
  Profile		  off
  ParamWorkspaceSource	  "MATLABWorkspace"
  AccelSystemTargetFile	  "accel.tlc"
  AccelTemplateMakefile	  "accel_default_tmf"
  AccelMakeCommand	  "make_rtw"
  TryForcingSFcnDF	  off
  Object {
    $PropName		    "DataLoggingOverride"
    $ObjectID		    9
    $ClassName		    "Simulink.SimulationData.ModelLoggingInfo"
    model_		    "controller_position"
    overrideMode_	    [0.0]
    Array {
      Type		      "Cell"
      Dimension		      1
      Cell		      "controller_position"
      PropName		      "logAsSpecifiedByModels_"
    }
    Array {
      Type		      "Cell"
      Dimension		      1
      Cell		      []
      PropName		      "logAsSpecifiedByModelsSSIDs_"
    }
  }
  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 on
  ShowModelReferenceBlockVersion off
  ShowModelReferenceBlockIO off
  OrderedModelArguments	  on
  Array {
    Type		    "Handle"
    Dimension		    1
    Simulink.ConfigSet {
      $ObjectID		      10
      Version		      "1.18.1"
      DisabledProps	      []
      Description	      ""
      Array {
	Type			"Handle"
	Dimension		10
	Simulink.SolverCC {
	  $ObjectID		  11
	  Version		  "1.18.1"
	  DisabledProps		  []
	  Description		  ""
	  Components		  []
	  StartTime		  "0.0"
	  StopTime		  "10.0"
	  AbsTol		  "auto"
	  AutoScaleAbsTol	  on
	  FixedStep		  "0.001"
	  InitialStep		  "auto"
	  MaxOrder		  5
	  ZcThreshold		  "auto"
	  ConsecutiveZCsStepRelTol "10*128*eps"
	  MaxConsecutiveZCs	  "1000"
	  ExtrapolationOrder	  4
	  NumberNewtonIterations  1
	  MaxStep		  "auto"
	  MinStep		  "auto"
	  MaxConsecutiveMinStep	  "1"
	  RelTol		  "1e-3"
	  EnableMultiTasking	  on
	  ConcurrentTasks	  off
	  Solver		  "FixedStepDiscrete"
	  SolverName		  "FixedStepDiscrete"
	  SolverJacobianMethodControl "auto"
	  ShapePreserveControl	  "DisableAll"
	  ZeroCrossControl	  "UseLocalSettings"
	  ZeroCrossAlgorithm	  "Nonadaptive"
	  AlgebraicLoopSolver	  "TrustRegion"
	  SolverInfoToggleStatus  on
	  IsAutoAppliedInSIP	  off
	  SolverResetMethod	  "Fast"
	  PositivePriorityOrder	  off
	  AutoInsertRateTranBlk	  off
	  SampleTimeConstraint	  "Unconstrained"
	  InsertRTBMode		  "Whenever possible"
	  SampleTimeProperty	  []
	  DecoupledContinuousIntegration off
	  MinimalZcImpactIntegration off
	}
	Simulink.DataIOCC {
	  $ObjectID		  12
	  Version		  "1.18.1"
	  DisabledProps		  []
	  Description		  ""
	  Components		  []
	  Decimation		  "1"
	  ExternalInput		  "[t, u]"
	  FinalStateName	  "xFinal"
	  InitialState		  "xInitial"
	  LimitDataPoints	  off
	  MaxDataPoints		  "1000"
	  LoadExternalInput	  off
	  LoadInitialState	  off
	  SaveFinalState	  off
	  SaveCompleteFinalSimState off
	  SaveFormat		  "Dataset"
	  SignalLoggingSaveFormat "Dataset"
	  SaveOutput		  on
	  SaveState		  off
	  SignalLogging		  on
	  DSMLogging		  on
	  InspectSignalLogs	  off
	  VisualizeSimOutput	  on
	  StreamToWorkspace	  off
	  StreamVariableName	  "streamout"
	  SaveTime		  on
	  ReturnWorkspaceOutputs  off
	  StateSaveName		  "xout"
	  TimeSaveName		  "tout"
	  OutputSaveName	  "yout"
	  SignalLoggingName	  "logsout"
	  DSMLoggingName	  "dsmout"
	  OutputOption		  "RefineOutputTimes"
	  OutputTimes		  "[]"
	  ReturnWorkspaceOutputsName "out"
	  Refine		  "1"
	  LoggingToFile		  off
	  DatasetSignalFormat	  "timeseries"
	  LoggingFileName	  "out.mat"
	  LoggingIntervals	  "[-inf, inf]"
	}
	Simulink.OptimizationCC {
	  $ObjectID		  13
	  Version		  "1.18.1"
	  DisabledProps		  []
	  Description		  ""
	  Components		  []
	  BlockReduction	  on
	  BooleanDataType	  on
	  ConditionallyExecuteInputs on
	  DefaultParameterBehavior "Inlined"
	  UseDivisionForNetSlopeComputation "off"
	  UseFloatMulNetSlope	  off
	  DefaultUnderspecifiedDataType	"single"
	  UseSpecifiedMinMax	  off
	  InlineInvariantSignals  off
	  OptimizeBlockIOStorage  on
	  BufferReuse		  on
	  EnhancedBackFolding	  on
	  CachingGlobalReferences off
	  GlobalBufferReuse	  on
	  StrengthReduction	  off
	  AdvancedOptControl	  ""
	  ExpressionFolding	  on
	  BooleansAsBitfields	  on
	  BitfieldContainerType	  "uint_T"
	  EnableMemcpy		  on
	  MemcpyThreshold	  64
	  PassReuseOutputArgsAs	  "Individual arguments"
	  PassReuseOutputArgsThreshold 12
	  ExpressionDepthLimit	  128
	  LocalBlockOutputs	  on
	  RollThreshold		  5
	  StateBitsets		  off
	  DataBitsets		  off
	  ActiveStateOutputEnumStorageType "Native Integer"
	  ZeroExternalMemoryAtStartup on
	  ZeroInternalMemoryAtStartup on
	  InitFltsAndDblsToZero	  off
	  NoFixptDivByZeroProtection off
	  EfficientFloat2IntCast  off
	  EfficientMapNaN2IntZero on
	  LifeSpan		  "auto"
	  MaxStackSize		  "Inherit from target"
	  BufferReusableBoundary  on
	  SimCompilerOptimization "off"
	  AccelVerboseBuild	  off
	  OptimizeBlockOrder	  "speed"
	  OptimizeDataStoreBuffers on
	  BusAssignmentInplaceUpdate on
	  DifferentSizesBufferReuse on
	  UseRowMajorAlgorithm	  off
	  OptimizationLevel	  "level2"
	  OptimizationPriority	  "Balanced"
	  OptimizationCustomize	  on
	  LabelGuidedReuse	  off
	  MultiThreadedLoops	  off
	}
	Simulink.DebuggingCC {
	  $ObjectID		  14
	  Version		  "1.18.1"
	  DisabledProps		  []
	  Description		  ""
	  Components		  []
	  RTPrefix		  "error"
	  ConsistencyChecking	  "none"
	  ArrayBoundsChecking	  "none"
	  SignalInfNanChecking	  "none"
	  StringTruncationChecking "error"
	  SignalRangeChecking	  "none"
	  ReadBeforeWriteMsg	  "UseLocalSettings"
	  WriteAfterWriteMsg	  "UseLocalSettings"
	  WriteAfterReadMsg	  "UseLocalSettings"
	  AlgebraicLoopMsg	  "warning"
	  ArtificialAlgebraicLoopMsg "warning"
	  SaveWithDisabledLinksMsg "warning"
	  SaveWithParameterizedLinksMsg	"warning"
	  CheckSSInitialOutputMsg on
	  UnderspecifiedInitializationDetection	"Simplified"
	  MergeDetectMultiDrivingBlocksExec "error"
	  CheckExecutionContextPreStartOutputMsg off
	  CheckExecutionContextRuntimeOutputMsg	off
	  SignalResolutionControl "UseLocalSettings"
	  BlockPriorityViolationMsg "warning"
	  MinStepSizeMsg	  "warning"
	  TimeAdjustmentMsg	  "none"
	  MaxConsecutiveZCsMsg	  "error"
	  MaskedZcDiagnostic	  "warning"
	  IgnoredZcDiagnostic	  "warning"
	  SolverPrmCheckMsg	  "none"
	  InheritedTsInSrcMsg	  "warning"
	  MultiTaskDSMMsg	  "error"
	  MultiTaskCondExecSysMsg "error"
	  MultiTaskRateTransMsg	  "error"
	  SingleTaskRateTransMsg  "none"
	  TasksWithSamePriorityMsg "warning"
	  ExportedTasksRateTransMsg "none"
	  SigSpecEnsureSampleTimeMsg "warning"
	  CheckMatrixSingularityMsg "none"
	  IntegerOverflowMsg	  "warning"
	  Int32ToFloatConvMsg	  "warning"
	  ParameterDowncastMsg	  "error"
	  ParameterOverflowMsg	  "error"
	  ParameterUnderflowMsg	  "none"
	  ParameterPrecisionLossMsg "warning"
	  ParameterTunabilityLossMsg "error"
	  FixptConstUnderflowMsg  "none"
	  FixptConstOverflowMsg	  "none"
	  FixptConstPrecisionLossMsg "none"
	  UnderSpecifiedDataTypeMsg "none"
	  UnnecessaryDatatypeConvMsg "none"
	  VectorMatrixConversionMsg "none"
	  InvalidFcnCallConnMsg	  "error"
	  FcnCallInpInsideContextMsg "error"
	  SignalLabelMismatchMsg  "none"
	  UnconnectedInputMsg	  "warning"
	  UnconnectedOutputMsg	  "warning"
	  UnconnectedLineMsg	  "warning"
	  UseOnlyExistingSharedCode "error"
	  SFcnCompatibilityMsg	  "none"
	  FrameProcessingCompatibilityMsg "error"
	  UniqueDataStoreMsg	  "none"
	  BusObjectLabelMismatch  "warning"
	  RootOutportRequireBusObject "warning"
	  AssertControl		  "UseLocalSettings"
	  AllowSymbolicDim	  on
	  RowMajorDimensionSupport off
	  ModelReferenceIOMsg	  "none"
	  ModelReferenceMultiInstanceNormalModeStructChecksumCheck "error"
	  ModelReferenceVersionMismatchMessage "none"
	  ModelReferenceIOMismatchMessage "none"
	  UnknownTsInhSupMsg	  "warning"
	  ModelReferenceDataLoggingMessage "warning"
	  ModelReferenceSymbolNameMessage "warning"
	  ModelReferenceExtraNoncontSigs "error"
	  StateNameClashWarn	  "none"
	  SimStateInterfaceChecksumMismatchMsg "warning"
	  SimStateOlderReleaseMsg "error"
	  ChecksumConsistencyForSSReuse	"none"
	  MatchCodeGenerationContextForUpdateDiagram "none"
	  InitInArrayFormatMsg	  "warning"
	  StrictBusMsg		  "ErrorLevel1"
	  BusNameAdapt		  "WarnAndRepair"
	  NonBusSignalsTreatedAsBus "none"
	  SymbolicDimMinMaxWarning "warning"
	  LossOfSymbolicDimsSimulationWarning "warning"
	  LossOfSymbolicDimsCodeGenerationWarning "error"
	  SymbolicDimsDataTypeCodeGenerationDiagnostic "error"
	  BlockIODiagnostic	  "none"
	  SFUnusedDataAndEventsDiag "warning"
	  SFUnexpectedBacktrackingDiag "error"
	  SFInvalidInputDataAccessInChartInitDiag "warning"
	  SFNoUnconditionalDefaultTransitionDiag "error"
	  SFTransitionOutsideNaturalParentDiag "warning"
	  SFUnreachableExecutionPathDiag "warning"
	  SFUndirectedBroadcastEventsDiag "warning"
	  SFTransitionActionBeforeConditionDiag	"warning"
	  SFOutputUsedAsStateInMooreChartDiag "error"
	  SFTemporalDelaySmallerThanSampleTimeDiag "warning"
	  SFSelfTransitionDiag	  "warning"
	  SFExecutionAtInitializationDiag "warning"
	  SFMachineParentedDataDiag "warning"
	  IntegerSaturationMsg	  "warning"
	  AllowedUnitSystems	  "all"
	  UnitsInconsistencyMsg	  "warning"
	  AllowAutomaticUnitConversions	on
	  RCSCRenamedMsg	  "warning"
	  RCSCObservableMsg	  "warning"
	  ForceCombineOutputUpdateInSim	off
	  UnitDatabase		  ""
	  UnderSpecifiedDimensionMsg "none"
	}
	Simulink.HardwareCC {
	  $ObjectID		  15
	  Version		  "1.18.1"
	  Array {
	    Type		    "Cell"
	    Dimension		    15
	    Cell		    "ProdHWDeviceType"
	    Cell		    "ProdEqTarget"
	    Cell		    "ProdBitPerChar"
	    Cell		    "ProdBitPerShort"
	    Cell		    "ProdBitPerInt"
	    Cell		    "ProdBitPerLong"
	    Cell		    "ProdBitPerLongLong"
	    Cell		    "ProdWordSize"
	    Cell		    "ProdLongLongMode"
	    Cell		    "ProdShiftRightIntArith"
	    Cell		    "ProdEndianess"
	    Cell		    "ProdIntDivRoundTo"
	    Cell		    "ProdLargestAtomicInteger"
	    Cell		    "ProdLargestAtomicFloat"
	    Cell		    "ProdBitPerPtrDiffT"
	    PropName		    "DisabledProps"
	  }
	  Description		  ""
	  Components		  []
	  ProdBitPerChar	  8
	  ProdBitPerShort	  16
	  ProdBitPerInt		  16
	  ProdBitPerLong	  32
	  ProdBitPerLongLong	  64
	  ProdBitPerFloat	  32
	  ProdBitPerDouble	  64
	  ProdBitPerPointer	  16
	  ProdBitPerSizeT	  16
	  ProdBitPerPtrDiffT	  16
	  ProdLargestAtomicInteger "Integer"
	  ProdLargestAtomicFloat  "None"
	  ProdIntDivRoundTo	  "Zero"
	  ProdEndianess		  "LittleEndian"
	  ProdWordSize		  16
	  ProdShiftRightIntArith  on
	  ProdLongLongMode	  off
	  ProdHWDeviceType	  "Generic->Custom"
	  TargetBitPerChar	  8
	  TargetBitPerShort	  16
	  TargetBitPerInt	  32
	  TargetBitPerLong	  32
	  TargetBitPerLongLong	  64
	  TargetBitPerFloat	  32
	  TargetBitPerDouble	  64
	  TargetBitPerPointer	  32
	  TargetBitPerSizeT	  32
	  TargetBitPerPtrDiffT	  32
	  TargetLargestAtomicInteger "Char"
	  TargetLargestAtomicFloat "None"
	  TargetShiftRightIntArith on
	  TargetLongLongMode	  off
	  TargetIntDivRoundTo	  "Undefined"
	  TargetEndianess	  "Unspecified"
	  TargetWordSize	  32
	  TargetPreprocMaxBitsSint 32
	  TargetPreprocMaxBitsUint 32
	  TargetHWDeviceType	  "Specified"
	  TargetUnknown		  off
	  ProdEqTarget		  on
	  UseEmbeddedCoderFeatures on
	  UseSimulinkCoderFeatures on
	}
	Simulink.ModelReferenceCC {
	  $ObjectID		  16
	  Version		  "1.18.1"
	  DisabledProps		  []
	  Description		  ""
	  Components		  []
	  UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
	  EnableRefExpFcnMdlSchedulingChecks on
	  CheckModelReferenceTargetMessage "error"
	  EnableParallelModelReferenceBuilds off
	  ParallelModelReferenceErrorOnInvalidPool on
	  ParallelModelReferenceMATLABWorkerInit "None"
	  ModelReferenceNumInstancesAllowed "Single"
	  PropagateVarSize	  "Infer from blocks in model"
	  ModelDependencies	  ""
	  ModelReferencePassRootInputsByReference on
	  ModelReferenceMinAlgLoopOccurrences off
	  PropagateSignalLabelsOutOfModel on
	  SupportModelReferenceSimTargetCustomCode off
	}
	Simulink.SFSimCC {
	  $ObjectID		  17
	  Version		  "1.18.1"
	  DisabledProps		  []
	  Description		  ""
	  Components		  []
	  SimCustomSourceCode	  ""
	  SimCustomHeaderCode	  ""
	  SimCustomInitializer	  ""
	  SimCustomTerminator	  ""
	  SimReservedNameArray	  []
	  SimUserSources	  ""
	  SimUserIncludeDirs	  ""
	  SimUserLibraries	  ""
	  SimUserDefines	  ""
	  SimCustomCompilerFlags  ""
	  SimCustomLinkerFlags	  ""
	  SFSimEcho		  on
	  SimCtrlC		  on
	  SimIntegrity		  on
	  SimUseLocalCustomCode	  on
	  SimParseCustomCode	  on
	  SimAnalyzeCustomCode	  off
	  SimBuildMode		  "sf_incremental_build"
	  SimGenImportedTypeDefs  off
	  ModelFunctionsGlobalVisibility "on"
	  CompileTimeRecursionLimit 50
	  EnableRuntimeRecursion  on
	  MATLABDynamicMemAlloc	  off
	  MATLABDynamicMemAllocThreshold 65536
	  CustomCodeFunctionArrayLayout	[]
	  DefaultCustomCodeFunctionArrayLayout "NotSpecified"
	}
	Simulink.RTWCC {
	  $BackupClass		  "Simulink.RTWCC"
	  $ObjectID		  18
	  Version		  "1.18.1"
	  Array {
	    Type		    "Cell"
	    Dimension		    1
	    Cell		    "TargetLang"
	    PropName		    "DisabledProps"
	  }
	  Description		  "Microchip Embedded Target PIC24 dsPIC30 dsPIC33 (real-time)"
	  SystemTargetFile	  "MCHP_dsPIC_stf.tlc"
	  HardwareBoard		  "None"
	  TLCOptions		  ""
	  GenCodeOnly		  off
	  MakeCommand		  "make_rtw"
	  GenerateMakefile	  on
	  PackageGeneratedCodeAndArtifacts off
	  PackageName		  ""
	  TemplateMakefile	  "MCHP_dsPIC.tmf"
	  PostCodeGenCommand	  ""
	  GenerateReport	  on
	  RTWVerbose		  on
	  RetainRTWFile		  off
	  RTWBuildHooks		  []
	  ProfileTLC		  off
	  TLCDebug		  off
	  TLCCoverage		  off
	  TLCAssert		  off
	  RTWUseLocalCustomCode	  on
	  RTWUseSimCustomCode	  off
	  CustomSourceCode	  ""
	  CustomHeaderCode	  ""
	  CustomInclude		  ""
	  CustomSource		  ""
	  CustomLibrary		  ""
	  CustomDefine		  ""
	  CustomBLASCallback	  ""
	  CustomLAPACKCallback	  ""
	  CustomFFTCallback	  ""
	  CustomInitializer	  ""
	  CustomTerminator	  ""
	  Toolchain		  "Automatically locate an installed toolchain"
	  BuildConfiguration	  "Faster Builds"
	  CustomToolchainOptions  []
	  IncludeHyperlinkInReport on
	  LaunchReport		  on
	  PortableWordSizes	  off
	  CreateSILPILBlock	  "None"
	  CodeExecutionProfiling  off
	  CodeExecutionProfileVariable "executionProfile"
	  CodeProfilingSaveOptions "SummaryOnly"
	  CodeProfilingInstrumentation "off"
	  SILDebugging		  off
	  TargetLang		  "C"
	  IncludeBusHierarchyInRTWFileBlockHierarchyMap	off
	  GenerateTraceInfo	  on
	  GenerateTraceReport	  on
	  GenerateTraceReportSl	  on
	  GenerateTraceReportSf	  on
	  GenerateTraceReportEml  on
	  GenerateWebview	  off
	  GenerateCodeMetricsReport off
	  GenerateCodeReplacementReport	off
	  GenerateMissedCodeReplacementReport off
	  RTWCompilerOptimization "off"
	  ObjectivePriorities	  []
	  RTWCustomCompilerOptimizations ""
	  CheckMdlBeforeBuild	  "Off"
	  SharedConstantsCachingThreshold 1024
	  Array {
	    Type		    "Handle"
	    Dimension		    2
	    Simulink.CodeAppCC {
	      $ObjectID		      19
	      Version		      "1.18.1"
	      DisabledProps	      []
	      Description	      ""
	      Components	      []
	      Comment		      ""
	      ForceParamTrailComments on
	      GenerateComments	      on
	      CommentStyle	      "Auto"
	      IgnoreCustomStorageClasses off
	      IgnoreTestpoints	      off
	      MaxIdLength	      255
	      PreserveName	      off
	      PreserveNameWithParent  off
	      ShowEliminatedStatement on
	      OperatorAnnotations     on
	      SimulinkDataObjDesc     on
	      SFDataObjDesc	      on
	      MATLABFcnDesc	      off
	      MangleLength	      1
	      SharedChecksumLength    8
	      CustomSymbolStrGlobalVar "$R$N$M"
	      CustomSymbolStrType     "$N$R$M_T"
	      CustomSymbolStrField    "$N$M"
	      CustomSymbolStrFcn      "$R$N$M$F"
	      CustomSymbolStrModelFcn "$R$N"
	      CustomSymbolStrFcnArg   "rt$I$N$M"
	      CustomSymbolStrBlkIO    "rtb_$N$M"
	      CustomSymbolStrTmpVar   "$N$M"
	      CustomSymbolStrMacro    "$R$N$M"
	      CustomSymbolStrUtil     "$N$C"
	      CustomSymbolStrEmxType  "emxArray_$M$N"
	      CustomSymbolStrEmxFcn   "emx$M$N"
	      CustomUserTokenString   ""
	      CustomCommentsFcn	      ""
	      DefineNamingRule	      "None"
	      DefineNamingFcn	      ""
	      ParamNamingRule	      "None"
	      ParamNamingFcn	      ""
	      SignalNamingRule	      "None"
	      SignalNamingFcn	      ""
	      InsertBlockDesc	      on
	      InsertPolySpaceComments off
	      SimulinkBlockComments   on
	      BlockCommentType	      "BlockPathComment"
	      StateflowObjectComments off
	      MATLABSourceComments    off
	      EnableCustomComments    off
	      InternalIdentifierFile  ""
	      InternalIdentifier      "Shortened"
	      InlinedPrmAccess	      "Literals"
	      ReqsInCode	      off
	      UseSimReservedNames     off
	      ReservedNameArray	      []
	    }
	    Simulink.STFCustomTargetCC {
	      $BackupClass	      "Simulink.TargetCC"
	      $ObjectID		      20
	      Version		      "1.18.1"
	      Array {
		Type			"Cell"
		Dimension		10
		Cell			"LINKER_SCRIPT"
		Cell			"PIC_LIB"
		Cell			"PIC_INCLUDES"
		Cell			"GenerateSampleERTMain"
		Cell			"MatFileLogging"
		Cell			"GRTInterface"
		Cell			"SupportNonInlinedSFcns"
		Cell			"UtilityFuncGeneration"
		Cell			"IncludeMdlTerminateFcn"
		Cell			"ModelReferenceCompliant"
		PropName		"DisabledProps"
	      }
	      Description	      ""
	      TargetFcnLib	      "ansi_tfl_table_tmw.mat"
	      TargetLibSuffix	      "_lib.a"
	      TargetPreCompLibLocation ""
	      GenFloatMathFcnCalls    "NOT IN USE"
	      TargetLangStandard      "C89/C90 (ANSI)"
	      CodeReplacementLibrary  "None"
	      UtilityFuncGeneration   "Auto"
	      MultiwordTypeDef	      "System defined"
	      MultiwordLength	      256
	      DynamicStringBufferSize 256
	      GenerateFullHeader      on
	      InferredTypesCompatibility off
	      ExistingSharedCode      ""
	      GenerateSampleERTMain   off
	      GenerateTestInterfaces  off
	      ModelReferenceCompliant on
	      ParMdlRefBuildCompliant off
	      CompOptLevelCompliant   off
	      ConcurrentExecutionCompliant off
	      IncludeMdlTerminateFcn  off
	      GeneratePreprocessorConditionals "Use local settings"
	      CombineOutputUpdateFcns on
	      CombineSignalStateStructs	on
	      GroupInternalDataByFunction off
	      SuppressErrorStatus     on
	      IncludeFileDelimiter    "Auto"
	      ERTCustomFileBanners    on
	      SupportAbsoluteTime     on
	      LogVarNameModifier      "rt_"
	      MatFileLogging	      off
	      MultiInstanceERTCode    off
	      CodeInterfacePackaging  "Nonreusable function"
	      PurelyIntegerCode	      off
	      SupportNonFinite	      on
	      SupportComplex	      on
	      SupportContinuousTime   off
	      SupportNonInlinedSFcns  on
	      RemoveDisableFunc	      off
	      RemoveResetFunc	      on
	      SupportVariableSizeSignals off
	      ParenthesesLevel	      "Nominal"
	      CastingMode	      "Nominal"
	      PreserveStateflowLocalDataDimensions off
	      MATLABClassNameForMDSCustomization "Simulink.SoftwareTarget.ERTCustomization"
	      ModelStepFunctionPrototypeControlCompliant off
	      CPPClassGenCompliant    off
	      AutosarCompliant	      off
	      MDXCompliant	      off
	      GRTInterface	      off
	      GenerateAllocFcn	      off
	      UseToolchainInfoCompliant	off
	      GenerateSharedConstants on
	      CoderGroups	      []
	      AccessMethods	      []
	      LookupTableObjectStructAxisOrder "1,2,3,4,..."
	      LUTObjectStructOrderExplicitValues "Size,Breakpoints,Table"
	      LUTObjectStructOrderEvenSpacing "Size,Breakpoints,Table"
	      ArrayLayout	      "Column-major"
	      UnsupportedSFcnMsg      "error"
	      ERTHeaderFileRootName   "$R$E"
	      ERTSourceFileRootName   "$R$E"
	      ERTDataFileRootName     "$R_data"
	      SystemTargetFile	      "MCHP_dsPIC_stf.tlc"
	      DialogCategory	      0
	      Array {
		Type			"Handle"
		Dimension		1
		Simulink.ERTTargetCC {
		  $BackupClass		  "Simulink.TargetCC"
		  $ObjectID		  21
		  Version		  "19.1.1"
		  Array {
		    Type		    "Cell"
		    Dimension		    12
		    Cell		    "GenerateSampleERTMain"
		    Cell		    "ERTCustomFileTemplate"
		    Cell		    "MatFileLogging"
		    Cell		    "GRTInterface"
		    Cell		    "SupportNonInlinedSFcns"
		    Cell		    "UtilityFuncGeneration"
		    Cell		    "IncludeMdlTerminateFcn"
		    Cell		    "ERTDataHdrFileTemplate"
		    Cell		    "ERTDataSrcFileTemplate"
		    Cell		    "ERTHdrFileBannerTemplate"
		    Cell		    "ERTSrcFileBannerTemplate"
		    Cell		    "ModelReferenceCompliant"
		    PropName		    "DisabledProps"
		  }
		  Description		  ""
		  Components		  []
		  TargetFcnLib		  "ansi_tfl_table_tmw.mat"
		  TargetLibSuffix	  "_lib.a"
		  TargetPreCompLibLocation ""
		  GenFloatMathFcnCalls	  "NOT IN USE"
		  TargetLangStandard	  "C89/C90 (ANSI)"
		  CodeReplacementLibrary  "None"
		  UtilityFuncGeneration	  "Auto"
		  MultiwordTypeDef	  "System defined"
		  MultiwordLength	  256
		  DynamicStringBufferSize 256
		  GenerateFullHeader	  on
		  InferredTypesCompatibility off
		  ExistingSharedCode	  ""
		  GenerateSampleERTMain	  off
		  GenerateTestInterfaces  off
		  ModelReferenceCompliant on
		  ParMdlRefBuildCompliant off
		  CompOptLevelCompliant	  off
		  ConcurrentExecutionCompliant off
		  IncludeMdlTerminateFcn  off
		  GeneratePreprocessorConditionals "Use local settings"
		  CombineOutputUpdateFcns on
		  CombineSignalStateStructs on
		  GroupInternalDataByFunction off
		  SuppressErrorStatus	  on
		  IncludeFileDelimiter	  "Auto"
		  ERTCustomFileBanners	  on
		  SupportAbsoluteTime	  on
		  LogVarNameModifier	  "rt_"
		  MatFileLogging	  off
		  MultiInstanceERTCode	  off
		  CodeInterfacePackaging  "Nonreusable function"
		  PurelyIntegerCode	  off
		  SupportNonFinite	  on
		  SupportComplex	  on
		  SupportContinuousTime	  off
		  SupportNonInlinedSFcns  on
		  RemoveDisableFunc	  off
		  RemoveResetFunc	  on
		  SupportVariableSizeSignals off
		  ParenthesesLevel	  "Nominal"
		  CastingMode		  "Nominal"
		  PreserveStateflowLocalDataDimensions off
		  MATLABClassNameForMDSCustomization "Simulink.SoftwareTarget.ERTCustomization"
		  ModelStepFunctionPrototypeControlCompliant off
		  CPPClassGenCompliant	  off
		  AutosarCompliant	  off
		  MDXCompliant		  off
		  GRTInterface		  off
		  GenerateAllocFcn	  off
		  UseToolchainInfoCompliant off
		  GenerateSharedConstants on
		  CoderGroups		  []
		  AccessMethods		  []
		  LookupTableObjectStructAxisOrder "1,2,3,4,..."
		  LUTObjectStructOrderExplicitValues "Size,Breakpoints,Table"
		  LUTObjectStructOrderEvenSpacing "Size,Breakpoints,Table"
		  ArrayLayout		  "Column-major"
		  UnsupportedSFcnMsg	  "error"
		  ERTHeaderFileRootName	  "$R$E"
		  ERTSourceFileRootName	  "$R$E"
		  ERTDataFileRootName	  "$R_data"
		  GenerateASAP2		  off
		  DSAsUniqueAccess	  off
		  ExtMode		  off
		  ExtModeTransport	  0
		  ExtModeStaticAlloc	  off
		  ExtModeStaticAllocSize  500
		  ExtModeTesting	  off
		  ExtModeMexFile	  "ext_comm"
		  ExtModeMexArgs	  ""
		  ExtModeIntrfLevel	  "Level1"
		  InlinedParameterPlacement "NonHierarchical"
		  TargetOS		  "BareBoardExample"
		  MultiInstanceErrorCode  "Error"
		  RootIOFormat		  "Individual arguments"
		  RTWCAPISignals	  off
		  RTWCAPIParams		  off
		  RTWCAPIStates		  off
		  RTWCAPIRootIO		  off
		  ERTSrcFileBannerTemplate "MCHP_dsPIC_code_template.cgt"
		  ERTHdrFileBannerTemplate "MCHP_dsPIC_code_template.cgt"
		  ERTDataSrcFileTemplate  "MCHP_dsPIC_code_template.cgt"
		  ERTDataHdrFileTemplate  "MCHP_dsPIC_code_template.cgt"
		  ERTCustomFileTemplate	  "MCHP_main.tlc"
		  EnableDataOwnership	  off
		  SignalDisplayLevel	  10
		  ParamTuneLevel	  10
		  GlobalDataDefinition	  "Auto"
		  DataDefinitionFile	  "global.c"
		  GlobalDataReference	  "Auto"
		  ERTFilePackagingFormat  "Modular"
		  RateTransitionBlockCode "Inline"
		  DataReferenceFile	  "global.h"
		  PreserveExpressionOrder off
		  PreserveIfCondition	  off
		  ConvertIfToSwitch	  on
		  PreserveExternInFcnDecls on
		  PreserveStaticInFcnDecls on
		  SuppressUnreachableDefaultCases on
		  EnableSignedLeftShifts  on
		  EnableSignedRightShifts on
		  IndentStyle		  "K&R"
		  IndentSize		  "2"
		  NewlineStyle		  "Default"
		  EnableUserReplacementTypes off
		  Array {
		    Type		    "Struct"
		    Dimension		    1
		    MATStruct {
		    double		    ""
		    single		    ""
		    int32		    ""
		    int16		    ""
		    int8		    ""
		    uint32		    ""
		    uint16		    ""
		    uint8		    ""
		    boolean		    ""
		    int			    ""
		    uint		    ""
		    char		    ""
		    uint64		    ""
		    int64		    ""
		    }
		    PropName		    "ReplacementTypes"
		  }
		  MaxIdInt64		  "MAX_int64_T"
		  MinIdInt64		  "MIN_int64_T"
		  MaxIdUint64		  "MAX_uint64_T"
		  MaxIdInt32		  "MAX_int32_T"
		  MinIdInt32		  "MIN_int32_T"
		  MaxIdUint32		  "MAX_uint32_T"
		  MaxIdInt16		  "MAX_int16_T"
		  MinIdInt16		  "MIN_int16_T"
		  MaxIdUint16		  "MAX_uint16_T"
		  MaxIdInt8		  "MAX_int8_T"
		  MinIdInt8		  "MIN_int8_T"
		  MaxIdUint8		  "MAX_uint8_T"
		  BooleanTrueId		  "true"
		  BooleanFalseId	  "false"
		  TypeLimitIdReplacementHeaderFile ""
		  MemSecPackage		  "--- None ---"
		  MemSecDataConstants	  "Default"
		  MemSecDataIO		  "Default"
		  MemSecDataInternal	  "Default"
		  MemSecDataParameters	  "Default"
		  MemSecFuncInitTerm	  "Default"
		  MemSecFuncExecute	  "Default"
		  MemSecFuncSharedUtil	  "Default"
		  GroupConstants	  "Default"
		  GroupRootInputs	  "Default"
		  GroupRootOutputs	  "Default"
		  GroupInternal		  "Default"
		  GroupParameters	  "Default"
		  GroupDataTransfer	  "Default"
		  GroupSharedLocalDataStores "Default"
		  GroupInstanceSpecificParameters "Default"
		  GroupModelData	  "Default"
		}
		PropName		"Components"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"PIC_REF"
		Value			"33FJ128MC804"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"HOST_PLATFORM"
		Value			"PC"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"OPTIM_GCC"
		Value			"-O1"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"LDFLAGS"
		Value			"'-t,--report-mem,-Map=info.map,-cref,--memorysummary,memoryfile.xml'"
	      }
	      CustomProperty {
		DataType		"RTWOptions_EnumType_C__Program Files (x86)_Microchip_MatlabTools_blocks_MCHP_dsPIC_stf_1OMF"
		EnumStrPairs {
		  Value			  0
		  String		  "elf"
		  Value			  1
		  String		  "coff"
		}
		Name			"OMF"
		Value			"elf"
	      }
	      CustomProperty {
		DataType		"slbool"
		Name			"ProduceHexOutput"
		Value			on
	      }
	      CustomProperty {
		DataType		"slbool"
		Name			"AssemblyListing"
		Value			off
	      }
	      CustomProperty {
		DataType		"string"
		Name			"GCCPATH"
		Value			"C:\\PROGRA~2\\MICROC~1\\xc16\\v1.35\\bin"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"LINKER_SCRIPT"
		Value			"p33FJ128MC804.gld"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"PIC_LIB"
		Value			""
	      }
	      CustomProperty {
		DataType		"string"
		Name			"PIC_INCLUDES"
		Value			""
	      }
	      CustomProperty {
		DataType		"string"
		Name			"GCC1"
		Value			"xc16-gcc.exe"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"AR1"
		Value			"xc16-ar"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"BIN2HEX"
		Value			"xc16-bin2hex"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"OBJDUMP"
		Value			"xc16-objdump"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"MCHP_PROGRAMMER"
		Value			""
	      }
	      CustomProperty {
		DataType		"slbool"
		Name			"MCHP_AUTO_FLASH"
		Value			on
	      }
	      CustomProperty {
		DataType		"slbool"
		Name			"MCHP_MULTITHREAD_COMPILATION"
		Value			on
	      }
	      CustomProperty {
		DataType		"string"
		Name			"TIMER_PRESCALER"
		Value			"[-1 -1  0 -1 -1]"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"TIMER_PERIOD"
		Value			"[0      0  20003]"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"TIMER_START"
		Value			"[0  0  3]"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"MCHP_CompiledTime_ModelSampleTimes_Txt"
		Value			"s(1).Value=reshape([0.001 0],1,2);s(1).Description='Discrete 1';s(1).ColorRGBValue=reshape([0.9 0 0],1,3);s"
		"(1).Annotation='D1';s(1).OwnerBlock=reshape(MCHP_Fun.Hex2num('[]'),0,0);s(2).Value=reshape([2 0],1,2);s(2).Descripti"
		"on='Discrete 2';s(2).ColorRGBValue=reshape([0 0.82 0],1,3);s(2).Annotation='D2';s(2).OwnerBlock=reshape(MCHP_Fun.Hex"
		"2num('[]'),0,0);s(3).Value=reshape([Inf 0],1,2);s(3).Description='Constant';s(3).ColorRGBValue=reshape([1 0.26 0.82]"
		",1,3);s(3).Annotation='Inf';s(3).OwnerBlock=reshape(MCHP_Fun.Hex2num('[]'),0,0);s(4).Value=reshape(MCHP_Fun.Hex2num("
		"'[]'),0,0);s(4).Description='Hybrid';s(4).ColorRGBValue=reshape([0.91 0.82 0.32],1,3);s(4).Annotation='H';s(4).Owner"
		"Block=reshape(MCHP_Fun.Hex2num('[]'),0,0);"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"RTWGenSettings_txt"
		Value			"s.RefMasterBlk='controller22/Microchip Master';s.ChipIdN='[33  128  804]';s.ChipIdL1='FJ';s.ChipIdL2='MC';s"
		".ChipIdL3='';s.arch3='33F';s.ChipId='33FJ128MC804';s.bitFieldsSFR='7';s.ChipRAM='16384';s.ChipRAM_XBegin='2048';s.Ch"
		"ipRAM_dma='[16384  18432]';s.FuseConfigTxt='#pragma config FNOSC = FRC\\\\n#pragma config OSCIOFNC = ON, FCKSM = CSE"
		"CMD\\\\n#pragma config FWDTEN = OFF\\\\n#pragma config JTAGEN = OFF\\\\n';s.TimeStep_Timer='3';s.TimeStep_SyncADC='1"
		"';s.ADPCFG='4';s.ANSEL_Exist='0';s.ANSEL='[-1]';s.TRIS='[64383  65023  65407     -1     -1     -1     -1     -1     "
		"-1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1  "
		"   -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -"
		"1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1     -1]';s.RPOR="
		"'[-1   -1   -1   -1  768   -1   -1   -1   -1   -1   -1   -1   -1]';s.RPINR='[-1    -1    -1    -1    -1    -1    -1 "
		"   -1    -1    -1    -1    -1     0    -1  1541    -1    -1    -1    22    -1    -1    -1    -1    -1    -1    -1   "
		" -1    -1    -1    -1    -1    -1    -1    -1    -1    -1    -1    -1    -1    -1    -1    -1    -1    -1    -1    -"
		"1]';s.PortConfigTxt='';s.CLKDIV='69';s.PLLFBD='150';s.PLLDIV='-1';s.SWITCH_OSC='16387';s.PLLRNG='-1';s.MASTER_BusyFl"
		"ag='-1';s.POWERSAVE='0';s.MIPS='20004285.7143';s.FLASH_ECC='0';s.PBxDIV='[-1]';s.AN_type2='0';s.ACLKCON_reg='-1';s.n"
		"TIMERS='5';s.nSCCP='0';s.DOS_02551_cpu_16bit_v7='0';s.DOS_01520_wdt_dmt_upb_v1_16bit='0';s.DOS_02359a_sent_j2716_upb"
		"_v1='0';s.DOS_02672_math_progcrc_upb_v1_16bit='0';s.DOS_01577_cla_clc_upb_v1='0';s.DOS_02915_ecc_v2='0';s.DOS_02673_"
		"tmr_classa_upb_v1_16bit='0';s.DOS_01494_qei_32b_upb_v1_16bit='0';s.DOS_02552_msi_upb_v1_Master='0';s.DOS_01441_i2c_u"
		"pb_v1_16bit_TLAH='0';s.DOS_03076_uart_protocol_upb_v1_16bit='0';s.DOS_01482='0';s.DOS_01483_pwm_16bit='0';s.DOS_0249"
		"7_WACV='0';s.DOS_02316_nvm_ctrl_v1_16bit='0';s.DOS_02653_afe_current_bias_ctrl_upb_v1_16bit='0';s.DOS_01459_ptg_pc_u"
		"pb_v1_16bit='0';s.DOS_01512_ccp_mccp_upb_v1_16bit='0';s.DOS_02519_dma_sfr_16bit_v2='0';s.DOS_02508c11='0';s.DOS_0247"
		"5_dac_pdm_nbit_upb_v1_16bit='0';s.DOS_02467_gpio_upb_v1_16bit='0';s.DOS_00805_rst_integration_v4='0';s.DOS_02659_clk"
		"_sib_v12='0';s.DOS_02674_wdt_upb_v1_16bit='0';s.DOS_01407='0';s.DOS_02552_msi_upb_v1_Slave='0';s.DOS_02593_amp_pga_c"
		"trl_pb_v2_16bit='0';s.DOS_03247_CAN_FD_UPB_V2_16_bit='0';s.DOS_01461_afe_ctmu_con_upb_v1_16bit='0';s.DOS_02497_WACA="
		"'0';s.DOS_02478_uart_irda_upb_v1_16bit='0';s.DOS_00929='0';s.DOS_01198='0';s.DOS_03029_WACH='0';s.DOS_02949_WACG='0'"
		";s.DOS_03349_amp_pad_opamp_ctrl_upb_v1='0';s.DOS_02237_osc_dco_ctrl_upb_v1_16bit='0';s.DOS_02472_ppi_pmp16_upb_v1_16"
		"bit='0';s.DOS_03994_WAC07='0';s.DOS_03662_WACU='0';s.DOS_00794='0';s.DOS_00931='0';s.DOS_00932='0';s.DOS_00942='0';s"
		".DOS_00938='0';s.DOS_00996='0';s.DOS_00997='0';s.DOS_00998='0';s.DOS_00209='0';s.DOS_01555_adc='0';s.DOS_01293='0';s"
		".DOS_00828='0';s.DOS_01116='0';s.DOS_01017_RPORx='0';s.DOS_01017_RPINRx='0';s.DOS_01555_nvm_tsmc18_v2_16bit='0';s.DO"
		"S_00804='0';s.DOS_00826='0';s.DOS_01555_TLAK_PMDx='0';s.DOS_01555_TLAK_INT_='0';s.DOS_00933='0';s.DOS_01555='0';s.DO"
		"S_01555_ptg='0';s.DOS_00958='0';s.DOS_01117_PORTx='0';s.DOS_00999='0';s.DOS_01041='0';s.DOS_00892='0';s.DOS_01287_TL"
		"AC_PMDx='0';s.DOS_01287_TLAC_INT_='0';s.DOS_01424='0';s.DOS_01332='0';s.DOS_01468_PMBA_current_source='0';s.DOS_0229"
		"1_PGA='0';s.DOS_01467_Comparator='0';s.DOS_01498_TLAY='0';s.DOS_00993_PLL_120MHz='0';s.DOS_01332_ptg_pc_v1='0';s.DOS"
		"_00958_pwm_TLAY='0';s.TLAY_IOPorts='0';s.DOS_00929q='0';s.DOS_02415_spi_v5='0';s.DOS_RPINRx_16bit_2='0';s.DOS_01497_"
		"TLAH_PMDx='0';s.DOS_02550_TLAL_INT='0';s.DOS_00958_pwm_TLAH='0';s.DOS_01287_TLAH_INT_='0';s.DOS_01113='0';s.DOS_0101"
		"7_PMDx='0';s.DOS_00927='0';s.DOS_01080='0';s.DOS_00794_cpu_16bit_v3='0';s.DOS_02192_TLCD_PMDx='0';s.DOS_02192_TLCD_I"
		"NT_='0';s.DOS_02192_cmp='0';s.DOS_00958_pwm_TLCD='0';s.DOS_02192_PORTx_TLCD='0';s.DOS_00936='0';s.DOS_00995='0';s.DO"
		"S_00546='0';s.DOS_00474='0';s.DOS_02481_WACJ_MC_Config='0';s.DOS_02569_pfm_cache_ocp_v1='0';s.DOS_02819_pfm_ctrl_32b"
		"it_upb_v2='0';s.DOS_02674_wdt_upb_v1_32bit='0';s.DOS_01520_wdt_dmt_upb_v1='0';s.DOS_02869_icd_jtag_bvci_upb_v2='0';s"
		".DOS_02823_WACJ_clk_cru_upb_v2='0';s.DOS_01423_RPINRx='0';s.DOS_02481_RPORx='0';s.DOS_02511_pwr_sib_upb_v1_32bit='0'"
		";s.DOS_02481_WACJ_MC_int_evic_v3='0';s.DOS_01500_dma_bvci_v2='0';s.DOS_02141_tmr_classa_pb_v2='0';s.DOS_02815_tmr_cl"
		"assb_upb_v1='0';s.DOS_00740_icap_pb_v1='0';s.DOS_00749_ocmp_pb_v1='0';s.DOS_01441_i2c_upb_v1_32bit='0';s.DOS_01329_s"
		"pi_pb_v2='0';s.DOS_02478_uart_irda_upb_v1_32bit='0';s.DOS_02514_dfm_strl_sst_upb_v1='0';s.DOS_01477_pwm_mc_upb_v1='0"
		"';s.DOS_01459_ptg_pc_upb_v1_SIC='0';s.DOS_01494_qei_32b_upb_v1='0';s.DOS_01427_cmp_control_upb_v1_32bit='0';s.DOS_01"
		"445_dac_nbit__control_upb_v1_32bit='0';s.DOS_01461_afe_ctmu_con_upb_v1='0';s.DOS_02472_ppi_pmp16_upb_v1='0';s.DOS_02"
		"467_gpio_ports_upb_v1='0';s.DOS_01152_can_bvci_v1='0';s.DOS_02508_adc_sar_ctrl_upb_v1_PIC32MK='0';s.DOS_02813a_usb_o"
		"tgcore_pb_v3='0';s.DOS_01261_tmr_rtcc_pb_v2='0';s.DOS_01475_lpwr_deep_sleep_ctrl_v2='0';s.DOS_EIP_00136_ssx_v1='0';s"
		".DOS_02481_WACK_MC_Config='0';s.DOS_03088_pfm_cache_ocp_v2_WACK='0';s.DOS_02823_WACN_clk_cru_upb_v2='0';s.DOS_02907_"
		"WACK_MC_int_evic_v3='0';s.DOS_03554_cmp_control_upb_v2_32bit='0';s.DOS_03247_can_fd_upb_v2_pic32mk='0';s.DOS_02787_W"
		"ACD_Config='0';s.DOS_00800_dac_4bit_ctrl_pb_v1='0';s.DOS_01539_icd_jtag_pb_v2='0';s.DOS_02823_clk_cru_upb_v2='0';s.D"
		"OS_01423_RPORx='0';s.DOS_02907_WACD_int_evic_v3='0';s.DOS_00734_uart_irda_pb_v1='0';s.DOS_00687_tmr_classa_pb_v1='0'"
		";s.DOS_00745_tmr_classb_pb_v1='0';s.DOS_02508_adc_sar_ctrl_upb_v1='0';s.DOS_00866_cmp_control_pb_v2='0';s.DOS_01114_"
		"eth_bvci_v1='0';s.DOS_02831_usb_clk_rst_v2='0';s.DOS_01643_pfm_cache_ahb_v2='0';s.DOS_EIP_00206r5_sqi_v2='0';s.DOS_E"
		"IP_00124_usb_hs_otgcore_v1='0';s.DOS_EIP_00218_math_rng_ahbs_v2='0';s.DOS_EIP_00109_ebi_v1='0';s.DOS_EIP_00158_crypt"
		"o_v1='0';s.ADC_PingPong='1';s.NConversionTotal='1';s.NSampleTotal='1';s.UART_TX_IMPLEMENTATION='[2]';s.UART_RX_IMPLE"
		"MENTATION='[2]';s.UART_TX_DMACHANNEL='[0]';s.UART_HALF_DUPLEX_MODE='[0]';s.UART_TX_THREAD_PROTECTION='[9]';s.DOS_024"
		"81_WACJ_Config='0';s.DOS_02481_WACJ_int_evic_v3='0';s.DOS_02481_WACN_Config='0';s.DOS_02481_WACN_int_evic_v3='0';s.D"
		"OS_01577_cla_clc_upb_v1_32bit='0';s.DOS_03247_can_fd_upb_v2='0';s.DOS_02481_WACN_MC_Config='0';s.DOS_02481_WACN_MC_i"
		"nt_evic_v3='0';"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"TargetExtensionPlatform"
		Value			""
	      }
	      CustomProperty {
		DataType		"slbool"
		Name			"EXTMODE_DATA_UPLOAD"
		Value			off
	      }
	    }
	    PropName		    "Components"
	  }
	}
	SlCovCC.ConfigComp {
	  $ObjectID		  22
	  Version		  "1.18.1"
	  DisabledProps		  []
	  Description		  "Simulink Coverage Configuration Component"
	  Components		  []
	  Name			  "Simulink Coverage"
	  CovEnable		  off
	  CovScope		  "EntireSystem"
	  CovIncludeTopModel	  on
	  RecordCoverage	  off
	  CovPath		  "/"
	  CovSaveName		  "covdata"
	  CovCompData		  ""
	  CovMetricSettings	  "dwe"
	  CovFilter		  ""
	  CovHTMLOptions	  ""
	  CovNameIncrementing	  off
	  CovHtmlReporting	  off
	  CovForceBlockReductionOff on
	  CovEnableCumulative	  on
	  CovSaveCumulativeToWorkspaceVar off
	  CovSaveSingleToWorkspaceVar off
	  CovCumulativeVarName	  "covCumulativeData"
	  CovCumulativeReport	  off
	  CovSaveOutputData	  on
	  CovOutputDir		  "slcov_output/$ModelName$"
	  CovDataFileName	  "$ModelName$_cvdata"
	  CovShowResultsExplorer  on
	  CovReportOnPause	  on
	  CovModelRefEnable	  "off"
	  CovModelRefExcluded	  ""
	  CovExternalEMLEnable	  on
	  CovSFcnEnable		  on
	  CovBoundaryAbsTol	  1e-05
	  CovBoundaryRelTol	  0.01
	  CovUseTimeInterval	  off
	  CovStartTime		  0
	  CovStopTime		  0
	  CovMcdcMode		  "Masking"
	}
	hdlcoderui.hdlcc {
	  $ObjectID		  23
	  Version		  "1.18.1"
	  DisabledProps		  []
	  Description		  "HDL Coder custom configuration component"
	  Components		  []
	  Name			  "HDL Coder"
	  Array {
	    Type		    "Cell"
	    Dimension		    1
	    Cell		    " "
	    PropName		    "HDLConfigFile"
	  }
	  HDLCActiveTab		  "0"
	}
	PropName		"Components"
      }
      Name		      "Configuration"
      CurrentDlgPage	      "Solver"
      ConfigPrmDlgPosition    [ 145, 177, 1135, 847 ]
      ExtraOptions	      "-aBlockCommentType=\"BlockPathComment\" -aIgnoreTestpoints=0 "
    }
    PropName		    "ConfigurationSets"
  }
  Simulink.ConfigSet {
    $PropName		    "ActiveConfigurationSet"
    $ObjectID		    10
  }
  Object {
    $PropName		    "DataTransfer"
    $ObjectID		    24
    $ClassName		    "Simulink.GlobalDataTransfer"
    DefaultTransitionBetweenSyncTasks "Ensure deterministic transfer (maximum delay)"
    DefaultTransitionBetweenAsyncTasks "Ensure data integrity only"
    DefaultTransitionBetweenContTasks "Ensure deterministic transfer (minimum delay)"
    DefaultExtrapolationMethodBetweenContTasks "None"
  }
  ExplicitPartitioning	  off
  BlockDefaults {
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
    HideAutomaticName	    on
    BlockRotation	    0
    BlockMirror		    off
  }
  AnnotationDefaults {
    HorizontalAlignment	    "left"
    VerticalAlignment	    "top"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    MarkupType		    "model"
    UseDisplayTextAsClickCallback off
    AnnotationType	    "note_annotation"
    FixedHeight		    off
    FixedWidth		    off
    Interpreter		    "off"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  MaskDefaults {
    SelfModifiable	    "off"
    IconFrame		    "on"
    IconOpaque		    "opaque"
    RunInitForIconRedraw    "analyze"
    IconRotate		    "none"
    PortRotate		    "default"
    IconUnits		    "autoscale"
  }
  MaskParameterDefaults {
    Evaluate		    "on"
    Tunable		    "on"
    NeverSave		    "off"
    Internal		    "off"
    ReadOnly		    "off"
    Enabled		    "on"
    Visible		    "on"
    ToolTip		    "on"
  }
  BlockParameterDefaults {
    Block {
      BlockType		      Constant
      Value		      "1"
      VectorParams1D	      on
      SamplingMode	      "Sample based"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeStr	      "Inherit: Inherit from 'Constant value'"
      LockScale		      off
      SampleTime	      "inf"
      FramePeriod	      "inf"
      PreserveConstantTs      off
    }
    Block {
      BlockType		      DataTypeConversion
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeStr	      "Inherit: Inherit via back propagation"
      LockScale		      off
      ConvertRealWorld	      "Real World Value (RWV)"
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Demux
      Outputs		      "4"
      DisplayOption	      "none"
      BusSelectionMode	      off
    }
    Block {
      BlockType		      DiscreteIntegrator
      IntegratorMethod	      "Integration: Forward Euler"
      gainval		      "1.0"
      ExternalReset	      "none"
      InitialConditionSource  "internal"
      InitialCondition	      "0"
      InitialConditionSetting "Output"
      SampleTime	      "1"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeStr	      "Inherit: Inherit via internal rule"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
      LimitOutput	      off
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      IgnoreLimit	      off
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
    Block {
      BlockType		      Fcn
      Expr		      "sin(u[1])"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      ParamMin		      "[]"
      ParamMax		      "[]"
      ParamDataTypeStr	      "Inherit: Same as input"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeStr	      "Inherit: Same as input"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Inport
      Port		      "1"
      OutputFunctionCall      off
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeStr	      "Inherit: auto"
      LockScale		      off
      BusOutputAsStruct	      off
      Unit		      "inherit"
      PortDimensions	      "-1"
      VarSizeSig	      "Inherit"
      SampleTime	      "-1"
      SignalType	      "auto"
      SamplingMode	      "auto"
      LatchByDelayingOutsideSignal off
      LatchInputForFeedbackSignals off
      Interpolate	      on
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeStr	      "Inherit: auto"
      LockScale		      off
      BusOutputAsStruct	      off
      Unit		      "inherit"
      PortDimensions	      "-1"
      VarSizeSig	      "Inherit"
      SampleTime	      "-1"
      SignalType	      "auto"
      SamplingMode	      "auto"
      EnsureOutportIsVirtual  off
      SourceOfInitialOutputValue "Dialog"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
      MustResolveToSignalObject	off
      OutputWhenUnConnected   off
      OutputWhenUnconnectedValue "0"
      VectorParamsAs1DForOutWhenUnconnected on
    }
    Block {
      BlockType		      RateTransition
      Integrity		      on
      Deterministic	      on
      InitialCondition	      "0"
      OutPortSampleTimeOpt    "Specify"
      OutPortSampleTimeMultiple	"1"
      OutPortSampleTime	      "-1"
    }
    Block {
      BlockType		      S-Function
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
      MultiThreadCoSim	      "auto"
    }
    Block {
      BlockType		      Saturate
      UpperLimitSource	      "Dialog"
      UpperLimit	      "0.5"
      LowerLimitSource	      "Dialog"
      LowerLimit	      "-0.5"
      LinearizeAsGain	      on
      ZeroCross		      on
      SampleTime	      "-1"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeStr	      "Inherit: Same as input"
      LockScale		      off
      RndMeth		      "Floor"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      "FromPortIcon"
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      SystemSampleTime	      "-1"
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      FunctionInterfaceSpec   "void_void"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      DataTypeOverrideAppliesTo	"AllNumericTypes"
      MinMaxOverflowLogging   "UseLocalSettings"
      Opaque		      off
      MaskHideContents	      off
      SFBlockType	      "NONE"
      VariantControlMode      "Expression"
      Variant		      off
      GeneratePreprocessorConditionals off
      AllowZeroVariantControls off
      PropagateVariantConditions off
      TreatAsGroupedWhenPropagatingVariantConditions on
      ContentPreviewEnabled   off
      IsWebBlock	      off
      IsObserver	      off
      Latency		      "0"
      AutoFrameSizeCalculation off
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      CollapseMode	      "All dimensions"
      CollapseDim	      "1"
      InputSameDT	      on
      AccumDataTypeStr	      "Inherit: Inherit via internal rule"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeStr	      "Inherit: Same as first input"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Terminator
    }
    Block {
      BlockType		      UniformRandomNumber
      Minimum		      "-1"
      Maximum		      "1"
      Seed		      "0"
      SampleTime	      "-1"
      VectorParams1D	      on
    }
  }
  System {
    Name		    "controller_position"
    Location		    [-8, -8, 1544, 832]
    Open		    off
    PortBlocksUseCompactNotation off
    SetExecutionDomain	    off
    ExecutionDomainType	    "Deduce"
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
    TiledPageScale	    1
    ShowPageBoundaries	    off
    ZoomFactor		    "80"
    ReportName		    "simulink-default.rpt"
    SIDHighWatermark	    "179"
    Block {
      BlockType		      SubSystem
      Name		      "Converting Encoder signals\n to real position"
      SID		      "46"
      Ports		      [1, 1]
      Position		      [1750, 482, 1915, 578]
      ZOrder		      343
      RequestExecContextInheritance off
      ContentPreviewEnabled   on
      Port {
	PortNumber		1
	Name			"U1 CH1"
      }
      System {
	Name			"Converting Encoder signals\n to real position"
	Location		[-8, -8, 1928, 1168]
	Open			off
	PortBlocksUseCompactNotation off
	SetExecutionDomain	off
	ExecutionDomainType	"Deduce"
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"150"
	Block {
	  BlockType		  Inport
	  Name			  "Encoder"
	  SID			  "47"
	  Position		  [-310, 123, -280, 137]
	  ZOrder		  343
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type Conversion1"
	  SID			  "51"
	  Position		  [-215, 113, -140, 147]
	  ZOrder		  347
	  OutMin		  "[0]"
	  OutMax		  "[0]"
	  OutDataTypeStr	  "double"
	  RndMeth		  "Floor"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type Conversion2"
	  SID			  "166"
	  Position		  [50, 113, 125, 147]
	  ZOrder		  364
	  OutMin		  "[0]"
	  OutMax		  "[0]"
	  OutDataTypeStr	  "double"
	  RndMeth		  "Floor"
	  SaturateOnIntegerOverflow off
	  Port {
	    PortNumber		    1
	    Name		    "U1 CH1"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "Rad/s1"
	  SID			  "167"
	  Position		  [190, 102, 330, 158]
	  ZOrder		  365
	  Gain			  "2*pi/146"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Saturate
	  Name			  "Saturation"
	  SID			  "168"
	  Ports			  [1, 1]
	  Position		  [425, 115, 455, 145]
	  ZOrder		  366
	  InputPortMap		  "u0"
	  UpperLimit		  "20"
	  LowerLimit		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "position real"
	  SID			  "169"
	  Position		  [565, 123, 595, 137]
	  ZOrder		  363
	  IconDisplay		  "Port number"
	  VectorParamsAs1DForOutWhenUnconnected	off
	}
	Line {
	  ZOrder		  31
	  SrcBlock		  "Encoder"
	  SrcPort		  1
	  DstBlock		  "Data Type Conversion1"
	  DstPort		  1
	}
	Line {
	  ZOrder		  56
	  SrcBlock		  "Rad/s1"
	  SrcPort		  1
	  DstBlock		  "Saturation"
	  DstPort		  1
	}
	Line {
	  Name			  "U1 CH1"
	  ZOrder		  57
	  Labels		  [0, 0]
	  SrcBlock		  "Data Type Conversion2"
	  SrcPort		  1
	  DstBlock		  "Rad/s1"
	  DstPort		  1
	}
	Line {
	  ZOrder		  58
	  SrcBlock		  "Saturation"
	  SrcPort		  1
	  DstBlock		  "position real"
	  DstPort		  1
	}
	Line {
	  ZOrder		  60
	  SrcBlock		  "Data Type Conversion1"
	  SrcPort		  1
	  DstBlock		  "Data Type Conversion2"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Microchip Master"
      SID		      "4"
      Ports		      []
      Position		      [905, 302, 1005, 358]
      ZOrder		      321
      Priority		      "1"
      LibraryVersion	      "3.43"
      SourceBlock	      "MCHP_Blockset/System Configuration/Microchip Master"
      SourceType	      ""
      SourceProductName	      "MPLABŪ Device Blocks for SimulinkŪ"
      MultiThreadCoSim	      auto
      PICREF		      "33FJ128MC804"
      TIMESTEP_REF	      "Timer + ADC  ( 0.001s + [-0.0014283%] ==> 0.00099999s )"
      BUSYFLAG		      "Dynamic Options"
      BUSYFLAG_TXT	      None
      PWRTEN		      "Not used"
      BOREN		      Disable
      BODENV		      "2.7V"
      BORV		      "Not used"
      FPWRT		      "128ms"
      DSBOREN		      "Enable ZPBOR during Deep Sleep Mode"
      DSLPBOR		      "Not used"
      MCLRE		      Enabled
      SMCLR		      "MCLR pin generates a normal system Reset"
      PMDL1WAY		      "Allow only one reconfiguration"
      RSTPRI		      "Device will obtain reset instruction from Primary flash"
      TEMP		      "Not used"
      SOSCSRC		      "Not used"
      SOSCSEL		      "Not used"
      IOL1WAY		      "Allow Only One Re-configuration"
      ALTVREF		      "Not used"
      DISUVREG		      "Not used"
      DSSWEN		      "Not used"
      LPCFG		      "Not used"
      RTCBAT		      "Not used"
      VBTBOR		      "Not used"
      WUTSEL		      "Not used"
      POWERSAVE		      off
      FNOSC		      "Internal Fast RC (FRC)"
      FPR		      "ECIO w/ PLL 16x"
      FOSFPR		      "HS3 w/PLL 16x"
      FOS		      "Primary Oscillator"
      FRANGE		      "High Range"
      OSCILLATOR_SELECT	      "Internal Fast RC (FRC)"
      OSCILLATOR_SELECT_spd   "Internal Fast RC (FRC)"
      QUARTZ		      7.37e+06
      QUARTZ_spd	      7.37e+06
      POSCGAIN		      "2x gain setting"
      POSCBOOST		      "Boost the kick start of the oscillator"
      SOSCGAIN		      "2x gain setting"
      SOSCBOOST		      "Boost the kick start of the oscillator"
      ACTIV_PLL		      on
      ACTIV_PLL_spd	      on
      MIPS_DESIRED	      20000000
      MIPS_DESIRED_spd	      20000000
      FPLLMUL		      "Not used"
      FPLLIDIV		      "8x Divider"
      POSCFREQ		      "Not used"
      POSCMD		      "Primary Oscillator Disabled"
      POSCMOD		      "Primary osc disabled"
      MIPS		      20.00428571428571089541038 * 1e6
      ACLKCON		      "Optimized for PWM resolution & ADC conversion speed"
      FPLLODIV		      "32x Divider"
      PLLKEN		      "Clock switch to PLL source will wait until the PLL lock signal is valid."
      FCKSM		      "Clock switching is enabled; Fail-Safe Clock Monitor is Disabled"
      FCKSMEN		      "Sw Disabled; Mon Disabled"
      IESO		      "Start up with FRC; then switch"
      DSWDTPS		      "1:2^36"
      FWDTEN		      Disable
      FWDTWINSZ		      "Window size is 25%"
      FWPSA		      "1:512"
      FWPSA0		      "1:128"
      FWPSB		      "1:16"
      WDT		      Disable
      WDTPOST		      "1:32768"
      WDTPRE		      "1:128"
      WDTPS		      "1:1048576"
      WINDIS		      "Watchdog Timer in Non-Window mode"
      WWDTEN		      "Non-Window mode"
      DSWDTEN		      "Enable DSWDT during Deep Sleep Mode"
      DSWDTOSC		      "Select LPRC as DSWDT Reference clock"
      FPBDIV		      "Not used"
      FSOSCEN		      "Disable Secondary Oscillator"
      LPRCSEL		      "Not used"
      OSCIOFCN		      "Not used"
      OSCIOFNC		      "general purpose digital I/O pin"
      LVRCFG		      "Not used"
      PLL_96MHZ		      "Not used"
      PLL96MHZ		      "Not used"
      PLLDIV		      "Not used"
      WDTCLK		      "Not used"
      WDTCMX		      "Not used"
      WDTWIN		      "Watchdog Window is 25% of WDT period"
      APL		      "Aux Flash Code protect is disabled"
      APLK		      "Aux Flash Write Protection or Code Protection is Enabled"
      AWRP		      "Auxiliary program memory is not write-protected"
      BSS		      "No Boot program Flash segment"
      BWP		      "Not used"
      BWRP		      "Boot Segment may be written"
      CP		      "Protection Disabled"
      EBS		      "No Boot EEPROM"
      ESS		      "No Segment Data EEPROM"
      GCP		      "General Segment Code protect is Disabled"
      GSS		      "User program memory is not code-protected"
      GSS0		      "Not used"
      GSSK		      "General Segment Write Protection or Code Protection is Enabled"
      GWRP		      "General Segment may be written"
      PWP		      "Not used"
      RBS		      "No Boot RAM"
      RSS		      "No Secure RAM"
      SSS		      "No Secure Segment"
      SWRP		      "Secure segment may be written"
      WPCFG		      "Not used"
      WPDIS		      "Not used"
      WPEND		      "Not used"
      WPFP		      "Not used"
      ICESEL		      "Communicate on PGEC1/PGED1"
      ICS		      "Communicate on PGEC1 and PGED1"
      JTAGEN		      Disable
      COE		      "Not used"
      RES		      "Not used"
      DEBUG		      "Debugger is disabled"
      BACKBUG		      "Not used"
      BKBUG		      "Not used"
      ALTI2C		      "I2C mapped to SDA1/SCL1 pins"
      ALTI2C1		      "SDA1/SCK1 pins are selected as the I/O pins for I2C1"
      ALTI2C2		      "SDA2/SCK2 pins are selected as the I/O pins for I2C2"
      ALTQIO		      "QEA1; QEB1; INDX1 are selected as inputs to QEI1"
      ALTSS1		      "SS1A is selected as the I/O pin for SPI1"
      CMPPOL0		      "Hysteresis is applied to falling edge"
      CMPPOL1		      "Hysteresis is applied to falling edge"
      FCANIO		      "Not used"
      FETHIO		      "Default Ethernet I/O"
      FMIIEN		      "MII Enabled"
      FSRSSEL		      "Not used"
      FUSBIDIO		      "Controlled by the USB Module"
      FVBUSONIO		      "Not used"
      HPOL		      "PWM module high side output pins have active-high output polarity"
      HYST0		      "45 mV Hysteresis"
      HYST1		      "45 mV Hysteresis"
      I2C1SEL		      "Not used"
      LPOL		      "PWM module low side output pins have active-high output polarity"
      PWMPIN		      "PWM module pins controlled by PORT register at device Reset"
      RTCOSC		      "Not used"
      UPLLEN		      "USB PLL Disabled"
      UPLLIDIV		      "Not used"
      ATMOD8		      "Not used"
      ALTPMP		      "Not used"
      I2C2SEL		      "Not used"
      ALTADREF		      "Not used"
      ALTCVREF		      "Not used"
      PWMLOCK		      "PWM registers may be written without key sequence"
      MCHP_TIMER_REQUEST      "{Time Step}{TS}0:2:3:1:[3  5]:20004.28571428571;"
      MCHP_TIMER_RESULT	      [3 20003.285714285713766 ]
      MCHP_PLLRegisters	      [69    150  16387     -1]
      MCHPVAR		      "MCHP.fcy.MIPS=MCHP_Fun.Hex2num('417313DBDB6DB6DB');MCHP.fcy.SYSCLK=MCHP_Fun.Hex2num('417313DBDB6"
      "DB6DB');MCHP.fcy.ADC=MCHP_Fun.Hex2num('417313DBDB6DB6DB');MCHP.fcy.Comparator=MCHP_Fun.Hex2num('417313DBDB6DB6DB"
      "');MCHP.fcy.I2C=MCHP_Fun.Hex2num('417313DBDB6DB6DB');MCHP.fcy.SPI=MCHP_Fun.Hex2num('417313DBDB6DB6DB');MCHP.fcy."
      "UART=MCHP_Fun.Hex2num('417313DBDB6DB6DB');MCHP.fcy.Timers=MCHP_Fun.Hex2num('417313DBDB6DB6DB');MCHP.fcy.OC=MCHP_"
      "Fun.Hex2num('417313DBDB6DB6DB');MCHP.fcy.IC=MCHP_Fun.Hex2num('417313DBDB6DB6DB');MCHP.fcy.Ports=MCHP_Fun.Hex2num"
      "('417313DBDB6DB6DB');MCHP.fcy.QEI=MCHP_Fun.Hex2num('417313DBDB6DB6DB');MCHP.PowerSave=0;MCHP.TimeStepFactor=MCHP"
      "_Fun.Hex2num('3FEFFFE20C0F0534');MCHP.TimeStep_Timer=3;MCHP.NTIMERS=5;MCHP.id.name='33FJ128MC804';MCHP.id.N=resh"
      "ape([33 128 804],1,3);MCHP.id.L=reshape({ 'FJ','MC',''},1,3);MCHP.id.Arch=3;MCHP.periph.PPS.reg_RPINRx=reshape(["
      "-1 1 1 -1 -1 -1 1 1 1 1 -1 -1 -1 -1 1 1 -1 -1 -1 -1 1 1 -1 -1 1 -1 1 -1 1 1 1 -1 1 1 1 -1 1 1 1 1 1 1 1 -1 1 1 1"
      " -1 -1 -1 -1 -1 1],1,53);MCHP.PPS.dsPIC.RP=reshape([16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 "
      "36 37 38 39 40 41],1,26);MCHP.PPS.dsPIC.RPI=reshape(MCHP_Fun.Hex2num('[]'),0,0);MCHP.PPS.dsPIC.RPINR_list=reshap"
      "e({ '1','INT1','INT2','INT3','INT4','T1CK','T2CK','T3CK','T4CK','T5CK','T6CK','T7CK','T8CK','T9CK','IC1','IC2','"
      "IC3','IC4','IC5','IC6','IC7','IC8','OCFA','OCFB','FLT1','FLT2','FLT3','FLT4','QEA1','QEB1','INDX1','HOME1','QEA2"
      "','QEB2','INDX2','HOME2','U1RX','U1CTS','U2RX','U2CTS','SDI1','SCK1_in','SS1_in','44','SDI2','SCK2_in','SS2_in',"
      "'48','CSDIR','CSCK','COFS','52','C1RX','C2RX','U3RX','U3CTS','U4RX','U4CTS','SDI3','SCK3_in','SS3_in','62','SDI4"
      "','SCK4_in','SS4_in','66','IC9','IC10','IC11','IC12','IC13','IC14','IC15','IC16','OCFC','SYNCI1','SYNCI2','DTCMP"
      "1','DTCMP2','DTCMP3','DTCMP4','DTCMP5','DTCMP6','DTCMP7','FLT5','FLT6','FLT7','FLT8','89','SENT1','SENT2','92'},"
      "1,92);MCHP.PPS.dsPIC.RPOR_list=reshape({ '1','C1OUT','C2OUT','U1TX','U1RTS','U2TX','U2RTS','SDO1','SCK1_out','SS"
      "1_out','SDO2','SCK2_out','SS2_out','CSDO','CSCK','COFS','C1TX','17','OC1','OC2','OC3','OC4','22','23','24','25',"
      "'UPDN1','UPDN2'},1,28);MCHP.PPS.map_RPnR_RPORx=reshape([0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 "
      "22 23 24 25],1,26);MCHP.Rx=reshape([19 21 25 -1 -1 -1 -1 -1 -1 -1 -1 20 22 26 -1 -1 -1 -1 -1 -1 -1 -1 30 23 27 -"
      "1 -1 -1 -1 -1 -1 -1 -1 31 24 36 -1 -1 -1 -1 -1 -1 -1 -1 34 33 37 -1 -1 -1 -1 -1 -1 -1 -1 -1 41 38 -1 -1 -1 -1 -1"
      " -1 -1 -1 -1 42 2 -1 -1 -1 -1 -1 -1 -1 -1 13 43 3 -1 -1 -1 -1 -1 -1 -1 -1 32 44 4 -1 -1 -1 -1 -1 -1 -1 -1 35 1 5"
      " -1 -1 -1 -1 -1 -1 -1 -1 12 8 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 9 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 10 -1 -1 -1 -1 -1 -1"
      " -1 -1 -1 -1 11 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 14 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 15 -1 -1 -1 -1 -1 -1 -1 -1 -1],11"
      ",16);MCHP.ADC.ANtype=reshape([3 0],1,2);MCHP.ADC.ADCONx=reshape([63471 59327 40959 7 0 0],1,6);MCHP.ADC.ADCHS_0="
      "reshape([40863 1799],1,2);MCHP.ADC.Flags=reshape([1 0],1,2);MCHP.ADC.Buffer=reshape([1 -1],1,2);MCHP.ADC.port=re"
      "shape([0 1 16 17 18 19 32 33 34 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1"
      " -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1],1,57);MCHP.ADC.port_ALT=reshape([-1 -1 -1 -1],1"
      ",4);MCHP.ADC.port_VrefP=0;MCHP.ADC.port_VrefM=1;MCHP.ADC.port_AVdd=-1;MCHP.ADC.port_AVss=-1;MCHP.ADC.ADCDATA=res"
      "hape([0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "
      "0 0 0 0],1,57);MCHP.memory.RAM=16384;MCHP.memory.RAM_XBegin=2048;MCHP.memory.RAM_YBegin=10240;MCHP.memory.RAM_dm"
      "a=reshape([16384 18432],1,2);MCHP.memory.FLASH_ECC=0;MCHP.DMA.Num=8;MCHP.DMA.CNTmax=65535;MCHP.QEI.QEICONx=resha"
      "pe([49151 49151 -1 -1 -1 -1],1,6);MCHP.QEI.QEItype=2;MCHP.QEI.Port_QEI_INDX=reshape([-1 -1],1,2);MCHP.QEI.Port_Q"
      "EI_QEA=reshape([-1 -1],1,2);MCHP.QEI.Port_QEI_QEB=reshape([-1 -1],1,2);MCHP.QEI.Port_QEI_UPDN=reshape([-1 -1],1,"
      "2);MCHP.INT.Port=reshape([23 32767 32767 -1 -1],1,5);MCHP.PWM_HS.Flags=reshape([0 0 0],1,3);MCHP.PWM.port_FLT=re"
      "shape([-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1],1,33)"
      ";MCHP.PWM.PWMRef=2;MCHP.PWM.Flag=2;MCHP.PWM.Port_PWM_l=reshape([31 39 29 -1 27 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 "
      "-1 -1 -1 -1 -1 -1 -1 -1],2,12);MCHP.PWM.Port_PWM_h=reshape([30 38 28 -1 26 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -"
      "1 -1 -1 -1 -1 -1 -1],2,12);MCHP.IC.Port=reshape([32767 32767 0 0 0 0 32767 32767 0 0 0 0 0 0 0 0],1,16);MCHP.IC."
      "type=0;MCHP.OC.Port=reshape([32767 32767 32767 32767 0 0 32767 32767 0 0 0 0 0 0 0 0],1,16);MCHP.OC.type=0;MCHP."
      "CN.Port=reshape([4 20 0 1 16 17 18 19 32 33 34 31 30 29 28 27 26 39 38 41 40 25 24 23 22 36 37 21 35 3 2 -1 -1 -"
      "1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1"
      " -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1],1,85);MCHP.CN.PullUp=reshape([65535 32767 0 0 0 0 0 0 0 0 0],1,11);M"
      "CHP.CN.type=0;MCHP.CN.Flag_PullDown=1;MCHP.SPI.Refs=reshape([1 2 0 0 0 0],1,6);MCHP.SPI.SPIxCON1=8191;MCHP.SPI.S"
      "PIxCON2=57346;MCHP.SPI.Port_SDI=reshape([-1 -1 -1 -1 -1 -1],1,6);MCHP.SPI.Port_SDO=reshape([-1 -1 -1 -1 -1 -1],1"
      ",6);MCHP.SPI.Port_SCK=reshape([-1 -1 -1 -1 -1 -1],1,6);MCHP.SPI.Port_SS=reshape([-1 -1 -1 -1 -1 -1],1,6);MCHP.I2"
      "C.Refs=reshape([1 0 0 0 0],1,5);MCHP.I2C.I2CxCON=65535;MCHP.I2C.NewRegName=1;MCHP.I2C.Port_SDA=reshape([25 -1 -1"
      " -1 -1],1,5);MCHP.I2C.Port_SCL=reshape([24 -1 -1 -1 -1],1,5);MCHP.I2C.Port_ASDA=reshape([21 -1 -1 -1 -1],1,5);MC"
      "HP.I2C.Port_ASCL=reshape([22 -1 -1 -1 -1],1,5);MCHP.I2C.Fuse_Port_SCL_SDA=reshape([20 1 -1 -1 -1 -1 -1 -1 -1 -1]"
      ",2,5);MCHP.I2C.Fuse_Port_ASCL_ASDA=reshape([20 2 -1 -1 -1 -1 -1 -1 -1 -1],2,5);MCHP.PGA.Port_PGA1P=reshape([-1 -"
      "1 -1 -1],1,4);MCHP.PGA.Port_PGA1N=reshape([-1 -1 -1 -1],1,4);MCHP.PGA.Port_PGA2P=reshape([-1 -1 -1 -1],1,4);MCHP"
      ".PGA.Port_PGA2N=reshape([-1 -1 -1 -1],1,4);MCHP.PGA.Num=0;MCHP.HS_AnalogComparator.Port_CMP1=reshape([-1 -1 -1 -"
      "1],1,4);MCHP.HS_AnalogComparator.Port_CMP2=reshape([-1 -1 -1 -1],1,4);MCHP.HS_AnalogComparator.Port_CMP3=reshape"
      "([-1 -1 -1 -1],1,4);MCHP.HS_AnalogComparator.Port_CMP4=reshape([-1 -1 -1 -1],1,4);MCHP.HS_AnalogComparator.PORT_"
      "EXTREFx=reshape([-1 -1],1,2);MCHP.HS_AnalogComparator.Port_DACOUTx=reshape([-1 -1],1,2);MCHP.HS_AnalogComparator"
      ".Num=0;MCHP.Comp.Port_CVrefin=-1;MCHP.Comp.Port_CVref=34;MCHP.Comp.Port_CVref1O=-1;MCHP.Comp.Port_CVref2O=-1;MCH"
      "P.Comp.Port_CxOUT=reshape([32767 32767 32767 32767 32767],1,5);MCHP.Comp.Port_OAxOUT=reshape([-1 -1 -1 -1 -1],1,"
      "5);MCHP.Comp.Port_CxINP=reshape([19 17 -1 -1 -1],1,5);MCHP.Comp.Port_CxINM=reshape([-1 -1 -1 -1 -1 -1 -1 -1 -1 -"
      "1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1],4,5);MCHP.Comp.nComp=reshape([5 0 2],1,3);MCHP.Comp.OpAmp=0;MCHP.Comp.CVRCON=re"
      "shape([255 0],1,2);MCHP.CDAC.Port_DACx=reshape([-1 -1 -1],1,3);MCHP.CDAC.nCDAC=1;MCHP.UART.port_Rx=reshape([3276"
      "7 32767 -1 -1 -1 -1],1,6);MCHP.UART.port_Tx=reshape([32767 32767 -1 -1 -1 -1],1,6);MCHP.UART.port_ARx=reshape([-"
      "1 -1],1,2);MCHP.UART.port_ATx=reshape([-1 -1],1,2);MCHP.UART.port_RTS=reshape([32767 32767 -1 -1 -1 -1],1,6);MCH"
      "P.UART.port_CTS=reshape([32767 32767 -1 -1 -1 -1],1,6);MCHP.UART.reg_UxMODE=reshape([64511 64511 -1 -1 -1 -1],1,"
      "6);MCHP.UART.reg_UxSTA=reshape([61439 61439 -1 -1 -1 -1],1,6);MCHP.modsrc.DOS_00794=0;MCHP.modsrc.DOS_00931=0;MC"
      "HP.modsrc.DOS_00932=0;MCHP.modsrc.DOS_00942=0;MCHP.modsrc.DOS_00938=0;MCHP.modsrc.DOS_00996=0;MCHP.modsrc.DOS_00"
      "997=0;MCHP.modsrc.DOS_00998=0;MCHP.modsrc.DOS_00209=0;MCHP.modsrc.DOS_01555_adc=0;MCHP.modsrc.DOS_01293=0;MCHP.m"
      "odsrc.DOS_00828=0;MCHP.modsrc.DOS_01116=0;MCHP.modsrc.DOS_01017_RPORx=0;MCHP.modsrc.DOS_01017_RPINRx=0;MCHP.mods"
      "rc.DOS_01555_nvm_tsmc18_v2_16bit=0;MCHP.modsrc.DOS_00804=0;MCHP.modsrc.DOS_00826=0;MCHP.modsrc.DOS_01555_TLAK_PM"
      "Dx=0;MCHP.modsrc.DOS_01555_TLAK_INT_=0;MCHP.modsrc.DOS_00933=0;MCHP.modsrc.DOS_01555=0;MCHP.modsrc.DOS_01555_ptg"
      "=0;MCHP.modsrc.DOS_00929=0;MCHP.modsrc.DOS_00958=0;MCHP.modsrc.DOS_01117_PORTx=0;MCHP.modsrc.DOS_00999=0;MCHP.mo"
      "dsrc.DOS_01198=0;MCHP.modsrc.DOS_01041=0;MCHP.modsrc.DOS_00892=0;MCHP.modsrc.DOS_01287_TLAC_PMDx=0;MCHP.modsrc.D"
      "OS_01287_TLAC_INT_=0;MCHP.modsrc.DOS_01424=0;MCHP.modsrc.DOS_01332=0;MCHP.modsrc.DOS_01441_i2c_upb_v1_16bit_TLAH"
      "=0;MCHP.modsrc.DOS_01482=0;MCHP.modsrc.DOS_02508c11=0;MCHP.modsrc.DOS_01468_PMBA_current_source=0;MCHP.modsrc.DO"
      "S_02291_PGA=0;MCHP.modsrc.DOS_01467_Comparator=0;MCHP.modsrc.DOS_01498_TLAY=0;MCHP.modsrc.DOS_02316_nvm_ctrl_v1_"
      "16bit=0;MCHP.modsrc.DOS_00993_PLL_120MHz=0;MCHP.modsrc.DOS_01577_cla_clc_upb_v1=0;MCHP.modsrc.DOS_01332_ptg_pc_v"
      "1=0;MCHP.modsrc.DOS_00958_pwm_TLAY=0;MCHP.modsrc.TLAY_IOPorts=0;MCHP.modsrc.DOS_00929q=0;MCHP.modsrc.DOS_02415_s"
      "pi_v5=0;MCHP.modsrc.DOS_RPINRx_16bit_2=0;MCHP.modsrc.DOS_01497_TLAH_PMDx=0;MCHP.modsrc.DOS_02550_TLAL_INT=0;MCHP"
      ".modsrc.DOS_00958_pwm_TLAH=0;MCHP.modsrc.DOS_01287_TLAH_INT_=0;MCHP.modsrc.DOS_01113=0;MCHP.modsrc.DOS_01017_PMD"
      "x=0;MCHP.modsrc.DOS_00927=0;MCHP.modsrc.DOS_01080=0;MCHP.modsrc.DOS_00794_cpu_16bit_v3=0;MCHP.modsrc.DOS_02359a_"
      "sent_j2716_upb_v1=0;MCHP.modsrc.DOS_01520_wdt_dmt_upb_v1_16bit=0;MCHP.modsrc.DOS_02192_TLCD_PMDx=0;MCHP.modsrc.D"
      "OS_02192_TLCD_INT_=0;MCHP.modsrc.DOS_02192_cmp=0;MCHP.modsrc.DOS_00958_pwm_TLCD=0;MCHP.modsrc.DOS_02192_PORTx_TL"
      "CD=0;MCHP.modsrc.DOS_00936=0;MCHP.modsrc.DOS_00995=0;MCHP.modsrc.DOS_00546=0;MCHP.modsrc.DOS_00474=0;MCHP.modsrc"
      ".DOS_02481_WACJ_Config=0;MCHP.modsrc.DOS_02569_pfm_cache_ocp_v1=0;MCHP.modsrc.DOS_02819_pfm_ctrl_32bit_upb_v2=0;"
      "MCHP.modsrc.DOS_02674_wdt_upb_v1_32bit=0;MCHP.modsrc.DOS_01520_wdt_dmt_upb_v1=0;MCHP.modsrc.DOS_02869_icd_jtag_b"
      "vci_upb_v2=0;MCHP.modsrc.DOS_02823_WACJ_clk_cru_upb_v2=0;MCHP.modsrc.DOS_01423_RPINRx=0;MCHP.modsrc.DOS_02481_RP"
      "ORx=0;MCHP.modsrc.DOS_02511_pwr_sib_upb_v1_32bit=0;MCHP.modsrc.DOS_02481_WACJ_int_evic_v3=0;MCHP.modsrc.DOS_0150"
      "0_dma_bvci_v2=0;MCHP.modsrc.DOS_02141_tmr_classa_pb_v2=0;MCHP.modsrc.DOS_02815_tmr_classb_upb_v1=0;MCHP.modsrc.D"
      "OS_00740_icap_pb_v1=0;MCHP.modsrc.DOS_00749_ocmp_pb_v1=0;MCHP.modsrc.DOS_01441_i2c_upb_v1_32bit=0;MCHP.modsrc.DO"
      "S_01329_spi_pb_v2=0;MCHP.modsrc.DOS_02478_uart_irda_upb_v1_32bit=0;MCHP.modsrc.DOS_02514_dfm_strl_sst_upb_v1=0;M"
      "CHP.modsrc.DOS_01427_cmp_control_upb_v1_32bit=0;MCHP.modsrc.DOS_01445_dac_nbit__control_upb_v1_32bit=0;MCHP.mods"
      "rc.DOS_01461_afe_ctmu_con_upb_v1=0;MCHP.modsrc.DOS_02472_ppi_pmp16_upb_v1=0;MCHP.modsrc.DOS_02467_gpio_ports_upb"
      "_v1=0;MCHP.modsrc.DOS_02508_adc_sar_ctrl_upb_v1_PIC32MK=0;MCHP.modsrc.DOS_02813a_usb_otgcore_pb_v3=0;MCHP.modsrc"
      ".DOS_01261_tmr_rtcc_pb_v2=0;MCHP.modsrc.DOS_01475_lpwr_deep_sleep_ctrl_v2=0;MCHP.modsrc.DOS_EIP_00136_ssx_v1=0;M"
      "CHP.modsrc.DOS_01152_can_bvci_v1=0;MCHP.modsrc.DOS_02481_WACN_Config=0;MCHP.modsrc.DOS_02823_WACN_clk_cru_upb_v2"
      "=0;MCHP.modsrc.DOS_02481_WACN_int_evic_v3=0;MCHP.modsrc.DOS_03554_cmp_control_upb_v2_32bit=0;MCHP.modsrc.DOS_015"
      "77_cla_clc_upb_v1_32bit=0;MCHP.modsrc.DOS_03247_can_fd_upb_v2=0;MCHP.modsrc.DOS_02481_WACK_MC_Config=0;MCHP.mods"
      "rc.DOS_03247_can_fd_upb_v2_pic32mk=0;MCHP.modsrc.DOS_02481_WACJ_MC_Config=0;MCHP.modsrc.DOS_02481_WACJ_MC_int_ev"
      "ic_v3=0;MCHP.modsrc.DOS_01477_pwm_mc_upb_v1=0;MCHP.modsrc.DOS_01459_ptg_pc_upb_v1_SIC=0;MCHP.modsrc.DOS_01494_qe"
      "i_32b_upb_v1=0;MCHP.modsrc.DOS_02481_WACN_MC_Config=0;MCHP.modsrc.DOS_02481_WACN_MC_int_evic_v3=0;MCHP.modsrc.DO"
      "S_02787_WACD_Config=0;MCHP.modsrc.DOS_00800_dac_4bit_ctrl_pb_v1=0;MCHP.modsrc.DOS_01539_icd_jtag_pb_v2=0;MCHP.mo"
      "dsrc.DOS_02823_clk_cru_upb_v2=0;MCHP.modsrc.DOS_01423_RPORx=0;MCHP.modsrc.DOS_02907_WACD_int_evic_v3=0;MCHP.mods"
      "rc.DOS_00734_uart_irda_pb_v1=0;MCHP.modsrc.DOS_00687_tmr_classa_pb_v1=0;MCHP.modsrc.DOS_00745_tmr_classb_pb_v1=0"
      ";MCHP.modsrc.DOS_02508_adc_sar_ctrl_upb_v1=0;MCHP.modsrc.DOS_00866_cmp_control_pb_v2=0;MCHP.modsrc.DOS_01114_eth"
      "_bvci_v1=0;MCHP.modsrc.DOS_02831_usb_clk_rst_v2=0;MCHP.modsrc.DOS_01643_pfm_cache_ahb_v2=0;MCHP.modsrc.DOS_EIP_0"
      "0206r5_sqi_v2=0;MCHP.modsrc.DOS_EIP_00124_usb_hs_otgcore_v1=0;MCHP.modsrc.DOS_EIP_00218_math_rng_ahbs_v2=0;MCHP."
      "modsrc.DOS_EIP_00109_ebi_v1=0;MCHP.modsrc.DOS_EIP_00158_crypto_v1=0;MCHP.clock.PBxDIV=-1;"
      MCHP_CRC		      6865678
      BTMODE		      "Not used"
      RES1		      "Not used"
      PLLSS		      "Not used"
      RES2		      "Not used"
      ALTCMPI		      "Not used"
      BOREN1		      "Not used"
      ALTRB6		      "Not used"
      RETCFG		      "Not used"
      DFMCY		      "Not used"
      BSS2		      "No Boot Segment"
      BSEN		      "No Boot Segment"
      CWRP		      "Configuration Segment may be written"
      CSS		      "No Protection (other than CWRP)"
      AIVTDIS		      "Disable Alternate Vector Table"
      BSLIM		      "Not used"
      WDTEN		      Disable
      BTSWP		      "BOOTSWP instruction is disabled"
      DBCC		      "No Cross Connection between DAC outputs"
      CTXT1		      "Not Assigned"
      CTXT2		      "Not Assigned"
      SEQNUM		      "Not used"
      nSEQNUM		      "Not used"
      BOREN0		      Enabled
      DMTIVT		      "Not used"
      DMTCNT		      "2^8 (256)"
      DMTEN		      "Dead Man Timer is Disabled and can be enabled by software"
      ON		      "Not used"
      USERID		      "Not used"
      RESERVED1		      "Not used"
      PGL1WAY		      "Allow only one reconfiguration"
      FPLLRNG		      "34-68 MHz Input"
      FPLLICLK		      "FRC is input to the System PLL"
      FPLLMULT		      "PLL Multiply by 128"
      UPLLFSEL		      "USB PLL input is 24 MHz"
      DMTINTV		      "Window/Interval value is 127/128 counter value"
      WDTSPGM		      "WDT stops during Flash programming"
      FDMTEN		      "Deadman Timer is disabled"
      TRCEN		      "Trace features in the CPU are enabled"
      BOOTISA		      "Boot code and Exception code is MIPS32"
      FECCCON		      "ECC and Dynamic ECC are disabled (ECCCON bits are writable)"
      EXTDDRSIZE	      "Not used"
      FSLEEP		      "Flash is powered down when the device is in Sleep mode"
      DBGPER		      "Allow CPU access to all permission regions"
      EJTAGBEN		      "Normal EJTAG functionality"
      TSEQ		      "Not used"
      CSEQ		      "Not used"
    }
    Block {
      BlockType		      SubSystem
      Name		      "PID2"
      SID		      "152"
      Ports		      [1, 1]
      Position		      [1085, 487, 1190, 573]
      ZOrder		      590
      RequestExecContextInheritance off
      ContentPreviewEnabled   on
      System {
	Name			"PID2"
	Location		[-8, -8, 1928, 1168]
	Open			off
	PortBlocksUseCompactNotation off
	SetExecutionDomain	off
	ExecutionDomainType	"Deduce"
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  SID			  "153"
	  Position		  [20, 98, 50, 112]
	  ZOrder		  587
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Add1"
	  SID			  "154"
	  Ports			  [3, 1]
	  Position		  [375, 81, 400, 129]
	  ZOrder		  581
	  Inputs		  "+++"
	  InputSameDT		  off
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "D"
	  SID			  "155"
	  Position		  [145, 165, 245, 205]
	  ZOrder		  586
	  Gain			  "0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Discrete Derivative"
	  SID			  "156"
	  Ports			  [1, 1]
	  Position		  [265, 167, 325, 203]
	  ZOrder		  584
	  LibraryVersion	  "1.453"
	  SourceBlock		  "simulink/Discrete/Discrete Derivative"
	  SourceType		  "Discrete Derivative"
	  SourceProductName	  "Simulink"
	  SourceProductBaseCode	  "SL"
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  ContentPreviewEnabled	  off
	  gainval		  "1.0"
	  ICPrevScaledInput	  "0.0"
	  InputProcessing	  "Elements as channels (sample based)"
	  OutMin		  "[]"
	  OutMax		  "[]"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutputDataTypeScalingMode "Inherit via internal rule"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^-10"
	  LockScale		  off
	  RndMeth		  "Floor"
	  DoSatur		  off
	}
	Block {
	  BlockType		  DiscreteIntegrator
	  Name			  "Discrete-Time\nIntegrator"
	  SID			  "157"
	  Ports			  [1, 1]
	  Position		  [270, 87, 315, 123]
	  ZOrder		  582
	  InitialConditionSetting "Auto"
	  SampleTime		  "-1"
	  LimitOutput		  on
	  UpperSaturationLimit	  "1"
	  LowerSaturationLimit	  "-1"
	  ICPrevOutput		  "DiscIntNeverNeededParam"
	  ICPrevScaledInput	  "DiscIntNeverNeededParam"
	}
	Block {
	  BlockType		  Gain
	  Name			  "I"
	  SID			  "158"
	  Position		  [145, 85, 245, 125]
	  ZOrder		  585
	  Gain			  "Ii"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "P"
	  SID			  "159"
	  Position		  [145, 20, 245, 60]
	  ZOrder		  583
	  Gain			  "Ki"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  SID			  "160"
	  Position		  [440, 98, 470, 112]
	  ZOrder		  588
	  IconDisplay		  "Port number"
	  VectorParamsAs1DForOutWhenUnconnected	off
	}
	Line {
	  ZOrder		  1
	  SrcBlock		  "P"
	  SrcPort		  1
	  Points		  [108, 0; 0, 50]
	  DstBlock		  "Add1"
	  DstPort		  1
	}
	Line {
	  ZOrder		  2
	  SrcBlock		  "I"
	  SrcPort		  1
	  DstBlock		  "Discrete-Time\nIntegrator"
	  DstPort		  1
	}
	Line {
	  ZOrder		  3
	  SrcBlock		  "Add1"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  ZOrder		  4
	  SrcBlock		  "Discrete-Time\nIntegrator"
	  SrcPort		  1
	  DstBlock		  "Add1"
	  DstPort		  2
	}
	Line {
	  ZOrder		  5
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [57, 0]
	  Branch {
	    ZOrder		    6
	    Points		    [0, -65]
	    DstBlock		    "P"
	    DstPort		    1
	  }
	  Branch {
	    ZOrder		    7
	    Points		    [0, 80]
	    DstBlock		    "D"
	    DstPort		    1
	  }
	  Branch {
	    ZOrder		    8
	    DstBlock		    "I"
	    DstPort		    1
	  }
	}
	Line {
	  ZOrder		  9
	  SrcBlock		  "Discrete Derivative"
	  SrcPort		  1
	  Points		  [30, 0]
	  DstBlock		  "Add1"
	  DstPort		  3
	}
	Line {
	  ZOrder		  10
	  SrcBlock		  "D"
	  SrcPort		  1
	  DstBlock		  "Discrete Derivative"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "PWM output"
      SID		      "14"
      Ports		      [1, 1]
      Position		      [1260, 492, 1475, 568]
      ZOrder		      328
      RequestExecContextInheritance off
      ContentPreviewEnabled   on
      Port {
	PortNumber		1
	Name			"U1 CH1"
      }
      System {
	Name			"PWM output"
	Location		[-8, -8, 1544, 832]
	Open			off
	PortBlocksUseCompactNotation off
	SetExecutionDomain	off
	ExecutionDomainType	"Deduce"
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"125"
	Block {
	  BlockType		  Inport
	  Name			  "w signal"
	  SID			  "15"
	  Position		  [40, 58, 70, 72]
	  ZOrder		  315
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Button 1"
	  SID			  "176"
	  Ports			  [0, 1]
	  Position		  [230, 238, 315, 272]
	  ZOrder		  366
	  LibraryVersion	  "3.43"
	  SourceBlock		  "MCHP_Blockset/Digital IO/Digital Input"
	  SourceType		  "Input driver for Digital Input Pins"
	  SourceProductName	  "MPLABŪ Device Blocks for SimulinkŪ"
	  MultiThreadCoSim	  auto
	  PORT			  "Dynamic Options"
	  PORT_TXT		  "B   [ 0 : 15 ]"
	  PIN			  [4]
	  PACK			  off
	  SIMULTANEOUS		  off
	  ORDERING		  None
	  SampleTime		  -1 
	  MCHP_PORT		  "{Digital In}{DIN}2:0:B4;"
	  MCHP_MASTERLINK	  "controller22/Microchip Master"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  SID			  "16"
	  Position		  [560, 141, 595, 179]
	  ZOrder		  307
	  Value			  "3999"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Control DIR"
	  SID			  "177"
	  Ports			  [1, 1]
	  Position		  [565, 228, 625, 282]
	  ZOrder		  367
	  DropShadow		  on
	  ErrorFcn		  "Stateflow.Translate.translate"
	  PermitHierarchicalResolution "ExplicitOnly"
	  TreatAsAtomicUnit	  on
	  RequestExecContextInheritance	off
	  SFBlockType		  "Chart"
	  ContentPreviewEnabled	  on
	  System {
	    Name		    "Control DIR"
	    Location		    [-8, -8, 1544, 832]
	    Open		    off
	    PortBlocksUseCompactNotation off
	    SetExecutionDomain	    off
	    ExecutionDomainType	    "Deduce"
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    SIDHighWatermark	    "110"
	    Block {
	      BlockType		      Inport
	      Name		      "in"
	      SID		      "177::94"
	      Position		      [20, 101, 40, 119]
	      ZOrder		      74
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      " Demux "
	      SID		      "177::109"
	      Ports		      [1, 1]
	      Position		      [270, 230, 320, 270]
	      ZOrder		      78
	      Outputs		      "1"
	    }
	    Block {
	      BlockType		      S-Function
	      Name		      " SFunction "
	      SID		      "177::108"
	      Tag		      "Stateflow S-Function controller_position 2"
	      Ports		      [1, 2]
	      Position		      [180, 100, 230, 160]
	      ZOrder		      77
	      FunctionName	      "sf_sfun"
	      PortCounts	      "[1 2]"
	      SFunctionDeploymentMode off
	      EnableBusSupport	      off
	      SFcnIsStateOwnerBlock   off
	      Port {
		PortNumber		2
		Name			"out"
	      }
	    }
	    Block {
	      BlockType		      Terminator
	      Name		      " Terminator "
	      SID		      "177::110"
	      Position		      [460, 241, 480, 259]
	      ZOrder		      79
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      SID		      "177::96"
	      Position		      [460, 101, 480, 119]
	      ZOrder		      76
	      IconDisplay	      "Port number"
	      VectorParamsAs1DForOutWhenUnconnected off
	    }
	    Line {
	      ZOrder		      5
	      SrcBlock		      "in"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      1
	    }
	    Line {
	      Name		      "out"
	      ZOrder		      6
	      Labels		      [0, 0]
	      SrcBlock		      " SFunction "
	      SrcPort		      2
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      ZOrder		      7
	      SrcBlock		      " Demux "
	      SrcPort		      1
	      DstBlock		      " Terminator "
	      DstPort		      1
	    }
	    Line {
	      ZOrder		      8
	      SrcBlock		      " SFunction "
	      SrcPort		      1
	      DstBlock		      " Demux "
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type Conversion"
	  SID			  "20"
	  Position		  [755, 48, 830, 82]
	  ZOrder		  300
	  OutMin		  "[0]"
	  OutMax		  "[0]"
	  OutDataTypeStr	  "uint16"
	  RndMeth		  "Floor"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type Conversion2"
	  SID			  "22"
	  Position		  [735, 348, 810, 382]
	  ZOrder		  314
	  OutMin		  "[0]"
	  OutMax		  "[0]"
	  OutDataTypeStr	  "boolean"
	  RndMeth		  "Floor"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type Conversion6"
	  SID			  "178"
	  Position		  [700, 238, 775, 272]
	  ZOrder		  368
	  OutDataTypeStr	  "boolean"
	  RndMeth		  "Floor"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Digital Output1"
	  SID			  "24"
	  Ports			  [1]
	  Position		  [1010, 348, 1095, 382]
	  ZOrder		  309
	  LibraryVersion	  "3.43"
	  SourceBlock		  "MCHP_Blockset/Digital IO/Digital Output"
	  SourceType		  ""
	  SourceProductName	  "MPLABŪ Device Blocks for SimulinkŪ"
	  ContentPreviewEnabled	  on
	  PORT			  "Dynamic Options"
	  PORT_TXT		  "A   [ 0  1  2  3  4  7  8  9  10 ]"
	  PIN			  7
	  PACK			  off
	  SIMULTANEOUS		  off
	  READPREVIOUS		  off
	  ORDERING		  None
	  SampleTime		  -1
	  MCHP_MASTERLINK	  "controller22/Microchip Master"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Direction"
	  SID			  "179"
	  Ports			  [1]
	  Position		  [865, 237, 950, 273]
	  ZOrder		  365
	  LibraryVersion	  "3.43"
	  SourceBlock		  "MCHP_Blockset/Digital IO/Digital Output"
	  SourceType		  ""
	  SourceProductName	  "MPLABŪ Device Blocks for SimulinkŪ"
	  ContentPreviewEnabled	  on
	  PORT			  "Dynamic Options"
	  PORT_TXT		  "A   [ 0  1  2  3  4  7  8  9  10 ]"
	  PIN			  [10]
	  PACK			  off
	  SIMULTANEOUS		  off
	  READPREVIOUS		  off
	  ORDERING		  None
	  SampleTime		  -1
	  MCHP_MASTERLINK	  "controller22/Microchip Master"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn"
	  SID			  "131"
	  Position		  [295, 50, 375, 80]
	  ZOrder		  317
	  Expr			  "abs(u)/10"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  SID			  "26"
	  Position		  [515, 50, 575, 80]
	  ZOrder		  304
	  Expr			  "u*3999"
	}
	Block {
	  BlockType		  Constant
	  Name			  "ON"
	  SID			  "19"
	  Position		  [170, 350, 200, 380]
	  ZOrder		  311
	  Value			  "0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "PWM"
	  SID			  "27"
	  Ports			  [1]
	  Position		  [970, 24, 1135, 106]
	  ZOrder		  303
	  LibraryVersion	  "3.43"
	  SourceBlock		  "MCHP_Blockset/PWM IO/PWM"
	  SourceType		  "PWM Motor Output"
	  SourceProductName	  "MPLABŪ Device Blocks for SimulinkŪ"
	  MultiThreadCoSim	  auto
	  PWM_REF		  2
	  ChannelHighLowChk	  on
	  Channel		  1
	  ChannelHigh		  []
	  InitialPeriod		  0.0001
	  InputPeriodeChk	  off
	  CAM			  on
	  IUE			  on
	  Info			  "PWM2max = 1999  ;   % ==>  10.9651 bits"
	  MCHP_MASTERLINK	  "controller22/Microchip Master"
	  MCHP_PORT		  "{PWM1 Fault A}{FLT1}5:0:P0;{PWM_L1}{PWM_L}5:1:C7;"
	  ADC_VARTRIG		  "{PWM Primary Special Event Trigger;6}"
	  SampleTime		  -1
	  DeadTimePrescaleA	  ".005*1e-3"
	  DeadTimePrescaleB	  ".010*1e-3"
	  DTPWM1a		  "Prescaler A"
	  DTPWM1i		  "Prescaler B"
	  DTPWM2a		  "Prescaler A"
	  DTPWM2i		  "Prescaler A"
	  DTPWM3a		  "Prescaler A"
	  DTPWM3i		  "Prescaler A"
	  DTPWM4a		  "Prescaler A"
	  DTPWM4i		  "Prescaler A"
	  PIN_FaultA		  "Dynamic Options"
	  PIN_FaultA_TXT	  "B0 / P0 / Pin[21]"
	  FAULTA_FLATM		  "Re-Enable PWM when Fault Pin is desactivated"
	  FaultA_Output		  off
	  FaultA_PWM1_State	  "No Changes (PWM)"
	  FaultA_PWM2_State	  "H/L ==> 00"
	  FaultA_PWM3_State	  "H/L ==> 00"
	  FaultA_PWM4_State	  "No Changes (PWM)"
	  PIN_FaultB		  "Dynamic Options"
	  PIN_FaultB_TXT	  "B0 / P0 / Pin[21]"
	  FAULTB_FLBTM		  "Re-Enable PWM when Fault Pin is desactivated"
	  FaultB_Output		  off
	  FaultB_PWM1_State	  "No Changes (PWM)"
	  FaultB_PWM2_State	  "No Changes (PWM)"
	  FaultB_PWM3_State	  "No Changes (PWM)"
	  FaultB_PWM4_State	  "No Changes (PWM)"
	  PxSECMP		  ".0005"
	  PxSECMPBlkInChk	  off
	  OVDCONChk		  off
	}
	Block {
	  BlockType		  Saturate
	  Name			  "Saturation"
	  SID			  "161"
	  Ports			  [1, 1]
	  Position		  [410, 50, 440, 80]
	  ZOrder		  318
	  InputPortMap		  "u0"
	  UpperLimit		  "0.99"
	  LowerLimit		  "0.02"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  SID			  "28"
	  Ports			  [2, 1]
	  Position		  [640, 55, 660, 75]
	  ZOrder		  306
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|-+"
	  InputSameDT		  off
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  SID			  "57"
	  Position		  [920, -77, 950, -63]
	  ZOrder		  316
	  IconDisplay		  "Port number"
	  VectorParamsAs1DForOutWhenUnconnected	off
	}
	Line {
	  ZOrder		  1
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [50, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  ZOrder		  2
	  SrcBlock		  "w signal"
	  SrcPort		  1
	  DstBlock		  "Fcn"
	  DstPort		  1
	}
	Line {
	  ZOrder		  5
	  SrcBlock		  "Data Type Conversion2"
	  SrcPort		  1
	  DstBlock		  "Digital Output1"
	  DstPort		  1
	}
	Line {
	  ZOrder		  31
	  SrcBlock		  "Fcn"
	  SrcPort		  1
	  DstBlock		  "Saturation"
	  DstPort		  1
	}
	Line {
	  ZOrder		  8
	  SrcBlock		  "Data Type Conversion"
	  SrcPort		  1
	  DstBlock		  "PWM"
	  DstPort		  1
	}
	Line {
	  ZOrder		  9
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  ZOrder		  10
	  SrcBlock		  "ON"
	  SrcPort		  1
	  DstBlock		  "Data Type Conversion2"
	  DstPort		  1
	}
	Line {
	  ZOrder		  14
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  Points		  [19, 0]
	  Branch {
	    ZOrder		    64
	    Points		    [0, -135]
	    DstBlock		    "Out1"
	    DstPort		    1
	  }
	  Branch {
	    ZOrder		    63
	    DstBlock		    "Data Type Conversion"
	    DstPort		    1
	  }
	}
	Line {
	  ZOrder		  50
	  SrcBlock		  "Saturation"
	  SrcPort		  1
	  DstBlock		  "Fcn1"
	  DstPort		  1
	}
	Line {
	  ZOrder		  67
	  SrcBlock		  "Control DIR"
	  SrcPort		  1
	  DstBlock		  "Data Type Conversion6"
	  DstPort		  1
	}
	Line {
	  ZOrder		  68
	  SrcBlock		  "Data Type Conversion6"
	  SrcPort		  1
	  DstBlock		  "Direction"
	  DstPort		  1
	}
	Line {
	  ZOrder		  69
	  SrcBlock		  "Button 1"
	  SrcPort		  1
	  DstBlock		  "Control DIR"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Port Info"
      SID		      "5"
      Ports		      []
      Position		      [1522, 271, 1691, 396]
      ZOrder		      326
      DropShadow	      on
      LibraryVersion	      "3.43"
      SourceBlock	      "MCHP_Blockset/System Info/Port Info"
      SourceType	      ""
      SourceProductName	      "MPLABŪ Device Blocks for SimulinkŪ"
      MultiThreadCoSim	      auto
      MCHP_MASTERLINK	      "controller22/Microchip Master"
    }
    Block {
      BlockType		      Reference
      Name		      "QEI"
      SID		      "6"
      Ports		      [0, 1]
      Position		      [1535, 502, 1635, 558]
      ZOrder		      327
      LibraryVersion	      "3.43"
      UserDataPersistent      on
      UserData		      "DataTag0"
      SourceBlock	      "MCHP_Blockset/QEI/QEI"
      SourceType	      "Output Driver for Quadrature Encoder Interface (QEI) peripheral "
      SourceProductName	      "MPLABŪ Device Blocks for SimulinkŪ"
      MultiThreadCoSim	      auto
      QEI_REF		      1
      QEI_MODE		      "Quadrature Encoder"
      QEI_x2mode	      off
      QEI_PulseCountDir	      Down
      PIN_QEA		      "Dynamic Options"
      PIN_QEA_TXT	      "B5 / P5 / Pin[41]"
      PIN_QEB		      "Dynamic Options"
      PIN_QEB_TXT	      "B6 / P6 / Pin[42]"
      SWPAB		      off
      QEAPOL		      off
      QEBPOL		      off
      SampleTime	      0.001
      INDXxCNT_Output	      "is not an output"
      POSxCNT_Output	      "is a 16 bits unsigned block output"
      RESET_Input	      off
      PIMOD_mode	      "Never reset position"
      PIMOD_modeB	      "Never reset position"
      PIMOD_reset	      "on next INDEX event"
      PIN_INDEX		      "Dynamic Options"
      PIN_INDEX_TXT	      "B0 / P0 / Pin[21]"
      IMV		      "QEA = 1 and QEB = 0"
      IMV_x2		      "QEA = 1"
      PIN_HOME		      "Dynamic Options"
      PIN_HOME_TXT	      "B0 / P0 / Pin[21]"
      QEIxLEC_GEC	      [0 200]     
      QEIxIC		      52 
      PCIIRQ		      off
      IDXPOL		      off
      HOMPOL		      on
      VELxCNT_Output	      "is a 16 bits unsigned block output"
      INTxHLD_Output	      "is not an output"
      MaxPeriod		      1e-3
      FILTREN		      on
      QFDIV_popup	      "Dynamic Options"
      QFDIV_popup_TXT	      "26.05 kHz"
      FILTER_CutOffFreq	      100e3 
      PIN_CCMP		      "Dynamic Options"
      PIN_CCMP_TXT	      "B0 / P0 / Pin[21]"
      MCHP_PORT		      "{QEI1 A}{QEA1}5:0:P5;{QEI1 B}{QEB1}5:0:P6;"
      MCHP_MASTERLINK	      "controller22/Microchip Master"
      QEI_IntPri	      5
    }
    Block {
      BlockType		      RateTransition
      Name		      "Rate Transition2"
      SID		      "142"
      Position		      [2075, 449, 2115, 491]
      ZOrder		      588
      Port {
	PortNumber		1
	Name			"U1 CH1"
      }
    }
    Block {
      BlockType		      RateTransition
      Name		      "Rate Transition4"
      SID		      "54"
      Position		      [2075, 509, 2115, 551]
      ZOrder		      550
      Port {
	PortNumber		1
	Name			"U1 CH2"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem"
      SID		      "170"
      Ports		      [0, 1]
      Position		      [660, 502, 925, 558]
      ZOrder		      592
      RequestExecContextInheritance off
      ContentPreviewEnabled   on
      Port {
	PortNumber		1
	Name			"U1 CH2"
	PropagatedSignals	"U1 CH1"
      }
      System {
	Name			"Subsystem"
	Location		[-8, -8, 1928, 1168]
	Open			off
	PortBlocksUseCompactNotation off
	SetExecutionDomain	off
	ExecutionDomainType	"Deduce"
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"175"
	Block {
	  BlockType		  Reference
	  Name			  "ADC"
	  SID			  "171"
	  Ports			  [0, 1]
	  Position		  [20, 22, 170, 78]
	  ZOrder		  281
	  Priority		  "5"
	  LibraryVersion	  "3.43"
	  SourceBlock		  "MCHP_Blockset/Analog IO/ADC"
	  SourceType		  ""
	  SourceProductName	  "MPLABŪ Device Blocks for SimulinkŪ"
	  MultiThreadCoSim	  auto
	  ADC_REF		  1
	  Mode			  "12 bits"
	  FORM			  "0000 dddd dddd dddd ==> Unsigned integer"
	  ADC_R			  "< 5    kOhm"
	  nSAMPLECHANNELS	  "CH0 only"
	  nSAMPLECHANNELS_12bits  "CH0 only"
	  SIMULTANEOUS		  "Simultaneously on all Channels"
	  ADxCSS		  5
	  MUXA_CH0N		  off
	  MUXA_CH123		  "Dynamic Options"
	  MUXA_CH123_TXT	  "AN0 : AN1 : AN2"
	  MUXB_CH0		  AN1
	  MUXB_CH0N		  on
	  MUXB_CH123		  "Dynamic Options"
	  MUXB_CH123_TXT	  "AN0 : AN1 : AN2"
	  SequenceRepeat	  1
	  SequenceTiming	  "are done as fast as possible at end of previous time step"
	  SSRC_SSRCG		  "Dynamic Options"
	  SSRC_SSRCG_TXT	  0
	  Update_BlockOutput	  "After all trig and conversion sequence"
	  Trig_TimeStep		  "with each update of the ADC block output"
	  ADC_DMA_CHANNEL	  "use DMA Channel 0"
	  SampleTime		  0.001
	  Info			  "Total Time for Sample & Conversion : 9.7979e-06s including 0s (x 1) sample time."
	  MCHP_PORT		  "{Analog Input 5}{AN5}15:2:B3;"
	  MCHP_MASTERLINK	  "controller22/Microchip Master"
	  ADC_TIMING		  [9.7979004499035927999e-06]
	  Port {
	    PortNumber		    1
	    Name		    "U1 CH1"
	  }
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type Conversion"
	  SID			  "172"
	  Position		  [285, 33, 360, 67]
	  ZOrder		  282
	  OutMin		  "[0]"
	  OutMax		  "[0]"
	  OutDataTypeStr	  "double"
	  RndMeth		  "Floor"
	  SaturateOnIntegerOverflow off
	  Port {
	    PortNumber		    1
	    Name		    "U1 CH1"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  SID			  "173"
	  Position		  [480, 32, 545, 68]
	  ZOrder		  284
	  Gain			  "20/4096"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	  Port {
	    PortNumber		    1
	    Name		    "U1 CH1"
	  }
	}
	Block {
	  BlockType		  UniformRandomNumber
	  Name			  "Uniform Random\nNumber"
	  SID			  "174"
	  Position		  [125, 144, 155, 176]
	  ZOrder		  287
	  Minimum		  "-20"
	  Maximum		  "20"
	  Seed			  "8"
	  SampleTime		  "2"
	}
	Block {
	  BlockType		  Outport
	  Name			  "position wanted(0 : 20 )"
	  SID			  "175"
	  Position		  [730, 43, 760, 57]
	  ZOrder		  286
	  IconDisplay		  "Port number"
	  VectorParamsAs1DForOutWhenUnconnected	off
	}
	Line {
	  Name			  "U1 CH1"
	  ZOrder		  1
	  Labels		  [0, 0]
	  SrcBlock		  "Data Type Conversion"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  Name			  "U1 CH1"
	  ZOrder		  2
	  Labels		  [1, 1]
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "position wanted(0 : 20 )"
	  DstPort		  1
	}
	Line {
	  Name			  "U1 CH1"
	  ZOrder		  3
	  Labels		  [0, 0]
	  SrcBlock		  "ADC"
	  SrcPort		  1
	  DstBlock		  "Data Type Conversion"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      SID		      "30"
      Ports		      [2, 1]
      Position		      [985, 520, 1005, 540]
      ZOrder		      330
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      InputSameDT	      off
      OutDataTypeStr	      "Inherit: Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Reference
      Name		      "UART Configuration"
      SID		      "31"
      Ports		      []
      Position		      [1100, 302, 1200, 358]
      ZOrder		      322
      LibraryVersion	      "3.43"
      SourceBlock	      "MCHP_Blockset/BUS UART/UART Configuration"
      SourceType	      "Configuration for UART peripheral"
      SourceProductName	      "MPLABŪ Device Blocks for SimulinkŪ"
      MultiThreadCoSim	      auto
      UART_REF		      1
      BAUD_Choice	      "Dynamic Options"
      BAUD_Choice_TXT	      "  115200         [+0.96%]"
      BAUD_Choice_IR	      "Dynamic Options"
      BAUD_Choice_IR_TXT      []
      BAUD_Custom	      115200
      ALT_IO		      on
      PIN_RX		      "Dynamic Options"
      PIN_RX_TXT	      "C6 / P22 / Pin[2]"
      PIN_TX		      "Dynamic Options"
      PIN_TX_TXT	      "B9 / P9 / Pin[1]"
      MCHP_PORT		      "{UART1  Rx}{U1RX}3:0:P22;{UART1  Tx}{U1TX}3:1:P9;"
      MCHP_MASTERLINK	      "controller22/Microchip Master"
      MCHP_COM_ExtPil	      off
      TX_IMPLEMENTATION	      "Circular Buffer"
      TX_IMPLEMENTATION_default	"Circular Buffer"
      TX_INT_PRIORITY	      5
      TX_INT_WHEN	      "is empty"
      TX_INT_WHEN_default     "is empty & last char is sent"
      TX_CIRCULAR_SIZE	      128
      TX_DMA_CHANNEL	      "0   (Lowest Priority)"
      TX_DMA_SIZE	      []
      TX_TASK_PROTECTION      "Delay tasks (default)"
      TX_INTERRUPT_PROTECTION "Do not send on conflict (default)"
      TX_INTERRUPT_PROTECTION_default "Do not send on conflict (default)"
      RX_IMPLEMENTATION	      "Circular Buffer"
      RX_IMPLEMENTATION_default	"Circular Buffer"
      RX_INT_PRIORITY	      5
      RX_INT_WHEN	      "receive 1 character"
      RX_CIRCULAR_SIZE	      128
      DuplexMode	      "Full duplex (default)"
      PIN_RX_Inv	      off
      PIN_TX_Inv	      off
      ParityBit		      "No parity (default)"
      StopBit		      "1 stop bit (default)"
      IRDA		      off
      FlowControl	      None
      PIN_CTS		      "Dynamic Options"
      PIN_CTS_TXT	      "B0 / P0 / Pin[21]"
      PIN_RTS		      "Dynamic Options"
      PIN_RTS_TXT	      "B0 / P0 / Pin[21]"
      InitSequence_chkbox     off
      BAUD_Choice_InitSeq     "Dynamic Options"
      BAUD_Choice_InitSeq_TXT "     110         [+0.00%]"
      BAUD_Choice_IR_InitSeq  "Dynamic Options"
      BAUD_Choice_IR_InitSeq_TXT 0
      BAUD_Custom_InitSeq     0
      InitSequence	      "'Hello World'"
    }
    Block {
      BlockType		      Reference
      Name		      "UART Tx-Matlab"
      SID		      "32"
      Ports		      [2]
      Position		      [2225, 475, 2340, 530]
      ZOrder		      323
      LibraryVersion	      "3.43"
      SourceBlock	      "MCHP_Blockset/BUS UART/UART Tx-Matlab"
      SourceType	      "Higl Level UART protocol"
      SourceProductName	      "MPLABŪ Device Blocks for SimulinkŪ"
      MultiThreadCoSim	      auto
      UART_REF		      1
      CHANNELS		      [1 2]
      AllOrNothing	      off
      SampleTime	      -1 
      MCHP_MASTERLINK	      "controller22/Microchip Master"
      MCHP_COMPILED_INFO      "CompiledSampleTime= [0.0010000000000000000208   0 ];CompiledInportDataTypes=[  0   0 ];"
      "CompiledInportDataWidth=[1  1];"
    }
    Block {
      BlockType		      Reference
      Name		      "picgui\nGraphical interface"
      SID		      "33"
      Ports		      []
      Position		      [1241, 302, 1356, 351]
      ZOrder		      324
      DropShadow	      on
      LibraryVersion	      "3.43"
      SourceBlock	      "MCHP_Blockset/BUS UART/picgui\nGraphical interface"
      SourceType	      ""
      SourceProductName	      "MPLABŪ Device Blocks for SimulinkŪ"
      MultiThreadCoSim	      auto
      Nothing		      0
    }
    Line {
      Name		      "U1 CH2"
      ZOrder		      98
      Labels		      [0, 0]
      SrcBlock		      "Subsystem"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      ZOrder		      76
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "PID2"
      DstPort		      1
    }
    Line {
      ZOrder		      31
      SrcBlock		      "QEI"
      SrcPort		      1
      DstBlock		      "Converting Encoder signals\n to real position"
      DstPort		      1
    }
    Line {
      Name		      "U1 CH1"
      ZOrder		      97
      Labels		      [0, 0]
      SrcBlock		      "Converting Encoder signals\n to real position"
      SrcPort		      1
      Points		      [66, 0]
      Branch {
	ZOrder			91
	Points			[0, 163; -991, 0]
	DstBlock		"Sum"
	DstPort			2
      }
      Branch {
	ZOrder			90
	DstBlock		"Rate Transition4"
	DstPort			1
      }
    }
    Line {
      ZOrder		      77
      SrcBlock		      "PID2"
      SrcPort		      1
      DstBlock		      "PWM output"
      DstPort		      1
    }
    Line {
      Name		      "U1 CH2"
      ZOrder		      84
      Labels		      [0, 0]
      SrcBlock		      "Rate Transition4"
      SrcPort		      1
      Points		      [50, 0; 0, -15]
      DstBlock		      "UART Tx-Matlab"
      DstPort		      2
    }
    Line {
      Name		      "U1 CH1"
      ZOrder		      89
      Labels		      [0, 0]
      SrcBlock		      "PWM output"
      SrcPort		      1
      Points		      [25, 0; 0, -60]
      DstBlock		      "Rate Transition2"
      DstPort		      1
    }
    Line {
      Name		      "U1 CH1"
      ZOrder		      93
      Labels		      [0, 0]
      SrcBlock		      "Rate Transition2"
      SrcPort		      1
      Points		      [50, 0; 0, 20]
      DstBlock		      "UART Tx-Matlab"
      DstPort		      1
    }
  }
}
MatData {
  NumRecords		  1
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    6 $   8    (     @         %    \"     $    !     0         %  0 !0    $    %    36%S:P"
    "     .    $ $   8    (     @         %    \"     $    !     0         %  0 !P    $    '    5F%L=65S   .    R     8"
    "    (     @         %    \"     $    !     0         %  0 \"0    $    2    4U])3E!55   4U]/5510550         #@   # "
    "    &    \"     8         !0    @               $         \"0         .    .     8    (    !@         %    \"     "
    "$    !     0         )    \"            !1 "
  }
}
#Finite State Machines
#
#   Stateflow 80000019
#
#
Stateflow {
  machine {
    id			    1
    name		    "controller_position"
    created		    "09-Jun-2020 10:32:32"
    isLibrary		    0
    sfVersion		    80000014
    firstTarget		    15
  }
  chart {
    id			    2
    machine		    1
    name		    "PWM output/Control DIR"
    windowPosition	    [-8 -8 1936 1176]
    viewLimits		    [-31.388 1167.012 118.459 596.859]
    zoomFactor		    1.067
    screen		    [1 1 3200 1200 1.25]
    treeNode		    [0 3 0 0]
    viewObj		    2
    ssIdHighWaterMark	    26
    decomposition	    CLUSTER_CHART
    chartFileNumber	    2
    allowGlobalAccessToExportedFunctions 0
    saturateOnIntegerOverflow 1
    userSpecifiedStateTransitionExecutionOrder 1
    disableImplicitCasting  1
    actionLanguage	    2
    firstData		    7
    firstTransition	    9
  }
  state {
    id			    3
    labelString		    "Between"
    position		    [493.2857 268.1 90 60]
    fontSize		    12
    chart		    2
    treeNode		    [2 0 0 4]
    subviewer		    2
    ssIdNumber		    21
    type		    OR_STATE
    decomposition	    CLUSTER_STATE
  }
  state {
    id			    4
    labelString		    "DIR_right\nen: out =0;"
    position		    [245.6429 390 90 60]
    fontSize		    12
    chart		    2
    treeNode		    [2 0 3 5]
    subviewer		    2
    ssIdNumber		    1
    type		    OR_STATE
    decomposition	    CLUSTER_STATE
  }
  state {
    id			    5
    labelString		    "DIR_left\nout =1;"
    position		    [707.7857 390 90 60]
    fontSize		    12
    chart		    2
    treeNode		    [2 0 4 6]
    subviewer		    2
    ssIdNumber		    3
    type		    OR_STATE
    decomposition	    CLUSTER_STATE
  }
  state {
    id			    6
    labelString		    "Between1"
    position		    [493.2857 490.6 90 60]
    fontSize		    12
    chart		    2
    treeNode		    [2 0 5 0]
    subviewer		    2
    ssIdNumber		    22
    type		    OR_STATE
    decomposition	    CLUSTER_STATE
  }
  data {
    id			    7
    ssIdNumber		    11
    name		    "in"
    scope		    INPUT_DATA
    machine		    1
    props {
      array {
	size			"-1"
      }
      type {
	method			SF_INHERITED_TYPE
	primitive		SF_DOUBLE_TYPE
	isSigned		1
	wordLength		"16"
      }
      complexity	      SF_COMPLEX_INHERITED
      frame		      SF_FRAME_INHERITED
      unit {
	name			"inherit"
      }
    }
    dataType		    "Inherit: Same as Simulink"
    linkNode		    [2 0 8]
  }
  data {
    id			    8
    ssIdNumber		    12
    name		    "out"
    scope		    OUTPUT_DATA
    machine		    1
    props {
      array {
	size			"-1"
      }
      type {
	method			SF_INHERITED_TYPE
	primitive		SF_DOUBLE_TYPE
	isSigned		1
	wordLength		"16"
      }
      complexity	      SF_COMPLEX_INHERITED
      frame		      SF_FRAME_NO
      unit {
	name			"inherit"
      }
    }
    dataType		    "Inherit: Same as Simulink"
    linkNode		    [2 7 0]
  }
  transition {
    id			    9
    labelString		    "[in ==1]"
    labelPosition	    [362.374 279.845 41.984 16]
    fontSize		    12
    src {
      id		      4
      intersection	      [1 0 -1 0.5111 291.6429 390 0 0]
    }
    dst {
      id		      3
      intersection	      [4 -1 0 0.475 493.2857 299.6 0 0]
    }
    midPoint		    [361.7512 318.0869]
    chart		    2
    dataLimits		    [291.643 493.286 297.2 390]
    subviewer		    2
    drawStyle		    SMART
    slide {
      mode		      MIRROR_SLIDE
      sticky		      BOTH_STICK
    }
    executionOrder	    1
    ssIdNumber		    5
    linkNode		    [2 0 10]
  }
  transition {
    id			    10
    labelString		    "[in ==0]"
    labelPosition	    [707.768 296.016 41.984 16]
    fontSize		    12
    src {
      id		      3
      intersection	      [2 1 0 0.4917 583.2857 297.6 0 0]
    }
    dst {
      id		      5
      intersection	      [1 0 -1 0.5 752.7857 390 0 0]
    }
    midPoint		    [691.7045 316.1312]
    chart		    2
    dataLimits		    [583.286 755.186 297.6 390]
    subviewer		    2
    drawStyle		    SMART
    slide {
      mode		      MIRROR_SLIDE
      sticky		      BOTH_STICK
    }
    executionOrder	    1
    ssIdNumber		    7
    linkNode		    [2 9 11]
  }
  transition {
    id			    11
    labelString		    ""
    labelPosition	    [266.193 375 0 0]
    fontSize		    12
    src {
      intersection	      [0 0 1 0 266.1929 360 0 0]
    }
    dst {
      id		      4
      intersection	      [1 0 -1 0.2283 266.1929 390 0 0]
    }
    midPoint		    [266.1929 375]
    chart		    2
    dataLimits		    [263.793 268.593 360 390]
    subviewer		    2
    drawStyle		    SMART
    slide {
      sticky		      BOTH_STICK
    }
    executionOrder	    1
    ssIdNumber		    2
    linkNode		    [2 10 12]
  }
  transition {
    id			    12
    labelString		    "[in==0]"
    labelPosition	    [347.988 538.374 38.656 16]
    fontSize		    12
    src {
      id		      6
      intersection	      [4 -1 0 0.4167 493.2857 525.6 0 0]
    }
    dst {
      id		      4
      intersection	      [3 0 1 0.5206 288.7857 450 0 0]
    }
    midPoint		    [364.1128 518.7229]
    chart		    2
    dataLimits		    [286.386 493.286 450 527.245]
    subviewer		    2
    drawStyle		    SMART
    slide {
      mode		      MIRROR_SLIDE
      sticky		      BOTH_STICK
    }
    executionOrder	    1
    ssIdNumber		    10
    linkNode		    [2 11 13]
  }
  transition {
    id			    13
    labelString		    "[in==1]"
    labelPosition	    [701.028 522.465 38.656 16]
    fontSize		    12
    src {
      id		      5
      intersection	      [3 0 1 0.4603 756.3571 450 0 0]
    }
    dst {
      id		      6
      intersection	      [2 1 0 0.4917 583.2857 520.1 0 0]
    }
    midPoint		    [696.2388 507.4674]
    chart		    2
    dataLimits		    [583.286 756.357 450 522.5]
    subviewer		    2
    drawStyle		    SMART
    slide {
      mode		      MIRROR_SLIDE
      sticky		      BOTH_STICK
    }
    executionOrder	    1
    ssIdNumber		    9
    linkNode		    [2 12 0]
  }
  instance {
    id			    14
    machine		    1
    name		    "PWM output/Control DIR"
    chart		    2
  }
  target {
    id			    15
    machine		    1
    name		    "sfun"
    description		    "Default Simulink S-Function Target."
    linkNode		    [1 0 16]
  }
  target {
    id			    16
    machine		    1
    name		    "rtw"
    linkNode		    [1 15 0]
  }
}
