Model {
  Name			  "test_v2"
  Version		  7.0
  MdlSubVersion		  0
  GraphicalInterface {
    NumRootInports	    0
    NumRootOutports	    0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.91"
    NumModelReferences	    0
    NumTestPointedSignals   0
  }
  SavedCharacterEncoding  "windows-1252"
  SaveDefaultBlockParams  on
  SampleTimeColors	  off
  LibraryLinkDisplay	  "none"
  WideLines		  off
  ShowLineDimensions	  off
  ShowPortDataTypes	  off
  ShowLoopsOnError	  on
  IgnoreBidirectionalLines off
  ShowStorageClass	  off
  ShowTestPointIcons	  on
  ShowViewerIcons	  on
  SortedOrder		  off
  ExecutionContextIcon	  off
  ShowLinearizationAnnotations on
  ScopeRefreshTime	  0.035000
  OverrideScopeRefreshTime on
  DisableAllScopes	  off
  DataTypeOverride	  "UseLocalSettings"
  MinMaxOverflowLogging	  "UseLocalSettings"
  MinMaxOverflowArchiveMode "Overwrite"
  BlockNameDataTip	  off
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  Created		  "Wed May 13 19:09:20 2009"
  Creator		  "sathish"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "sathish"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Sun Jul 26 15:40:29 2009"
  RTWModifiedTimeStamp	  0
  ModelVersionFormat	  "1.%<AutoIncrement:91>"
  ConfigurationManager	  "None"
  SimulationMode	  "normal"
  LinearizationMsg	  "none"
  Profile		  off
  ParamWorkspaceSource	  "MATLABWorkspace"
  AccelSystemTargetFile	  "accel.tlc"
  AccelTemplateMakefile	  "accel_default_tmf"
  AccelMakeCommand	  "make_rtw"
  TryForcingSFcnDF	  off
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovMetricSettings	  "dw"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  covSaveCumulativeToWorkspaceVar on
  CovSaveSingleToWorkspaceVar on
  CovCumulativeVarName	  "covCumulativeData"
  CovCumulativeReport	  off
  CovReportOnPause	  on
  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
  TunableVars		  "ONE,ZERO"
  TunableVarsStorageClass "ExportedGlobal,ExportedGlobal"
  TunableVarsTypeQualifier "const,const"
  BufferReuse		  on
  ShowModelReferenceBlockVersion off
  ShowModelReferenceBlockIO off
  Array {
    Type		    "Handle"
    Dimension		    1
    Simulink.ConfigSet {
      $ObjectID		      1
      Version		      "1.3.0"
      Array {
	Type			"Handle"
	Dimension		7
	Simulink.SolverCC {
	  $ObjectID		  2
	  Version		  "1.3.0"
	  StartTime		  "0.0"
	  StopTime		  "inf"
	  AbsTol		  "auto"
	  FixedStep		  "0.01"
	  InitialStep		  "auto"
	  MaxNumMinSteps	  "-1"
	  MaxOrder		  5
	  ConsecutiveZCsStepRelTol "10*128*eps"
	  MaxConsecutiveZCs	  "1000"
	  ExtrapolationOrder	  4
	  NumberNewtonIterations  1
	  MaxStep		  "auto"
	  MinStep		  "auto"
	  MaxConsecutiveMinStep	  "1"
	  RelTol		  "1e-3"
	  SolverMode		  "Auto"
	  Solver		  "FixedStepDiscrete"
	  SolverName		  "FixedStepDiscrete"
	  ZeroCrossControl	  "UseLocalSettings"
	  AlgebraicLoopSolver	  "TrustRegion"
	  SolverResetMethod	  "Fast"
	  PositivePriorityOrder	  off
	  AutoInsertRateTranBlk	  off
	  SampleTimeConstraint	  "Unconstrained"
	  RateTranMode		  "Deterministic"
	}
	Simulink.DataIOCC {
	  $ObjectID		  3
	  Version		  "1.3.0"
	  Decimation		  "1"
	  ExternalInput		  "[t, u]"
	  FinalStateName	  "xFinal"
	  InitialState		  "xInitial"
	  LimitDataPoints	  off
	  MaxDataPoints		  "1000"
	  LoadExternalInput	  off
	  LoadInitialState	  off
	  SaveFinalState	  off
	  SaveFormat		  "Array"
	  SaveOutput		  off
	  SaveState		  off
	  SignalLogging		  off
	  InspectSignalLogs	  off
	  SaveTime		  off
	  StateSaveName		  "xout"
	  TimeSaveName		  "tout"
	  OutputSaveName	  "yout"
	  SignalLoggingName	  "logsout"
	  OutputOption		  "RefineOutputTimes"
	  OutputTimes		  "[]"
	  Refine		  "1"
	}
	Simulink.OptimizationCC {
	  $ObjectID		  4
	  Version		  "1.3.0"
	  BlockReduction	  on
	  BooleanDataType	  on
	  ConditionallyExecuteInputs on
	  InlineParams		  on
	  InlineInvariantSignals  off
	  OptimizeBlockIOStorage  on
	  BufferReuse		  on
	  EnforceIntegerDowncast  on
	  ExpressionFolding	  on
	  ExpressionDepthLimit	  2147483647
	  FoldNonRolledExpr	  on
	  LocalBlockOutputs	  on
	  RollThreshold		  5
	  SystemCodeInlineAuto	  off
	  StateBitsets		  off
	  DataBitsets		  off
	  UseTempVars		  off
	  ZeroExternalMemoryAtStartup on
	  ZeroInternalMemoryAtStartup on
	  InitFltsAndDblsToZero	  on
	  NoFixptDivByZeroProtection off
	  EfficientFloat2IntCast  off
	  OptimizeModelRefInitCode on
	  LifeSpan		  "1"
	  BufferReusableBoundary  on
	  SimCompilerOptimization "Off"
	  AccelVerboseBuild	  off
	}
	Simulink.DebuggingCC {
	  $ObjectID		  5
	  Version		  "1.3.0"
	  RTPrefix		  "error"
	  ConsistencyChecking	  "none"
	  ArrayBoundsChecking	  "none"
	  SignalInfNanChecking	  "none"
	  SignalRangeChecking	  "none"
	  ReadBeforeWriteMsg	  "UseLocalSettings"
	  WriteAfterWriteMsg	  "UseLocalSettings"
	  WriteAfterReadMsg	  "UseLocalSettings"
	  AlgebraicLoopMsg	  "warning"
	  ArtificialAlgebraicLoopMsg "warning"
	  SaveWithDisabledLinksMsg "warning"
	  SaveWithParameterizedLinksMsg	"none"
	  CheckSSInitialOutputMsg on
	  CheckExecutionContextPreStartOutputMsg off
	  CheckExecutionContextRuntimeOutputMsg	off
	  SignalResolutionControl "UseLocalSettings"
	  BlockPriorityViolationMsg "warning"
	  MinStepSizeMsg	  "warning"
	  TimeAdjustmentMsg	  "none"
	  MaxConsecutiveZCsMsg	  "error"
	  SolverPrmCheckMsg	  "warning"
	  InheritedTsInSrcMsg	  "warning"
	  DiscreteInheritContinuousMsg "warning"
	  MultiTaskDSMMsg	  "error"
	  MultiTaskCondExecSysMsg "error"
	  MultiTaskRateTransMsg	  "error"
	  SingleTaskRateTransMsg  "none"
	  TasksWithSamePriorityMsg "warning"
	  SigSpecEnsureSampleTimeMsg "warning"
	  CheckMatrixSingularityMsg "none"
	  IntegerOverflowMsg	  "warning"
	  Int32ToFloatConvMsg	  "warning"
	  ParameterDowncastMsg	  "error"
	  ParameterOverflowMsg	  "error"
	  ParameterUnderflowMsg	  "none"
	  ParameterPrecisionLossMsg "warning"
	  ParameterTunabilityLossMsg "warning"
	  UnderSpecifiedDataTypeMsg "none"
	  UnnecessaryDatatypeConvMsg "none"
	  VectorMatrixConversionMsg "none"
	  InvalidFcnCallConnMsg	  "error"
	  FcnCallInpInsideContextMsg "Use local settings"
	  SignalLabelMismatchMsg  "none"
	  UnconnectedInputMsg	  "warning"
	  UnconnectedOutputMsg	  "warning"
	  UnconnectedLineMsg	  "warning"
	  SFcnCompatibilityMsg	  "none"
	  UniqueDataStoreMsg	  "none"
	  BusObjectLabelMismatch  "warning"
	  RootOutportRequireBusObject "warning"
	  AssertControl		  "UseLocalSettings"
	  EnableOverflowDetection off
	  ModelReferenceIOMsg	  "none"
	  ModelReferenceVersionMismatchMessage "none"
	  ModelReferenceIOMismatchMessage "none"
	  ModelReferenceCSMismatchMessage "none"
	  ModelReferenceSimTargetVerbose off
	  UnknownTsInhSupMsg	  "warning"
	  ModelReferenceDataLoggingMessage "warning"
	  ModelReferenceSymbolNameMessage "warning"
	  ModelReferenceExtraNoncontSigs "error"
	  StateNameClashWarn	  "warning"
	  StrictBusMsg		  "Warning"
	  LoggingUnavailableSignals "error"
	}
	Simulink.HardwareCC {
	  $ObjectID		  6
	  Array {
	    Type		    "Cell"
	    Dimension		    2
	    Cell		    "ProdHWDeviceType"
	    Cell		    "ProdEqTarget"
	    PropName		    "DisabledProps"
	  }
	  Version		  "1.3.0"
	  ProdBitPerChar	  8
	  ProdBitPerShort	  16
	  ProdBitPerInt		  16
	  ProdBitPerLong	  32
	  ProdIntDivRoundTo	  "Undefined"
	  ProdEndianess		  "LittleEndian"
	  ProdWordSize		  16
	  ProdShiftRightIntArith  on
	  ProdHWDeviceType	  "16-bit Generic"
	  TargetBitPerChar	  8
	  TargetBitPerShort	  16
	  TargetBitPerInt	  32
	  TargetBitPerLong	  32
	  TargetShiftRightIntArith on
	  TargetIntDivRoundTo	  "Undefined"
	  TargetEndianess	  "Unspecified"
	  TargetWordSize	  32
	  TargetTypeEmulationWarnSuppressLevel 0
	  TargetPreprocMaxBitsSint 32
	  TargetPreprocMaxBitsUint 32
	  TargetHWDeviceType	  "32-bit Generic"
	  TargetUnknown		  off
	  ProdEqTarget		  on
	}
	Simulink.ModelReferenceCC {
	  $ObjectID		  7
	  Version		  "1.3.0"
	  UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
	  CheckModelReferenceTargetMessage "error"
	  ModelReferenceNumInstancesAllowed "Multi"
	  ModelReferencePassRootInputsByReference on
	  ModelReferenceMinAlgLoopOccurrences off
	}
	Simulink.RTWCC {
	  $BackupClass		  "Simulink.RTWCC"
	  $ObjectID		  8
	  Array {
	    Type		    "Cell"
	    Dimension		    1
	    Cell		    "TargetLang"
	    PropName		    "DisabledProps"
	  }
	  Version		  "1.3.0"
	  SystemTargetFile	  "dspic.tlc"
	  GenCodeOnly		  on
	  MakeCommand		  "make_rtw"
	  GenerateMakefile	  on
	  TemplateMakefile	  "dspic_pic30_gcc.tmf"
	  PostCodeGenCommand	  "dsPIC_Compile()"
	  Description		  "Embedded Target for Microchip dsPIC (real-time)"
	  GenerateReport	  off
	  SaveLog		  off
	  RTWVerbose		  on
	  RetainRTWFile		  off
	  ProfileTLC		  off
	  TLCDebug		  off
	  TLCCoverage		  off
	  TLCAssert		  off
	  ProcessScriptMode	  "Default"
	  ConfigurationMode	  "Optimized"
	  ProcessScript		  "dspic_make_rtw_hook"
	  ConfigAtBuild		  off
	  CustomSourceCode	  "#include \"C:\\Program Files\\Microchip\\MPLAB C30\\src\\peripheral_30F_24H_33F\\src\\pmc\\timer\\ConfigIntTimer1.c\""
	  CustomInclude		  "C:\\Users\\sathish\\Desktop\\temp\\ou(2)\\lib"
	  IncludeHyperlinkInReport off
	  LaunchReport		  off
	  TargetLang		  "C"
	  IncludeBusHierarchyInRTWFileBlockHierarchyMap	off
	  IncludeERTFirstTime	  off
	  GenerateTraceInfo	  off
	  RTWCompilerOptimization "Off"
	  Array {
	    Type		    "Handle"
	    Dimension		    2
	    Simulink.CodeAppCC {
	      $ObjectID		      9
	      Version		      "1.3.0"
	      ForceParamTrailComments off
	      GenerateComments	      on
	      IgnoreCustomStorageClasses off
	      IncHierarchyInIds	      off
	      MaxIdLength	      31
	      PreserveName	      off
	      PreserveNameWithParent  off
	      ShowEliminatedStatement off
	      IncAutoGenComments      off
	      SimulinkDataObjDesc     off
	      SFDataObjDesc	      off
	      IncDataTypeInIds	      off
	      MangleLength	      1
	      CustomSymbolStrGlobalVar "$R$N$M"
	      CustomSymbolStrType     "$N$R$M"
	      CustomSymbolStrField    "$N$M"
	      CustomSymbolStrFcn      "$R$N$M$F"
	      CustomSymbolStrBlkIO    "rtb_$N$M"
	      CustomSymbolStrTmpVar   "$N$M"
	      CustomSymbolStrMacro    "$R$N$M"
	      DefineNamingRule	      "None"
	      ParamNamingRule	      "None"
	      SignalNamingRule	      "None"
	      InsertBlockDesc	      off
	      SimulinkBlockComments   on
	      EnableCustomComments    off
	      InlinedPrmAccess	      "Literals"
	      ReqsInCode	      off
	    }
	    Simulink.STFCustomTargetCC {
	      $BackupClass	      "Simulink.TargetCC"
	      $ObjectID		      10
	      Array {
		Type			"Cell"
		Dimension		5
		Cell			"GenerateSampleERTMain"
		Cell			"MatFileLogging"
		Cell			"SupportNonInlinedSFcns"
		Cell			"UtilityFuncGeneration"
		Cell			"IncludeMdlTerminateFcn"
		PropName		"DisabledProps"
	      }
	      Version		      "1.3.0"
	      TargetFcnLib	      "ansi_tfl_table_tmw.mat"
	      TargetLibSuffix	      ""
	      TargetPreCompLibLocation ""
	      GenFloatMathFcnCalls    "ANSI_C"
	      UtilityFuncGeneration   "Auto"
	      GenerateFullHeader      on
	      GenerateSampleERTMain   off
	      GenerateTestInterfaces  off
	      IsPILTarget	      off
	      ModelReferenceCompliant off
	      CompOptLevelCompliant   off
	      IncludeMdlTerminateFcn  off
	      CombineOutputUpdateFcns on
	      SuppressErrorStatus     on
	      IncludeFileDelimiter    "Auto"
	      ERTCustomFileBanners    on
	      SupportAbsoluteTime     on
	      LogVarNameModifier      "rt_"
	      MatFileLogging	      off
	      MultiInstanceERTCode    off
	      SupportNonFinite	      on
	      SupportComplex	      on
	      PurelyIntegerCode	      off
	      SupportContinuousTime   off
	      SupportNonInlinedSFcns  off
	      EnableShiftOperators    on
	      ParenthesesLevel	      "Nominal"
	      PortableWordSizes	      off
	      ModelStepFunctionPrototypeControlCompliant off
	      SystemTargetFile	      "dspic.tlc"
	      DialogCategory	      0
	      Array {
		Type			"Handle"
		Dimension		1
		Simulink.ERTTargetCC {
		  $BackupClass		  "Simulink.TargetCC"
		  $ObjectID		  11
		  Array {
		    Type		    "Cell"
		    Dimension		    8
		    Cell		    "GenerateSampleERTMain"
		    Cell		    "GenerateErtSFunction"
		    Cell		    "MatFileLogging"
		    Cell		    "GRTInterface"
		    Cell		    "ERTCustomFileTemplate"
		    Cell		    "SupportNonInlinedSFcns"
		    Cell		    "UtilityFuncGeneration"
		    Cell		    "IncludeMdlTerminateFcn"
		    PropName		    "DisabledProps"
		  }
		  Version		  "1.3.0"
		  TargetFcnLib		  "ansi_tfl_table_tmw.mat"
		  TargetLibSuffix	  ""
		  TargetPreCompLibLocation ""
		  GenFloatMathFcnCalls	  "ANSI_C"
		  UtilityFuncGeneration	  "Auto"
		  GenerateFullHeader	  on
		  GenerateSampleERTMain	  off
		  GenerateTestInterfaces  off
		  IsPILTarget		  off
		  ModelReferenceCompliant off
		  CompOptLevelCompliant	  off
		  IncludeMdlTerminateFcn  off
		  CombineOutputUpdateFcns on
		  SuppressErrorStatus	  on
		  IncludeFileDelimiter	  "Auto"
		  ERTCustomFileBanners	  on
		  SupportAbsoluteTime	  on
		  LogVarNameModifier	  "rt_"
		  MatFileLogging	  off
		  MultiInstanceERTCode	  off
		  SupportNonFinite	  on
		  SupportComplex	  on
		  PurelyIntegerCode	  off
		  SupportContinuousTime	  off
		  SupportNonInlinedSFcns  off
		  EnableShiftOperators	  on
		  ParenthesesLevel	  "Nominal"
		  PortableWordSizes	  off
		  ModelStepFunctionPrototypeControlCompliant off
		  GenerateErtSFunction	  off
		  GenerateASAP2		  off
		  ExtMode		  off
		  ExtModeTransport	  0
		  ExtModeStaticAlloc	  off
		  ExtModeStaticAllocSize  1000000
		  ExtModeTesting	  off
		  ExtModeMexFile	  "noextcomm"
		  ExtModeIntrfLevel	  "Level1"
		  InlinedParameterPlacement "NonHierarchical"
		  TargetOS		  "BareBoardExample"
		  MultiInstanceErrorCode  "Error"
		  RateGroupingCode	  on
		  RootIOFormat		  "Individual arguments"
		  RTWCAPISignals	  off
		  RTWCAPIParams		  off
		  RTWCAPIStates		  off
		  ERTSrcFileBannerTemplate "dsPIC_code_template.cgt"
		  ERTHdrFileBannerTemplate "dsPIC_code_template.cgt"
		  ERTDataSrcFileTemplate  "dsPIC_code_template.cgt"
		  ERTDataHdrFileTemplate  "dsPIC_code_template.cgt"
		  ERTCustomFileTemplate	  "dsPIC_main.tlc"
		  ModuleNamingRule	  "Unspecified"
		  SignalDisplayLevel	  10
		  ParamTuneLevel	  10
		  GlobalDataDefinition	  "Auto"
		  DataDefinitionFile	  "global.c"
		  GlobalDataReference	  "Auto"
		  DataReferenceFile	  "global.h"
		  GRTInterface		  off
		  PreserveExpressionOrder off
		  PreserveIfCondition	  off
		  EnableUserReplacementTypes off
		  Array {
		    Type		    "Struct"
		    Dimension		    1
		    MATStruct {
		    double		    ""
		    single		    ""
		    int32		    ""
		    int16		    ""
		    int8		    ""
		    uint32		    ""
		    uint16		    ""
		    uint8		    ""
		    boolean		    ""
		    int			    ""
		    uint		    ""
		    char		    ""
		    }
		    PropName		    "ReplacementTypes"
		  }
		  MemSecPackage		  "--- None ---"
		  MemSecDataConstants	  "Default"
		  MemSecDataIO		  "Default"
		  MemSecDataInternal	  "Default"
		  MemSecDataParameters	  "Default"
		  MemSecFuncInitTerm	  "Default"
		  MemSecFuncExecute	  "Default"
		}
		PropName		"Components"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"GMAKE_PLACE"
		Value			"C:\\MAD7D5~1\\bin\\win32\\gmake"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"OPTIM_GCC"
		Value			"-mcpu=30f4011 -O3 -fschedule-insns -fschedule-insns2"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"LDFLAGS"
		Value			"-t --report-mem -Map ../untitled.map --heap 0  -cref"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"LDPICTYPE"
		Value			"-T C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\support\\dsPIC30F\\gld\\p30f4011.gld"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"LDLIBPIC"
		Value			"C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\lib\\libpic30-coff.a  C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\lib\\dsPIC30F\\libp30f4011-coff.a C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\lib\\libc-coff.a C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\lib\\libm-coff.a"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"PIC_INCLUDES"
		Value			"-I C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\include"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"PIC_REF"
		Value			"30f4011"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"GCCPATH"
		Value			"''"
	      }
	    }
	    PropName		    "Components"
	  }
	}
	PropName		"Components"
      }
      Name		      "Configuration"
      ExtraOptions	      "-aGenerateTraceInfo=0 "
      CurrentDlgPage	      "Real-Time Workshop/Custom Code"
    }
    PropName		    "ConfigurationSets"
  }
  Simulink.ConfigSet {
    $PropName		    "ActiveConfigurationSet"
    $ObjectID		    1
  }
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Arial"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  BlockParameterDefaults {
    Block {
      BlockType		      ActionPort
      InitializeStates	      "held"
      ActionType	      "unset"
    }
    Block {
      BlockType		      SwitchCase
      CaseConditions	      "{1}"
      CaseShowDefault	      on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      DataStoreMemory
      ReadBeforeWriteMsg      "none"
      WriteAfterWriteMsg      "none"
      WriteAfterReadMsg	      "none"
      InitialValue	      "0"
      StateMustResolveToSignalObject off
      ShowAdditionalParam     off
      OutMin		      "[]"
      OutMax		      "[]"
      DataType		      "auto"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      SignalType	      "auto"
    }
    Block {
      BlockType		      DataStoreRead
    }
    Block {
      BlockType		      DataStoreWrite
    }
    Block {
      BlockType		      Demux
      Outputs		      "4"
      DisplayOption	      "none"
      BusSelectionMode	      off
    }
    Block {
      BlockType		      Display
      Format		      "short"
      Decimation	      "10"
      Floating		      off
      SampleTime	      "-1"
    }
    Block {
      BlockType		      ForIterator
      ResetStates	      "held"
      IterationSource	      "internal"
      IterationLimit	      "5"
      ExternalIncrement	      off
      ShowIterationPort	      on
      IndexMode		      "One-based"
      IterationVariableDataType	"int32"
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      ParamMin		      "[]"
      ParamMax		      "[]"
      ParameterDataTypeMode   "Same as input"
      ParameterDataType	      "fixdt(1,16,0)"
      ParameterScalingMode    "Best Precision: Matrix-wise"
      ParameterScaling	      "[]"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Ground
    }
    Block {
      BlockType		      Mux
      Inputs		      "4"
      DisplayOption	      "none"
      UseBusObject	      off
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      OutMin		      "[]"
      OutMax		      "[]"
      DataType		      "auto"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Product
      Inputs		      "2"
      Multiplication	      "Element-wise(.*)"
      CollapseMode	      "All dimensions"
      CollapseDim	      "1"
      InputSameDT	      on
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      LockScale		      off
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      "FromPortIcon"
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      TreatAsAtomicUnit	      off
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      CollapseMode	      "All dimensions"
      CollapseDim	      "1"
      InputSameDT	      on
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Terminator
    }
    Block {
      BlockType		      Merge
      Inputs		      "2"
      InitialOutput	      "[]"
      AllowUnequalInputPortWidths off
      InputPortOffsets	      "[]"
    }
    Block {
      BlockType		      Constant
      Value		      "1"
      VectorParams1D	      on
      SamplingMode	      "Sample based"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Inherit from 'Constant value'"
      OutDataType	      "fixdt(1,16,0)"
      ConRadixGroup	      "Use specified scaling"
      OutScaling	      "[]"
      SampleTime	      "inf"
      FramePeriod	      "inf"
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Arial"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    UseDisplayTextAsClickCallback off
  }
  LineDefaults {
    FontName		    "Arial"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "test_v2"
    Location		    [355, 147, 1126, 640]
    Open		    on
    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"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "CAN Configuration"
      Tag		      "dsPIC_CAN_Config"
      Ports		      []
      Position		      [542, 40, 642, 90]
      BackgroundColor	      "lightBlue"
      DropShadow	      on
      List {
	ListType		RTWdata
	NumCAN			"1"
	TcanTcy			"0"
	BRP			"0"
	PRSEG			"1"
	SEG1PH			"4"
	SEG2PH			"1"
	SJW			"1"
	SAM			"0"
	Mode			"0"
      }
      SourceBlock	      "dsPICdrivers/BUS CAN/CAN Configuration"
      SourceType	      "CAN Configuration"
      NumCAN		      "1"
      Mode		      "Normal"
      TcanTcy		      "Tcan  = Tcy/4"
      BRP		      "0"
      PRSEG		      "1"
      SEG1PH		      "4"
      SAM_popup		      "Once at sample point"
      SEG2PH		      "1"
      SJW		      "1"
      SampleTime	      "-1"
      OrderingInOutPopup      "None"
      Info		      "Tq = 5e-007s   X 8  -->  Fcan = 250 KHz"
    }
    Block {
      BlockType		      SubSystem
      Name		      "CAN Recieve"
      Ports		      []
      Position		      [430, 229, 545, 291]
      TreatAsAtomicUnit	      on
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      System {
	Name			"CAN Recieve"
	Location		[251, 102, 1301, 583]
	Open			off
	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		  Reference
	  Name			  "CAN Receive"
	  Tag			  "dsPIC_CAN_Receive"
	  Ports			  [0, 3]
	  Position		  [40, 174, 200, 246]
	  List {
	    ListType		    RTWdata
	    NumCAN		    "1"
	    ErrCount		    "0"
	    DBEN		    "0"
	    DataLost		    "0"
	    RXM0		    "777"
	    RXM1		    "0"
	    RXF0		    "0"
	    F0type		    "0"
	    DL0			    "8"
	    DL0received		    "0"
	    FlagNewMessage0	    "1"
	    OutId0		    "1"
	    DataRequestSend0	    "0"
	    RXF1		    "0"
	    F1type		    "0"
	    DL1			    "0"
	    DL1received		    "0"
	    FlagNewMessage1	    "0"
	    OutId1		    "0"
	    DataRequestSend1	    "0"
	    RXF2		    "0"
	    F2type		    "0"
	    DL2			    "0"
	    DL2received		    "0"
	    FlagNewMessage2	    "0"
	    OutId2		    "0"
	    DataRequestSend2	    "0"
	    RXF3		    "0"
	    F3type		    "0"
	    DL3			    "0"
	    DL3received		    "0"
	    FlagNewMessage3	    "0"
	    OutId3		    "0"
	    DataRequestSend3	    "0"
	    RXF4		    "0"
	    F4type		    "0"
	    DL4			    "0"
	    DL4received		    "0"
	    FlagNewMessage4	    "0"
	    OutId4		    "0"
	    DataRequestSend4	    "0"
	  }
	  SourceBlock		  "dsPICdrivers/BUS CAN/CAN Receive"
	  SourceType		  "CAN Configuration"
	  NumCAN		  "1"
	  RXM0			  "777"
	  DL0			  "8"
	  RXF0			  "0"
	  F0type		  "Standard or Extended"
	  DL0received		  off
	  FlagNewMessage0	  on
	  OutId0		  on
	  DataRequestSend0	  off
	  DL1			  "Off"
	  RXF1			  "0"
	  F1type		  "Standard or Extended"
	  DL1received		  off
	  FlagNewMessage1	  off
	  OutId1		  off
	  DataRequestSend1	  off
	  RXM1			  "0"
	  DL2			  "Off"
	  RXF2			  "0"
	  F2type		  "Standard or Extended"
	  DL2received		  off
	  FlagNewMessage2	  off
	  OutId2		  off
	  DataRequestSend2	  off
	  DL3			  "Off"
	  RXF3			  "0"
	  F3type		  "Standard or Extended"
	  DL3received		  off
	  FlagNewMessage3	  off
	  OutId3		  off
	  DataRequestSend3	  off
	  DL4			  "Off"
	  RXF4			  "0"
	  F4type		  "Standard or Extended"
	  DL4received		  off
	  FlagNewMessage4	  off
	  OutId4		  off
	  DataRequestSend4	  off
	  DBEN			  off
	  ErrCount		  off
	  DataLost		  off
	  SampleTime		  "-1"
	  OrderingInOutPopup	  "None"
	  Info			  "0"
	}
	Block {
	  BlockType		  DataStoreMemory
	  Name			  "Data Store\nMemory"
	  Position		  [370, 40, 402, 70]
	  BackgroundColor	  "green"
	  ShowName		  off
	  DataStoreName		  "Data"
	  ReadBeforeWriteMsg	  "warning"
	  WriteAfterWriteMsg	  "warning"
	  WriteAfterReadMsg	  "warning"
	  InitialValue		  "[0 0 0 0 0 0 0 0]"
	  RTWStateStorageClass	  "Auto"
	  VectorParams1D	  on
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  DataStoreWrite
	  Name			  "Data Store\nWrite"
	  Position		  [265, 155, 295, 185]
	  BackgroundColor	  "green"
	  ShowName		  off
	  DataStoreName		  "Data"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Do Nothing"
	  Ports			  [0, 0, 0, 0, 0, 0, 0, 1]
	  Position		  [460, 402, 530, 438]
	  TreatAsAtomicUnit	  on
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  System {
	    Name		    "Do Nothing"
	    Location		    [319, 422, 817, 722]
	    Open		    off
	    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		      ActionPort
	      Name		      "Action Port"
	      Position		      [170, 15, 229, 43]
	      ActionType	      "default"
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "ID768"
	  Ports			  [0, 0, 0, 0, 0, 0, 0, 1]
	  Position		  [915, 167, 985, 203]
	  TreatAsAtomicUnit	  on
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  System {
	    Name		    "ID768"
	    Location		    [7, 80, 1072, 771]
	    Open		    off
	    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		      ActionPort
	      Name		      "Action Port"
	      Position		      [170, 15, 229, 43]
	      ActionType	      "case"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "768_Gain_1"
	      Position		      [530, 231, 585, 269]
	      Gain		      "0.01"
	      ParameterDataTypeMode   "Inherit via internal rule"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SaturateOnIntegerOverflow	off
	      Port {
		PortNumber		1
		Description		"xPCTag=Range;"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "768_Gain_3"
	      Position		      [525, 311, 580, 349]
	      Gain		      "0.05"
	      ParameterDataTypeMode   "Inherit via internal rule"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SaturateOnIntegerOverflow	off
	      Port {
		PortNumber		1
		Description		"xPCTag=Velocity;"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "768_Gain_5"
	      Position		      [505, 441, 560, 479]
	      Gain		      "2"
	      ParameterDataTypeMode   "Inherit via internal rule"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SaturateOnIntegerOverflow	off
	      Port {
		PortNumber		1
		Description		"xPCTag=SNR;"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "768_Gain_6"
	      Position		      [560, 771, 600, 809]
	      Gain		      "0.01"
	      ParameterDataTypeMode   "Inherit via internal rule"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "768_Gain_7"
	      Position		      [475, 706, 530, 744]
	      Gain		      "50"
	      ParameterDataTypeMode   "Inherit via internal rule"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SaturateOnIntegerOverflow	off
	      Port {
		PortNumber		1
		Description		"xPCTag=YawRate;"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add"
	      Ports		      [2, 1]
	      Position		      [480, 232, 510, 263]
	      CollapseMode	      "All dimensions"
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add1"
	      Ports		      [2, 1]
	      Position		      [475, 312, 505, 343]
	      CollapseMode	      "All dimensions"
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add2"
	      Ports		      [2, 1]
	      Position		      [510, 772, 540, 803]
	      CollapseMode	      "All dimensions"
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Display
	      Name		      "BearingFiltered (deg)1"
	      Ports		      [1]
	      Position		      [835, 545, 925, 575]
	      Decimation	      "1"
	      Lockdown		      off
	    }
	    Block {
	      BlockType		      Display
	      Name		      "BearingObserved1"
	      Ports		      [1]
	      Position		      [830, 880, 920, 910]
	      Decimation	      "1"
	      Lockdown		      off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Bit Unpacking "
	      Ports		      [1, 1]
	      Position		      [345, 292, 435, 318]
	      SourceBlock	      "xpcutilitieslib/Bit Unpacking "
	      SourceType	      "xpcbitpacking"
	      MaskBitPatterns	      "{[0:3]}"
	      MaskPackDataType	      "uint8"
	      MaskPackDataSize	      "[1]"
	      MaskUnpackDataTypes     "{'uint8'}"
	      MaskUnpackDataSizes     "{[1]}"
	      SignExtend	      on
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Bit Unpacking 1"
	      Ports		      [1, 1]
	      Position		      [345, 241, 435, 269]
	      SourceBlock	      "xpcutilitieslib/Bit Unpacking "
	      SourceType	      "xpcbitpacking"
	      MaskBitPatterns	      "{[4:7]}"
	      MaskPackDataType	      "uint8"
	      MaskPackDataSize	      "[1]"
	      MaskUnpackDataTypes     "{'uint8'}"
	      MaskUnpackDataSizes     "{[1]}"
	      SignExtend	      on
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Bit Unpacking 10"
	      Ports		      [1, 1]
	      Position		      [340, 662, 430, 688]
	      SourceBlock	      "xpcutilitieslib/Bit Unpacking "
	      SourceType	      "xpcbitpacking"
	      MaskBitPatterns	      "{[7]}"
	      MaskPackDataType	      "uint8"
	      MaskPackDataSize	      "[1]"
	      MaskUnpackDataTypes     "{'uint8'}"
	      MaskUnpackDataSizes     "{[1]}"
	      SignExtend	      on
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Bit Unpacking 2"
	      Ports		      [1, 1]
	      Position		      [340, 396, 430, 424]
	      SourceBlock	      "xpcutilitieslib/Bit Unpacking "
	      SourceType	      "xpcbitpacking"
	      MaskBitPatterns	      "{[4:7]}"
	      MaskPackDataType	      "uint8"
	      MaskPackDataSize	      "[1]"
	      MaskUnpackDataTypes     "{'uint8'}"
	      MaskUnpackDataSizes     "{[1]}"
	      SignExtend	      on
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Bit Unpacking 3"
	      Ports		      [1, 1]
	      Position		      [340, 447, 430, 473]
	      SourceBlock	      "xpcutilitieslib/Bit Unpacking "
	      SourceType	      "xpcbitpacking"
	      MaskBitPatterns	      "{[0:3]}"
	      MaskPackDataType	      "uint8"
	      MaskPackDataSize	      "[1]"
	      MaskUnpackDataTypes     "{'uint8'}"
	      MaskUnpackDataSizes     "{[1]}"
	      SignExtend	      on
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Bit Unpacking 4"
	      Ports		      [1, 1]
	      Position		      [340, 561, 430, 589]
	      SourceBlock	      "xpcutilitieslib/Bit Unpacking "
	      SourceType	      "xpcbitpacking"
	      MaskBitPatterns	      "{[4:7]}"
	      MaskPackDataType	      "uint8"
	      MaskPackDataSize	      "[1]"
	      MaskUnpackDataTypes     "{'uint8'}"
	      MaskUnpackDataSizes     "{[1]}"
	      SignExtend	      on
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Bit Unpacking 5"
	      Ports		      [1, 1]
	      Position		      [340, 612, 430, 638]
	      SourceBlock	      "xpcutilitieslib/Bit Unpacking "
	      SourceType	      "xpcbitpacking"
	      MaskBitPatterns	      "{[0:3]}"
	      MaskPackDataType	      "uint8"
	      MaskPackDataSize	      "[1]"
	      MaskUnpackDataTypes     "{'uint8'}"
	      MaskUnpackDataSizes     "{[1]}"
	      SignExtend	      on
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Bit Unpacking 6"
	      Ports		      [1, 1]
	      Position		      [345, 882, 435, 908]
	      SourceBlock	      "xpcutilitieslib/Bit Unpacking "
	      SourceType	      "xpcbitpacking"
	      MaskBitPatterns	      "{[0:5]}"
	      MaskPackDataType	      "uint8"
	      MaskPackDataSize	      "[1]"
	      MaskUnpackDataTypes     "{'uint8'}"
	      MaskUnpackDataSizes     "{[1]}"
	      SignExtend	      on
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Bit Unpacking 7"
	      Ports		      [1, 1]
	      Position		      [340, 822, 430, 848]
	      SourceBlock	      "xpcutilitieslib/Bit Unpacking "
	      SourceType	      "xpcbitpacking"
	      MaskBitPatterns	      "{[6:7]}"
	      MaskPackDataType	      "uint8"
	      MaskPackDataSize	      "[1]"
	      MaskUnpackDataTypes     "{'uint8'}"
	      MaskUnpackDataSizes     "{[1]}"
	      SignExtend	      on
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Bit Unpacking 8"
	      Ports		      [1, 1]
	      Position		      [345, 712, 435, 738]
	      SourceBlock	      "xpcutilitieslib/Bit Unpacking "
	      SourceType	      "xpcbitpacking"
	      MaskBitPatterns	      "{[4:6]}"
	      MaskPackDataType	      "uint8"
	      MaskPackDataSize	      "[1]"
	      MaskUnpackDataTypes     "{'uint8'}"
	      MaskUnpackDataSizes     "{[1]}"
	      SignExtend	      on
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Bit Unpacking 9"
	      Ports		      [1, 1]
	      Position		      [340, 767, 430, 793]
	      SourceBlock	      "xpcutilitieslib/Bit Unpacking "
	      SourceType	      "xpcbitpacking"
	      MaskBitPatterns	      "{[0:3]}"
	      MaskPackDataType	      "uint8"
	      MaskPackDataSize	      "[1]"
	      MaskUnpackDataTypes     "{'uint8'}"
	      MaskUnpackDataSizes     "{[1]}"
	      SignExtend	      on
	    }
	    Block {
	      BlockType		      DataStoreRead
	      Name		      "Data Store\nRead"
	      Position		      [85, 560, 115, 590]
	      BackgroundColor	      "green"
	      ShowName		      off
	      DataStoreName	      "Data"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux"
	      Ports		      [1, 8]
	      Position		      [190, 141, 195, 1004]
	      BackgroundColor	      "black"
	      ShowName		      off
	      Outputs		      "8"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [315, 195, 345, 225]
	      Gain		      "16"
	      ParameterDataTypeMode   "Inherit via internal rule"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain2"
	      Position		      [370, 345, 400, 375]
	      Gain		      "16"
	      ParameterDataTypeMode   "Inherit via internal rule"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain4"
	      Position		      [455, 765, 485, 795]
	      Gain		      "4"
	      ParameterDataTypeMode   "Inherit via internal rule"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Display
	      Name		      "MsgCntr1"
	      Ports		      [1]
	      Position		      [830, 610, 920, 640]
	      Decimation	      "1"
	      Lockdown		      off
	    }
	    Block {
	      BlockType		      Display
	      Name		      "ObservedThisCycle1"
	      Ports		      [1]
	      Position		      [700, 660, 790, 690]
	      Decimation	      "1"
	      Lockdown		      off
	    }
	    Block {
	      BlockType		      Display
	      Name		      "Range (m)1"
	      Ports		      [1]
	      Position		      [725, 235, 815, 265]
	      Decimation	      "1"
	      Lockdown		      off
	    }
	    Block {
	      BlockType		      Display
	      Name		      "RangeObserved1"
	      Ports		      [1]
	      Position		      [660, 775, 750, 805]
	      Decimation	      "1"
	      Lockdown		      off
	    }
	    Block {
	      BlockType		      Display
	      Name		      "SNR (dB)1"
	      Ports		      [1]
	      Position		      [715, 445, 805, 475]
	      Decimation	      "1"
	      Lockdown		      off
	    }
	    Block {
	      BlockType		      Display
	      Name		      "SensorNo1"
	      Ports		      [1]
	      Position		      [700, 560, 790, 590]
	      Decimation	      "1"
	      Lockdown		      off
	    }
	    Block {
	      BlockType		      Display
	      Name		      "TrackID1"
	      Ports		      [1]
	      Position		      [675, 395, 765, 425]
	      Decimation	      "1"
	      Lockdown		      off
	    }
	    Block {
	      BlockType		      Display
	      Name		      "Velocity (m/s)1"
	      Ports		      [1]
	      Position		      [715, 315, 805, 345]
	      Decimation	      "1"
	      Lockdown		      off
	    }
	    Block {
	      BlockType		      Display
	      Name		      "YawRateFiltered1"
	      Ports		      [1]
	      Position		      [825, 710, 915, 740]
	      Decimation	      "1"
	      Lockdown		      off
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      1
	      Points		      [0, 5]
	      DstBlock		      "Gain"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      2
	      Points		      [5, 0; 0, -55; 80, 0]
	      Branch {
		Points			[0, 50]
		DstBlock		"Bit Unpacking "
		DstPort			1
	      }
	      Branch {
		DstBlock		"Bit Unpacking 1"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Bit Unpacking 1"
	      SrcPort		      1
	      DstBlock		      "Add"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Gain"
	      SrcPort		      1
	      Points		      [105, 0; 0, 30]
	      DstBlock		      "Add"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Add"
	      SrcPort		      1
	      DstBlock		      "768_Gain_1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      3
	      Points		      [5, 0; 0, -25; 70, 0; 0, -30]
	      DstBlock		      "Gain2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Add1"
	      SrcPort		      1
	      DstBlock		      "768_Gain_3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Bit Unpacking "
	      SrcPort		      1
	      Points		      [10, 0; 0, 15]
	      DstBlock		      "Add1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gain2"
	      SrcPort		      1
	      Points		      [25, 0; 0, -25]
	      DstBlock		      "Add1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      4
	      Points		      [5, 0; 0, -45; 60, 0; 0, -65]
	      Branch {
		DstBlock		"Bit Unpacking 2"
		DstPort			1
	      }
	      Branch {
		Points			[0, 50]
		DstBlock		"Bit Unpacking 3"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Bit Unpacking 3"
	      SrcPort		      1
	      DstBlock		      "768_Gain_5"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      6
	      Points		      [0, -85; 45, 0; 0, -70]
	      Branch {
		DstBlock		"Bit Unpacking 4"
		DstPort			1
	      }
	      Branch {
		Points			[0, 50]
		DstBlock		"Bit Unpacking 5"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Bit Unpacking 8"
	      SrcPort		      1
	      DstBlock		      "768_Gain_7"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      8
	      Points		      [65, 0; 0, -105]
	      Branch {
		DstBlock		"Bit Unpacking 7"
		DstPort			1
	      }
	      Branch {
		Points			[0, 60]
		DstBlock		"Bit Unpacking 6"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Bit Unpacking 9"
	      SrcPort		      1
	      DstBlock		      "Gain4"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gain4"
	      SrcPort		      1
	      DstBlock		      "Add2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Bit Unpacking 7"
	      SrcPort		      1
	      Points		      [60, 0]
	      DstBlock		      "Add2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Add2"
	      SrcPort		      1
	      DstBlock		      "768_Gain_6"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "768_Gain_1"
	      SrcPort		      1
	      DstBlock		      "Range (m)1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "768_Gain_3"
	      SrcPort		      1
	      DstBlock		      "Velocity (m/s)1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Bit Unpacking 2"
	      SrcPort		      1
	      DstBlock		      "TrackID1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "768_Gain_5"
	      SrcPort		      1
	      DstBlock		      "SNR (dB)1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      5
	      Points		      [5, 0; 0, -65]
	      DstBlock		      "BearingFiltered (deg)1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Bit Unpacking 4"
	      SrcPort		      1
	      DstBlock		      "SensorNo1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Bit Unpacking 5"
	      SrcPort		      1
	      DstBlock		      "MsgCntr1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Bit Unpacking 10"
	      SrcPort		      1
	      DstBlock		      "ObservedThisCycle1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "768_Gain_7"
	      SrcPort		      1
	      DstBlock		      "YawRateFiltered1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "768_Gain_6"
	      SrcPort		      1
	      DstBlock		      "RangeObserved1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Bit Unpacking 6"
	      SrcPort		      1
	      DstBlock		      "BearingObserved1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      7
	      Points		      [55, 0; 0, -55]
	      Branch {
		DstBlock		"Bit Unpacking 9"
		DstPort			1
	      }
	      Branch {
		Points			[0, -55]
		Branch {
		  DstBlock		  "Bit Unpacking 8"
		  DstPort		  1
		}
		Branch {
		  Points		  [0, -50]
		  DstBlock		  "Bit Unpacking 10"
		  DstPort		  1
		}
	      }
	    }
	    Line {
	      SrcBlock		      "Data Store\nRead"
	      SrcPort		      1
	      DstBlock		      "Demux"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [270, 207, 300, 238]
	  ShowName		  off
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  SwitchCase
	  Name			  "Switch Case"
	  Ports			  [1, 11]
	  Position		  [395, 129, 470, 321]
	  CaseConditions	  "{768 769 770 771 772 773 774 775 776 777}"
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator"
	  Position		  [520, 155, 540, 175]
	  ShowName		  off
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator1"
	  Position		  [550, 170, 570, 190]
	  ShowName		  off
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator2"
	  Position		  [520, 185, 540, 205]
	  ShowName		  off
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator3"
	  Position		  [550, 200, 570, 220]
	  ShowName		  off
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator4"
	  Position		  [520, 215, 540, 235]
	  ShowName		  off
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator5"
	  Position		  [550, 230, 570, 250]
	  ShowName		  off
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator6"
	  Position		  [520, 245, 540, 265]
	  ShowName		  off
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator7"
	  Position		  [550, 260, 570, 280]
	  ShowName		  off
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator8"
	  Position		  [520, 275, 540, 295]
	  ShowName		  off
	}
	Line {
	  SrcBlock		  "Switch Case"
	  SrcPort		  11
	  Points		  [20, 0]
	  DstBlock		  "Do Nothing"
	  DstPort		  ifaction
	}
	Line {
	  SrcBlock		  "Switch Case"
	  SrcPort		  1
	  Points		  [475, 0]
	  DstBlock		  "ID768"
	  DstPort		  ifaction
	}
	Line {
	  SrcBlock		  "CAN Receive"
	  SrcPort		  3
	  Points		  [0, -5]
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  DstBlock		  "Switch Case"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "CAN Receive"
	  SrcPort		  1
	  Points		  [25, 0; 0, 30]
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "CAN Receive"
	  SrcPort		  2
	  Points		  [45, 0]
	  DstBlock		  "Data Store\nWrite"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch Case"
	  SrcPort		  2
	  DstBlock		  "Terminator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch Case"
	  SrcPort		  3
	  DstBlock		  "Terminator1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch Case"
	  SrcPort		  4
	  DstBlock		  "Terminator2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch Case"
	  SrcPort		  5
	  DstBlock		  "Terminator3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch Case"
	  SrcPort		  6
	  DstBlock		  "Terminator4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch Case"
	  SrcPort		  7
	  DstBlock		  "Terminator5"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch Case"
	  SrcPort		  8
	  DstBlock		  "Terminator6"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch Case"
	  SrcPort		  9
	  DstBlock		  "Terminator7"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch Case"
	  SrcPort		  10
	  DstBlock		  "Terminator8"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "CAN Transmit"
      Ports		      []
      Position		      [245, 229, 360, 291]
      TreatAsAtomicUnit	      on
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      System {
	Name			"CAN Transmit"
	Location		[76, 241, 920, 668]
	Open			off
	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		  Reference
	  Name			  "CAN Transmit"
	  Tag			  "dsPIC_CAN_Transmit"
	  Ports			  [2]
	  Position		  [645, 146, 795, 219]
	  List {
	    ListType		    RTWdata
	    NumCAN		    "1"
	    TxPriority		    "3"
	    IdentifierType	    "0"
	    IdentifierBlockInput    "1"
	    SRR			    "0"
	    TransmitBlockInput	    "1"
	    DLC			    "8"
	    TxFull		    "0"
	    OutErrCount		    "0"
	    TXBO		    "0"
	    TXEP		    "0"
	    TXWAR		    "0"
	    WaitPreviousTransmission "0"
	  }
	  SourceBlock		  "dsPICdrivers/BUS CAN/CAN Transmit"
	  SourceType		  "CAN Configuration"
	  NumCAN		  "1"
	  WaitPreviousTransmission off
	  TxPriority		  "Highest"
	  IdentifierType	  "Standard 11 bits"
	  IdentifierBlockInput	  on
	  Identifier		  "[256]"
	  SRR			  "Normal Message"
	  DLC			  "8"
	  TransmitBlockInput	  on
	  TransmitValue		  "0"
	  TxFull		  off
	  OutErrCount		  off
	  TXBO			  off
	  TXEP			  off
	  TXWAR			  off
	  SampleTime		  "-1"
	  OrderingInOutPopup	  "None"
	  Info			  "0"
	}
	Block {
	  BlockType		  ForIterator
	  Name			  "For Iterator"
	  Ports			  [0, 1]
	  Position		  [35, 65, 80, 95]
	  IterationLimit	  "2"
	  IterationVariableDataType "int8"
	}
	Block {
	  BlockType		  Merge
	  Name			  "Merge"
	  Ports			  [2, 1]
	  Position		  [500, 145, 540, 185]
	}
	Block {
	  BlockType		  Merge
	  Name			  "Merge1"
	  Ports			  [2, 1]
	  Position		  [500, 215, 540, 255]
	  InitialOutput		  "[0 0 0 0 0 0 0 0]"
	}
	Block {
	  BlockType		  SwitchCase
	  Name			  "Switch Case"
	  Ports			  [1, 2]
	  Position		  [165, 61, 265, 99]
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Switch Case Action\nSubsystem"
	  Ports			  [0, 2, 0, 0, 0, 0, 0, 1]
	  Position		  [370, 110, 440, 145]
	  TreatAsAtomicUnit	  on
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  System {
	    Name		    "Switch Case Action\nSubsystem"
	    Location		    [238, 183, 894, 590]
	    Open		    off
	    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		      ActionPort
	      Name		      "Action Port"
	      Position		      [170, 15, 229, 43]
	      ActionType	      "case"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant1"
	      Position		      [75, 110, 105, 140]
	      ShowName		      off
	      Value		      "4"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant2"
	      Position		      [250, 140, 280, 170]
	      ShowName		      off
	      Value		      "256"
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant3"
	      Position		      [75, 260, 105, 290]
	      ShowName		      off
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant4"
	      Position		      [110, 235, 140, 265]
	      ShowName		      off
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant5"
	      Position		      [75, 210, 105, 240]
	      ShowName		      off
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant6"
	      Position		      [120, 185, 150, 215]
	      ShowName		      off
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant7"
	      Position		      [75, 160, 105, 190]
	      ShowName		      off
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant8"
	      Position		      [120, 135, 150, 165]
	      ShowName		      off
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant9"
	      Position		      [120, 85, 150, 115]
	      ShowName		      off
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [8, 1]
	      Position		      [210, 85, 215, 290]
	      ShowName		      off
	      Inputs		      "8"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "ID"
	      Position		      [375, 148, 405, 162]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "MSG"
	      Position		      [375, 183, 405, 197]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      SrcBlock		      "Constant1"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Constant2"
	      SrcPort		      1
	      DstBlock		      "ID"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "MSG"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant7"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "Constant8"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Constant6"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      5
	    }
	    Line {
	      SrcBlock		      "Constant5"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      6
	    }
	    Line {
	      SrcBlock		      "Constant4"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      7
	    }
	    Line {
	      SrcBlock		      "Constant3"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      8
	    }
	    Line {
	      SrcBlock		      "Constant9"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Switch Case Action\nSubsystem1"
	  Ports			  [0, 2, 0, 0, 0, 0, 0, 1]
	  Position		  [315, 220, 385, 255]
	  TreatAsAtomicUnit	  on
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  System {
	    Name		    "Switch Case Action\nSubsystem1"
	    Location		    [319, 422, 800, 722]
	    Open		    off
	    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		      ActionPort
	      Name		      "Action Port"
	      Position		      [170, 15, 229, 43]
	      ActionType	      "default"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant1"
	      Position		      [70, 140, 100, 170]
	      ShowName		      off
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant2"
	      Position		      [245, 170, 275, 200]
	      ShowName		      off
	      Value		      "516"
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant3"
	      Position		      [70, 290, 100, 320]
	      ShowName		      off
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant4"
	      Position		      [105, 265, 135, 295]
	      ShowName		      off
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant5"
	      Position		      [70, 240, 100, 270]
	      ShowName		      off
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant6"
	      Position		      [115, 215, 145, 245]
	      ShowName		      off
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant7"
	      Position		      [70, 190, 100, 220]
	      ShowName		      off
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant8"
	      Position		      [115, 165, 145, 195]
	      ShowName		      off
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant9"
	      Position		      [115, 115, 145, 145]
	      ShowName		      off
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [8, 1]
	      Position		      [205, 115, 210, 320]
	      ShowName		      off
	      Inputs		      "8"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "ID"
	      Position		      [370, 178, 400, 192]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "MSG"
	      Position		      [370, 213, 400, 227]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      SrcBlock		      "Constant2"
	      SrcPort		      1
	      DstBlock		      "ID"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "MSG"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant1"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Constant7"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "Constant8"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Constant6"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      5
	    }
	    Line {
	      SrcBlock		      "Constant5"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      6
	    }
	    Line {
	      SrcBlock		      "Constant4"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      7
	    }
	    Line {
	      SrcBlock		      "Constant3"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      8
	    }
	    Line {
	      SrcBlock		      "Constant9"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "For Iterator"
	  SrcPort		  1
	  DstBlock		  "Switch Case"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch Case"
	  SrcPort		  1
	  Points		  [135, 0]
	  DstBlock		  "Switch Case Action\nSubsystem"
	  DstPort		  ifaction
	}
	Line {
	  SrcBlock		  "Switch Case"
	  SrcPort		  2
	  Points		  [80, 0]
	  DstBlock		  "Switch Case Action\nSubsystem1"
	  DstPort		  ifaction
	}
	Line {
	  SrcBlock		  "Switch Case Action\nSubsystem"
	  SrcPort		  1
	  Points		  [20, 0; 0, 35]
	  DstBlock		  "Merge"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch Case Action\nSubsystem1"
	  SrcPort		  1
	  Points		  [40, 0; 0, -55]
	  DstBlock		  "Merge"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Merge"
	  SrcPort		  1
	  DstBlock		  "CAN Transmit"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch Case Action\nSubsystem"
	  SrcPort		  2
	  Points		  [10, 0; 0, 90]
	  DstBlock		  "Merge1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch Case Action\nSubsystem1"
	  SrcPort		  2
	  DstBlock		  "Merge1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Merge1"
	  SrcPort		  1
	  Points		  [40, 0; 0, -35]
	  DstBlock		  "CAN Transmit"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Chart"
      Ports		      [0, 1]
      Position		      [180, 404, 240, 456]
      PermitHierarchicalResolution "ExplicitOnly"
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskType		      "Stateflow"
      MaskDescription	      "Stateflow diagram"
      MaskDisplay	      "plot(sf('Private','sfblk','xIcon'),sf('Private','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'HorizontalAl','Center','VerticalAl','Bottom');"
      MaskSelfModifiable      on
      MaskIconFrame	      off
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Chart"
	Location		[257, 457, 812, 717]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Demux
	  Name			  " Demux "
	  Ports			  [1, 1]
	  Position		  [270, 160, 320, 200]
	  Outputs		  "1"
	}
	Block {
	  BlockType		  Ground
	  Name			  " Ground "
	  Position		  [20, 121, 40, 139]
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  " SFunction "
	  Tag			  "Stateflow S-Function test_v2 1"
	  Ports			  [1, 2]
	  Position		  [180, 100, 230, 160]
	  FunctionName		  "sf_sfun"
	  PortCounts		  "[1 2]"
	  EnableBusSupport	  on
	  Port {
	    PortNumber		    2
	    Name		    "out"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Terminator
	  Name			  " Terminator "
	  Position		  [460, 171, 480, 189]
	}
	Block {
	  BlockType		  Outport
	  Name			  "out"
	  Position		  [460, 101, 480, 119]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  " SFunction "
	  SrcPort		  1
	  DstBlock		  " Demux "
	  DstPort		  1
	}
	Line {
	  Name			  "out"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  2
	  DstBlock		  "out"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " Ground "
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " Demux "
	  SrcPort		  1
	  DstBlock		  " Terminator "
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Configure Model \nfor dsPIC"
      Ports		      []
      Position		      [50, 44, 162, 100]
      ForegroundColor	      "blue"
      BackgroundColor	      "yellow"
      DropShadow	      on
      SourceBlock	      "dsPICdrivers/Simulink Configuration/Configure Model \nfor dsPIC"
      SourceType	      ""
    }
    Block {
      BlockType		      Reference
      Name		      "Digital Output Write"
      Tag		      "dsPIC_Digital_Output"
      Ports		      [1]
      Position		      [420, 410, 535, 450]
      Priority		      "5"
      SourceBlock	      "dsPICdrivers/Digital I//O/Digital Output Write"
      SourceType	      ""
      PORT		      "B"
      Pin		      "[0]"
      Simultaneous	      off
      OrderingInOutPopup      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "Generate Code"
      Ports		      []
      Position		      [380, 54, 492, 110]
      ForegroundColor	      "blue"
      BackgroundColor	      "yellow"
      DropShadow	      on
      SourceBlock	      "dsPICdrivers/Simulink Configuration/Generate Code"
      SourceType	      ""
    }
    Block {
      BlockType		      Reference
      Name		      "Master"
      Tag		      "dsPIC_MASTER"
      Ports		      []
      Position		      [244, 45, 344, 95]
      BackgroundColor	      "lightBlue"
      DropShadow	      on
      Priority		      "1"
      List {
	ListType		RTWdata
	NumBusyPort		"-1"
      }
      SourceBlock	      "dsPICdrivers/Master"
      SourceType	      "Master"
      TimeStepType	      "Timer1"
      picType		      "30f4011"
      fcy		      "16e6"
      Quartz_33f	      "5e6"
      PLLActive_33f	      off
      fcyDesired_33f	      "0"
      tmr1		      "[1  9999  0]"
      tmr1Info		      "Time Step : 0.01  ;   Error : 0%  PR1=9999"
      tmr2345		      "[0  0  0  0]"
      tmr2345cfg	      "[-1 -1 -1 -1]"
      IOautoConf	      on
      typePort		      "[ 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  10   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   0   0   0   0   0   0  19  19   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 ]"
      TRIS		      "[ 65535  65534  65535  65535  65535  65535  65535 ]"
      ADPCFG		      "1"
      MasterBusyPort	      "None"
      MasterOverloadPort      "None"
      FOSC		      "XT_PLL8"
      ClockSwitchMonitor      "Both disabled"
      TempProtection_33f      "TEMP_ON"
      FPBOR		      "PBOR_OFF"
      PWRT		      "PWRT_OFF"
      MCLR		      "MCLR_EN"
      PowerSave		      off
      OverrideFcy	      on
      NewFcy		      "1e6"
      PR2345		      "[65535  65535  65535  65535]"
    }
    Line {
      SrcBlock		      "Chart"
      SrcPort		      1
      DstBlock		      "Digital Output Write"
      DstPort		      1
    }
  }
}
# Finite State Machines
#
#    Stateflow Version 6.7 (R2007b) dated Aug  7 2007, 16:48:14
#
#


Stateflow {
  machine {
    id			    1
    name		    "test_v2"
    created		    "31-May-2009 21:52:23"
    isLibrary		    0
    firstTarget		    13
    sfVersion		    67014000.000001
  }
  chart {
    id			    2
    name		    "Chart"
    windowPosition	    [378 65.25 439.5 431.25]
    viewLimits		    [63.723 273.603 13.904 223.386]
    zoomFactor		    0.53
    screen		    [1 1 1280 800 1.333333333333333]
    treeNode		    [0 3 0 0]
    firstTransition	    7
    viewObj		    2
    machine		    1
    subviewS {
      x1		      63.723
      y1		      13.904
      zoomFactor	      0.53
    }
    decomposition	    CLUSTER_CHART
    firstData		    8
    chartFileNumber	    1
    disableImplicitCasting  1
  }
  state {
    id			    3
    labelString		    "ON/\nen: out = TRUE;\ntime = 0;\ndu: time = time + 0.01;"
    position		    [116.875 49.125 129.1686 66.4883]
    fontSize		    12
    chart		    2
    treeNode		    [2 0 0 4]
    subviewer		    2
    type		    OR_STATE
    decomposition	    CLUSTER_STATE
  }
  state {
    id			    4
    labelString		    "OFF/\nen: out = FALSE;\ntime = 0;\ndu: time = time + 0.01;"
    position		    [117.758 157.7992 131.9171 60.3657]
    fontSize		    12
    chart		    2
    treeNode		    [2 0 3 0]
    subviewer		    2
    type		    OR_STATE
    decomposition	    CLUSTER_STATE
  }
  transition {
    id			    5
    labelString		    "[time >= 0.02]"
    labelPosition	    [69.85 125.37 76.68 14.679]
    fontSize		    12
    src {
      id		      3
      intersection	      [3 0 1 0.8006 142.633 115.6133 0 23.25]
    }
    dst {
      id		      4
      intersection	      [1 0 -1 0.1886 142.633 157.7992 0 -22.5]
    }
    midPoint		    [142.633 133.3626]
    chart		    2
    linkNode		    [2 7 6]
    dataLimits		    [140.233 145.033 115.613 157.799]
    stampAngle		    -1
    subviewer		    2
    drawStyle		    SMART
    executionOrder	    1
  }
  transition {
    id			    6
    labelString		    "[time >= 0.02]"
    labelPosition	    [197.549 126.412 76.68 14.679]
    fontSize		    12
    src {
      id		      4
      intersection	      [1 0 -1 0.5707 193.0491 157.7992 0 22.5318]
    }
    dst {
      id		      3
      intersection	      [3 0 1 0.4103 193.0491 115.6133 0 -22.5318]
    }
    midPoint		    [193.0491 140.0499]
    chart		    2
    linkNode		    [2 5 0]
    dataLimits		    [190.649 195.449 115.613 157.799]
    stampAngle		    -1
    subviewer		    2
    drawStyle		    SMART
    executionOrder	    1
  }
  transition {
    id			    7
    labelPosition	    [187.401 20.133 7.549 14.679]
    fontSize		    12
    src {
      intersection	      [0 0 1 0 186.5818 19.125 0 0]
    }
    dst {
      id		      3
      intersection	      [1 0 -1 0.5397 186.5818 49.125 0 0]
    }
    midPoint		    [186.5818 30.5165]
    chart		    2
    linkNode		    [2 0 5]
    dataLimits		    [184.182 188.982 19.125 49.125]
    subviewer		    2
    drawStyle		    SMART
    executionOrder	    1
  }
  data {
    id			    8
    name		    "out"
    linkNode		    [2 0 9]
    scope		    OUTPUT_DATA
    machine		    1
    props {
      type {
	primitive		SF_BOOLEAN_TYPE
	wordLength		"1"
	fixpt {
	  lock			  1
	}
      }
      frame		      SF_FRAME_NO
    }
    dataType		    "boolean"
  }
  data {
    id			    9
    name		    "FALSE"
    linkNode		    [2 8 10]
    scope		    CONSTANT_DATA
    machine		    1
    props {
      initialValue	      "0"
      type {
	primitive		SF_BOOLEAN_TYPE
	wordLength		"1"
	fixpt {
	  lock			  1
	}
      }
    }
    dataType		    "boolean"
  }
  data {
    id			    10
    name		    "TRUE"
    linkNode		    [2 9 11]
    scope		    CONSTANT_DATA
    machine		    1
    props {
      initialValue	      "1"
      type {
	primitive		SF_BOOLEAN_TYPE
	wordLength		"1"
	fixpt {
	  lock			  1
	}
      }
    }
    dataType		    "boolean"
  }
  data {
    id			    11
    name		    "time"
    linkNode		    [2 10 0]
    scope		    LOCAL_DATA
    machine		    1
    props {
      type {
	primitive		SF_DOUBLE_TYPE
	isSigned		1
	wordLength		"16"
      }
    }
    dataType		    "double"
  }
  instance {
    id			    12
    name		    "Chart"
    machine		    1
    chart		    2
  }
  target {
    id			    13
    name		    "sfun"
    description		    "Default Simulink S-Function Target."
    machine		    1
    linkNode		    [1 0 14]
  }
  target {
    id			    14
    name		    "rtw"
    codeFlags		    " comments=1 statebitsets=1 databitsets=1 emitlogicalops=1 elseifdetection=1 constantfolding=1 redundantloadelimination=0 preservenames=0 preservenameswithparent=0 exportcharts=0"
    machine		    1
    linkNode		    [1 13 0]
  }
}
