Model {
  Name			  "Simurda_CAR4_dsPIC33_ACU44_I2C_MPLAB_ads1015_SHARP"
  Version		  7.3
  MdlSubVersion		  0
  GraphicalInterface {
    NumRootInports	    0
    NumRootOutports	    0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.937"
    NumModelReferences	    0
    NumTestPointedSignals   0
  }
  SavedCharacterEncoding  "windows-1252"
  SaveDefaultBlockParams  on
  ScopeRefreshTime	  0.035000
  OverrideScopeRefreshTime on
  DisableAllScopes	  off
  DataTypeOverride	  "UseLocalSettings"
  MinMaxOverflowLogging	  "UseLocalSettings"
  MinMaxOverflowArchiveMode "Overwrite"
  Created		  "Wed Mar 14 23:59:06 2007"
  Creator		  "Lubin"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "Administrator"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Sun May 23 17:54:30 2010"
  RTWModifiedTimeStamp	  196538023
  ModelVersionFormat	  "1.%<AutoIncrement:937>"
  ConfigurationManager	  "None"
  SampleTimeColors	  on
  SampleTimeAnnotations	  off
  LibraryLinkDisplay	  "none"
  WideLines		  off
  ShowLineDimensions	  off
  ShowPortDataTypes	  on
  ShowLoopsOnError	  on
  IgnoreBidirectionalLines off
  ShowStorageClass	  off
  ShowTestPointIcons	  on
  ShowSignalResolutionIcons on
  ShowViewerIcons	  on
  SortedOrder		  off
  ExecutionContextIcon	  off
  ShowLinearizationAnnotations on
  BlockNameDataTip	  off
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  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
  CovModelRefEnable	  "Off"
  CovExternalEMLEnable	  off
  ExtModeBatchMode	  off
  ExtModeEnableFloating	  on
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "normal"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigDurationFloating "auto"
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  on
  ExtModeSkipDownloadWhenConnect off
  ExtModeLogAll		  on
  ExtModeAutoUpdateStatusClock on
  BufferReuse		  on
  ShowModelReferenceBlockVersion off
  ShowModelReferenceBlockIO off
  Array {
    Type		    "Handle"
    Dimension		    1
    Simulink.ConfigSet {
      $ObjectID		      1
      Version		      "1.6.0"
      Array {
	Type			"Handle"
	Dimension		8
	Simulink.SolverCC {
	  $ObjectID		  2
	  Version		  "1.6.0"
	  StartTime		  "0.0"
	  StopTime		  "10.0"
	  AbsTol		  "auto"
	  FixedStep		  "0.001"
	  InitialStep		  "auto"
	  MaxNumMinSteps	  "-1"
	  MaxOrder		  5
	  ZcThreshold		  "auto"
	  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"
	  ShapePreserveControl	  "DisableAll"
	  ZeroCrossControl	  "UseLocalSettings"
	  ZeroCrossAlgorithm	  "Nonadaptive"
	  AlgebraicLoopSolver	  "TrustRegion"
	  SolverResetMethod	  "Fast"
	  PositivePriorityOrder	  off
	  AutoInsertRateTranBlk	  off
	  SampleTimeConstraint	  "Unconstrained"
	  InsertRTBMode		  "Whenever possible"
	  SignalSizeVariationType "Allow only fixed size"
	}
	Simulink.DataIOCC {
	  $ObjectID		  3
	  Version		  "1.6.0"
	  Decimation		  "1"
	  ExternalInput		  "[t, u]"
	  FinalStateName	  "xFinal"
	  InitialState		  "xInitial"
	  LimitDataPoints	  on
	  MaxDataPoints		  "1000"
	  LoadExternalInput	  off
	  LoadInitialState	  off
	  SaveFinalState	  off
	  SaveCompleteFinalSimState off
	  SaveFormat		  "Array"
	  SaveOutput		  on
	  SaveState		  off
	  SignalLogging		  on
	  InspectSignalLogs	  off
	  SaveTime		  on
	  StateSaveName		  "xout"
	  TimeSaveName		  "tout"
	  OutputSaveName	  "yout"
	  SignalLoggingName	  "logsout"
	  OutputOption		  "RefineOutputTimes"
	  OutputTimes		  "[]"
	  Refine		  "1"
	}
	Simulink.OptimizationCC {
	  $ObjectID		  4
	  Version		  "1.6.0"
	  BlockReduction	  on
	  BooleanDataType	  on
	  ConditionallyExecuteInputs on
	  InlineParams		  on
	  InlineInvariantSignals  on
	  OptimizeBlockIOStorage  on
	  BufferReuse		  on
	  EnhancedBackFolding	  off
	  StrengthReduction	  off
	  EnforceIntegerDowncast  on
	  ExpressionFolding	  on
	  EnableMemcpy		  on
	  MemcpyThreshold	  64
	  PassReuseOutputArgsAs	  "Structure reference"
	  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
	  EfficientMapNaN2IntZero on
	  OptimizeModelRefInitCode on
	  LifeSpan		  "1"
	  BufferReusableBoundary  on
	  SimCompilerOptimization "Off"
	  AccelVerboseBuild	  off
	}
	Simulink.DebuggingCC {
	  $ObjectID		  5
	  Version		  "1.6.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
	  UnderspecifiedInitializationDetection	"Classic"
	  MergeDetectMultiDrivingBlocksExec "none"
	  CheckExecutionContextPreStartOutputMsg off
	  CheckExecutionContextRuntimeOutputMsg	off
	  SignalResolutionControl "TryResolveAllWithWarning"
	  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"
	  UnknownTsInhSupMsg	  "warning"
	  ModelReferenceDataLoggingMessage "warning"
	  ModelReferenceSymbolNameMessage "warning"
	  ModelReferenceExtraNoncontSigs "error"
	  StateNameClashWarn	  "warning"
	  StrictBusMsg		  "Warning"
	  LoggingUnavailableSignals "error"
	  BlockIODiagnostic	  "none"
	}
	Simulink.HardwareCC {
	  $ObjectID		  6
	  Version		  "1.6.0"
	  Array {
	    Type		    "Cell"
	    Dimension		    2
	    Cell		    "ProdHWDeviceType"
	    Cell		    "ProdEqTarget"
	    PropName		    "DisabledProps"
	  }
	  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.6.0"
	  UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
	  CheckModelReferenceTargetMessage "error"
	  ModelReferenceNumInstancesAllowed "Multi"
	  ModelReferencePassRootInputsByReference on
	  ModelReferenceMinAlgLoopOccurrences off
	}
	Simulink.SFSimCC {
	  $ObjectID		  8
	  Version		  "1.6.0"
	  SFSimEnableDebug	  on
	  SFSimOverflowDetection  on
	  SFSimEcho		  on
	  SimBlas		  on
	  SimUseLocalCustomCode	  off
	  SimBuildMode		  "sf_incremental_build"
	}
	Simulink.RTWCC {
	  $BackupClass		  "Simulink.RTWCC"
	  $ObjectID		  9
	  Version		  "1.6.0"
	  Array {
	    Type		    "Cell"
	    Dimension		    1
	    Cell		    "TargetLang"
	    PropName		    "DisabledProps"
	  }
	  SystemTargetFile	  "dspic.tlc"
	  GenCodeOnly		  off
	  MakeCommand		  "make_rtw"
	  GenerateMakefile	  on
	  TemplateMakefile	  "dspic_pic30_gcc.tmf"
	  PostCodeGenCommand	  "dsPIC_Compile()"
	  Description		  "Embedded Target for Microchip dsPIC (real-time)"
	  GenerateReport	  on
	  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
	  RTWUseLocalCustomCode	  off
	  RTWUseSimCustomCode	  off
	  CustomSource		  "i2c_Func.c"
	  IncludeHyperlinkInReport on
	  LaunchReport		  on
	  TargetLang		  "C"
	  IncludeBusHierarchyInRTWFileBlockHierarchyMap	off
	  IncludeERTFirstTime	  off
	  GenerateTraceInfo	  on
	  GenerateTraceReport	  on
	  GenerateTraceReportSl	  on
	  GenerateTraceReportSf	  on
	  GenerateTraceReportEml  on
	  GenerateCodeInfo	  off
	  RTWCompilerOptimization "Off"
	  CheckMdlBeforeBuild	  "Off"
	  Array {
	    Type		    "Handle"
	    Dimension		    2
	    Simulink.CodeAppCC {
	      $ObjectID		      10
	      Version		      "1.6.0"
	      ForceParamTrailComments off
	      GenerateComments	      on
	      IgnoreCustomStorageClasses off
	      IgnoreTestpoints	      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
	      UseSimReservedNames     off
	    }
	    Simulink.STFCustomTargetCC {
	      $BackupClass	      "Simulink.TargetCC"
	      $ObjectID		      11
	      Version		      "1.6.0"
	      Array {
		Type			"Cell"
		Dimension		5
		Cell			"GenerateSampleERTMain"
		Cell			"MatFileLogging"
		Cell			"SupportNonInlinedSFcns"
		Cell			"UtilityFuncGeneration"
		Cell			"IncludeMdlTerminateFcn"
		PropName		"DisabledProps"
	      }
	      TargetFcnLib	      "ansi_tfl_table_tmw.mat"
	      TargetLibSuffix	      ""
	      TargetPreCompLibLocation ""
	      TargetFunctionLibrary   "ANSI_C"
	      UtilityFuncGeneration   "Auto"
	      ERTMultiwordTypeDef     "System defined"
	      ERTMultiwordLength      256
	      MultiwordLength	      2048
	      GenerateFullHeader      on
	      GenerateSampleERTMain   off
	      GenerateTestInterfaces  off
	      IsPILTarget	      off
	      ModelReferenceCompliant off
	      ParMdlRefBuildCompliant off
	      CompOptLevelCompliant   off
	      IncludeMdlTerminateFcn  off
	      CombineOutputUpdateFcns on
	      SuppressErrorStatus     on
	      ERTFirstTimeCompliant   off
	      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
	      CPPClassGenCompliant    off
	      AutosarCompliant	      off
	      SystemTargetFile	      "dspic.tlc"
	      DialogCategory	      0
	      Array {
		Type			"Handle"
		Dimension		1
		Simulink.ERTTargetCC {
		  $BackupClass		  "Simulink.TargetCC"
		  $ObjectID		  12
		  Version		  "1.6.0"
		  Array {
		    Type		    "Cell"
		    Dimension		    8
		    Cell		    "GenerateSampleERTMain"
		    Cell		    "GenerateErtSFunction"
		    Cell		    "MatFileLogging"
		    Cell		    "GRTInterface"
		    Cell		    "ERTCustomFileTemplate"
		    Cell		    "SupportNonInlinedSFcns"
		    Cell		    "UtilityFuncGeneration"
		    Cell		    "IncludeMdlTerminateFcn"
		    PropName		    "DisabledProps"
		  }
		  TargetFcnLib		  "ansi_tfl_table_tmw.mat"
		  TargetLibSuffix	  ""
		  TargetPreCompLibLocation ""
		  TargetFunctionLibrary	  "ANSI_C"
		  UtilityFuncGeneration	  "Auto"
		  ERTMultiwordTypeDef	  "System defined"
		  ERTMultiwordLength	  256
		  MultiwordLength	  2048
		  GenerateFullHeader	  on
		  GenerateSampleERTMain	  off
		  GenerateTestInterfaces  off
		  IsPILTarget		  off
		  ModelReferenceCompliant off
		  ParMdlRefBuildCompliant off
		  CompOptLevelCompliant	  off
		  IncludeMdlTerminateFcn  off
		  CombineOutputUpdateFcns on
		  SuppressErrorStatus	  on
		  ERTFirstTimeCompliant	  off
		  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
		  CPPClassGenCompliant	  off
		  AutosarCompliant	  off
		  GenerateErtSFunction	  off
		  GenerateASAP2		  off
		  ExtMode		  off
		  ExtModeTransport	  0
		  ExtModeStaticAlloc	  off
		  ExtModeStaticAllocSize  1000000
		  ExtModeTesting	  off
		  ExtModeMexFile	  "ext_comm"
		  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			"D:\\PROGRA~1\\MATLAB\\R2009a\\bin\\win32\\gmake"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"OPTIM_GCC"
		Value			"-mcpu=33fj128MC804 -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 D:\\PROGRA~1\\MICROC~1\\MPLABC~1\\support\\dsPIC33F\\gld\\p33fj128MC804.gld"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"LDLIBPIC"
		Value			"  D:\\PROGRA~1\\MICROC~1\\MPLABC~1\\lib\\libpic30-coff.a D:\\PROGRA~1\\MICROC~1\\MPLABC~1\\lib\\dsPIC33F\\l"
		"ibp33fj128MC804-coff.a D:\\PROGRA~1\\MICROC~1\\MPLABC~1\\lib\\libc-coff.a D:\\PROGRA~1\\MICROC~1\\MPLABC~1\\lib\\lib"
		"m-coff.a"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"PIC_INCLUDES"
		Value			"  -I D:\\PROGRA~1\\MICROC~1\\MPLABC~1\\include"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"PIC_REF"
		Value			"33fj128MC804"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"GCCPATH"
		Value			"''"
	      }
	    }
	    PropName		    "Components"
	  }
	}
	PropName		"Components"
      }
      Name		      "Configuration"
      ExtraOptions	      "-aGenerateTraceInfo=1 -aIgnoreTestpoints=0 "
      CurrentDlgPage	      "Real-Time Workshop/Custom Code"
      ConfigPrmDlgPosition    " [ 200, 197, 1080, 827 ] "
    }
    PropName		    "ConfigurationSets"
  }
  Simulink.ConfigSet {
    $PropName		    "ActiveConfigurationSet"
    $ObjectID		    1
  }
  BlockDefaults {
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Arial"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
    BlockRotation	    0
    BlockMirror		    off
  }
  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"
  }
  BlockParameterDefaults {
    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	      "[]"
      OutDataTypeStr	      "Inherit: Inherit from 'Constant value'"
      LockScale		      off
      SampleTime	      "inf"
      FramePeriod	      "inf"
    }
    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	      "[]"
      OutDataTypeStr	      "Inherit: auto"
      LockScale		      off
      SignalType	      "auto"
    }
    Block {
      BlockType		      DataStoreRead
    }
    Block {
      BlockType		      DataStoreWrite
    }
    Block {
      BlockType		      DataTypeConversion
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Inherit via back propagation"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Inherit via back propagation"
      LockScale		      off
      ConvertRealWorld	      "Real World Value (RWV)"
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      DiscretePulseGenerator
      PulseType		      "Sample based"
      TimeSource	      "Use simulation time"
      VectorParams1D	      on
    }
    Block {
      BlockType		      Inport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      OutMin		      "[]"
      OutMax		      "[]"
      DataType		      "auto"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: auto"
      LockScale		      off
      SignalType	      "auto"
      SamplingMode	      "auto"
      LatchByDelayingOutsideSignal off
      LatchByCopyingInsideSignal off
      Interpolate	      on
      DimensionsMode	      "auto"
    }
    Block {
      BlockType		      Memory
      X0		      "0"
      InheritSampleTime	      off
      LinearizeMemory	      off
      LinearizeAsDelay	      off
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
    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	      "[]"
      OutDataTypeStr	      "Inherit: auto"
      LockScale		      off
      SignalType	      "auto"
      SamplingMode	      "auto"
      SourceOfInitialOutputValue "Dialog"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
      DimensionsMode	      "auto"
    }
    Block {
      BlockType		      Saturate
      UpperLimit	      "0.5"
      LowerLimit	      "-0.5"
      LinearizeAsGain	      on
      ZeroCross		      on
      SampleTime	      "-1"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Same as input"
      LockScale		      off
      RndMeth		      "Floor"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      "FromPortIcon"
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      TreatAsAtomicUnit	      off
      CheckFcnCallInpInsideContextMsg 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
      AccumDataTypeStr	      "Inherit: Inherit via internal rule"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Same as first input"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Switch
      Criteria		      "u2 >= Threshold"
      Threshold		      "0"
      InputSameDT	      on
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Inherit via internal rule"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
      OutputVariableDimensions off
    }
    Block {
      BlockType		      UnitDelay
      X0		      "0"
      SampleTime	      "1"
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
  }
  System {
    Name		    "Simurda_CAR4_dsPIC33_ACU44_I2C_MPLAB_ads1015_SHARP"
    Location		    [20, 134, 1261, 811]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
    TiledPageScale	    1
    ShowPageBoundaries	    off
    ZoomFactor		    "109"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Sum
      Name		      "Add"
      Ports		      [2, 1]
      Position		      [700, 326, 730, 359]
      InputSameDT	      off
      AccumDataTypeStr	      "uint16"
      OutDataTypeMode	      "uint16"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^-10"
      OutDataTypeStr	      "uint16"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Sum
      Name		      "Add1"
      Ports		      [2, 1]
      Position		      [700, 516, 730, 549]
      InputSameDT	      off
      AccumDataTypeStr	      "uint16"
      OutDataTypeMode	      "uint16"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^-10"
      OutDataTypeStr	      "uint16"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Sum
      Name		      "Add2"
      Ports		      [2, 1]
      Position		      [825, 336, 855, 369]
      InputSameDT	      off
      AccumDataTypeStr	      "uint16"
      OutDataTypeMode	      "uint16"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^-10"
      OutDataTypeStr	      "uint16"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Reference
      Name		      "Compare\nTo Constant"
      Ports		      [1, 1]
      Position		      [750, 328, 800, 362]
      SourceBlock	      "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
      SourceType	      "Compare To Constant"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      relop		      ">="
      const		      "1"
      LogicOutDataTypeMode    "uint8"
      ZeroCross		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Compare\nTo Constant1"
      Ports		      [1, 1]
      Position		      [750, 518, 800, 552]
      SourceBlock	      "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
      SourceType	      "Compare To Constant"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      relop		      ">="
      const		      "1"
      LogicOutDataTypeMode    "uint8"
      ZeroCross		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Compare\nTo Constant2"
      Ports		      [1, 1]
      Position		      [875, 338, 925, 372]
      SourceBlock	      "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
      SourceType	      "Compare To Constant"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      relop		      ">="
      const		      "1"
      LogicOutDataTypeMode    "uint8"
      ZeroCross		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Configure Model \nfor dsPIC"
      Ports		      []
      Position		      [365, 14, 477, 70]
      BackgroundColor	      "yellow"
      DropShadow	      on
      SourceBlock	      "dsPICdrivers/Simulink Configuration/Configure Model \nfor dsPIC"
      SourceType	      ""
    }
    Block {
      BlockType		      DataStoreMemory
      Name		      "Data Store\nMemory"
      Position		      [625, 20, 682, 69]
      DataStoreName	      "I2C_bf"
      ReadBeforeWriteMsg      "warning"
      WriteAfterWriteMsg      "warning"
      WriteAfterReadMsg	      "warning"
      RTWStateStorageClass    "ExportedGlobal"
      VectorParams1D	      on
      DataType		      "uint16"
      OutDataType	      "fixdt(1, 16)"
      OutScaling	      "2^0"
      OutDataTypeStr	      "uint16"
    }
    Block {
      BlockType		      DataStoreRead
      Name		      "Data Store\nRead"
      Position		      [475, 114, 540, 176]
      DataStoreName	      "distance_1"
      SampleTime	      "0.01"
    }
    Block {
      BlockType		      DataStoreRead
      Name		      "Data Store\nRead1"
      Position		      [475, 224, 540, 286]
      DataStoreName	      "distance_2"
      SampleTime	      "0.01"
    }
    Block {
      BlockType		      DataStoreRead
      Name		      "Data Store\nRead2"
      Position		      [475, 444, 540, 506]
      DataStoreName	      "distance_3"
      SampleTime	      "0.01"
    }
    Block {
      BlockType		      DataStoreRead
      Name		      "Data Store\nRead3"
      Position		      [475, 554, 540, 616]
      DataStoreName	      "distance_4"
      SampleTime	      "0.01"
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion11"
      Position		      [85, 742, 140, 758]
      ShowName		      off
      OutDataTypeMode	      "boolean"
      OutDataType	      "fixdt(1, 16)"
      OutScaling	      "2^0"
      OutDataTypeStr	      "boolean"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      DataStoreMemory
      Name		      "Distance1"
      Position		      [700, 20, 757, 69]
      DataStoreName	      "distance_1"
      ReadBeforeWriteMsg      "warning"
      WriteAfterWriteMsg      "warning"
      WriteAfterReadMsg	      "warning"
      RTWStateStorageClass    "ExportedGlobal"
      VectorParams1D	      on
      DataType		      "uint16"
      OutDataType	      "fixdt(1, 16)"
      OutScaling	      "2^0"
      OutDataTypeStr	      "uint16"
    }
    Block {
      BlockType		      DataStoreMemory
      Name		      "Distance2"
      Position		      [775, 20, 832, 69]
      DataStoreName	      "distance_2"
      ReadBeforeWriteMsg      "warning"
      WriteAfterWriteMsg      "warning"
      WriteAfterReadMsg	      "warning"
      RTWStateStorageClass    "ExportedGlobal"
      VectorParams1D	      on
      DataType		      "uint16"
      OutDataType	      "fixdt(1, 16)"
      OutScaling	      "2^0"
      OutDataTypeStr	      "uint16"
    }
    Block {
      BlockType		      DataStoreMemory
      Name		      "Distance3"
      Position		      [855, 20, 912, 69]
      DataStoreName	      "distance_3"
      ReadBeforeWriteMsg      "warning"
      WriteAfterWriteMsg      "warning"
      WriteAfterReadMsg	      "warning"
      RTWStateStorageClass    "ExportedGlobal"
      VectorParams1D	      on
      DataType		      "uint16"
      OutDataType	      "fixdt(1, 16)"
      OutScaling	      "2^0"
      OutDataTypeStr	      "uint16"
    }
    Block {
      BlockType		      DataStoreMemory
      Name		      "Distance4"
      Position		      [930, 20, 987, 69]
      DataStoreName	      "distance_4"
      ReadBeforeWriteMsg      "warning"
      WriteAfterWriteMsg      "warning"
      WriteAfterReadMsg	      "warning"
      RTWStateStorageClass    "ExportedGlobal"
      VectorParams1D	      on
      DataType		      "uint16"
      OutDataType	      "fixdt(1, 16)"
      OutScaling	      "2^0"
      OutDataTypeStr	      "uint16"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Distance_filter_1"
      Ports		      [1, 1]
      Position		      [610, 268, 670, 342]
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"Distance_filter_1"
	Location		[569, 308, 1064, 701]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [15, 73, 45, 87]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Distance_Filter"
	  Ports			  [1, 1]
	  Position		  [85, 50, 125, 110]
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Distance_Filter"
	    Location		    [97, 472, 604, 785]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [225, 150, 255, 165]
	      BlockRotation	      270
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add"
	      Ports		      [2, 1]
	      Position		      [265, 26, 295, 59]
	      InputSameDT	      off
	      AccumDataTypeStr	      "uint16"
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Compare\nTo Constant"
	      Ports		      [1, 1]
	      Position		      [340, 28, 390, 62]
	      SourceBlock	      "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
	      SourceType	      "Compare To Constant"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      relop		      ">"
	      const		      "3"
	      LogicOutDataTypeMode    "uint8"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Pointer_to_read1"
	      Position		      [280, 160, 310, 190]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint8"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Pointer_to_read2"
	      Position		      [50, 35, 80, 65]
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint8"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch2"
	      Position		      [214, 70, 266, 125]
	      BlockRotation	      270
	      Threshold		      "1000"
	      InputSameDT	      off
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay"
	      Position		      [185, 198, 220, 232]
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [445, 38, 475, 52]
	      IconDisplay	      "Port number"
	    }
	    Line {
	      SrcBlock		      "Add"
	      SrcPort		      1
	      Points		      [15, 0]
	      Branch {
		DstBlock		"Compare\nTo Constant"
		DstPort			1
	      }
	      Branch {
		Points			[0, 215; -155, 0; 0, -45]
		DstBlock		"Unit Delay"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Switch2"
	      SrcPort		      1
	      Points		      [0, -30]
	      DstBlock		      "Add"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Pointer_to_read2"
	      SrcPort		      1
	      DstBlock		      "Add"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Compare\nTo Constant"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Switch2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      Points		      [10, 0; 0, -35; -15, 0; 0, -40]
	      DstBlock		      "Switch2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Pointer_to_read1"
	      SrcPort		      1
	      Points		      [0, 20; 65, 0; 0, -55]
	      DstBlock		      "Switch2"
	      DstPort		      3
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Noise_Filter"
	  Ports			  [1, 1]
	  Position		  [80, 220, 120, 280]
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Noise_Filter"
	    Location		    [246, 517, 905, 893]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [40, 103, 70, 117]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add"
	      Ports		      [2, 1]
	      Position		      [175, 101, 205, 134]
	      Inputs		      "+-"
	      InputSameDT	      off
	      AccumDataTypeStr	      "uint16"
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add1"
	      Ports		      [2, 1]
	      Position		      [395, 141, 425, 174]
	      InputSameDT	      off
	      AccumDataTypeStr	      "uint16"
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Compare\nTo Constant"
	      Ports		      [1, 1]
	      Position		      [250, 103, 300, 137]
	      SourceBlock	      "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
	      SourceType	      "Compare To Constant"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      relop		      ">"
	      const		      "300"
	      LogicOutDataTypeMode    "uint8"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Compare\nTo Constant1"
	      Ports		      [1, 1]
	      Position		      [500, 143, 550, 177]
	      SourceBlock	      "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
	      SourceType	      "Compare To Constant"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      relop		      "<"
	      const		      "2"
	      LogicOutDataTypeMode    "uint8"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Memory
	      Name		      "Memory"
	      Position		      [120, 125, 150, 155]
	      InheritSampleTime	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Pointer_to_read1"
	      Position		      [185, 155, 215, 185]
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint8"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Pointer_to_read2"
	      Position		      [510, 245, 540, 275]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint8"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch1"
	      Position		      [400, 219, 455, 271]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      Criteria		      "u2 ~= 0"
	      Threshold		      "1000"
	      InputSameDT	      off
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay"
	      Position		      [340, 228, 375, 262]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out2"
	      Position		      [605, 153, 635, 167]
	      IconDisplay	      "Port number"
	    }
	    Line {
	      SrcBlock		      "Add"
	      SrcPort		      1
	      DstBlock		      "Compare\nTo Constant"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Compare\nTo Constant"
	      SrcPort		      1
	      Points		      [50, 0; 0, 75; 120, 0; 0, 50]
	      DstBlock		      "Switch1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Memory"
	      SrcPort		      1
	      Points		      [0, -15]
	      DstBlock		      "Add"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      Points		      [-10, 0; 0, -80]
	      DstBlock		      "Add1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Switch1"
	      SrcPort		      1
	      DstBlock		      "Unit Delay"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		DstBlock		"Add"
		DstPort			1
	      }
	      Branch {
		Points			[0, 30]
		DstBlock		"Memory"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Compare\nTo Constant1"
	      SrcPort		      1
	      DstBlock		      "Out2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Pointer_to_read1"
	      SrcPort		      1
	      Points		      [95, 0; 0, -20]
	      DstBlock		      "Add1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Add1"
	      SrcPort		      1
	      Points		      [40, 0]
	      Branch {
		DstBlock		"Compare\nTo Constant1"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Switch1"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Pointer_to_read2"
	      SrcPort		      1
	      DstBlock		      "Switch1"
	      DstPort		      3
	    }
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "Pointer_to_read3"
	  Position		  [190, 305, 220, 335]
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  Value			  "0"
	  OutDataTypeMode	  "uint8"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint8"
	  SampleTime		  "0.01"
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch1"
	  Position		  [165, 94, 220, 146]
	  Criteria		  "u2 ~= 0"
	  Threshold		  "1000"
	  InputSameDT		  off
	  OutDataTypeMode	  "uint16"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint16"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Validity_Filter"
	  Ports			  [1, 1]
	  Position		  [285, 25, 325, 85]
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Validity_Filter"
	    Location		    [734, 308, 1024, 420]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 48, 55, 62]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem4"
	      Ports		      [1, 1]
	      Position		      [80, 25, 120, 85]
	      MinAlgLoopOccurrences   off
	      PropExecContextOutsideSubsystem off
	      RTWSystemCode	      "Auto"
	      FunctionWithSeparateData off
	      Opaque		      off
	      RequestExecContextInheritance off
	      MaskHideContents	      off
	      System {
		Name			"Subsystem4"
		Location		[301, 422, 1089, 890]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
		TiledPageScale		1
		ShowPageBoundaries	off
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  Position		  [225, 290, 255, 305]
		  BlockRotation		  270
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Add"
		  Ports			  [2, 1]
		  Position		  [265, 26, 295, 59]
		  InputSameDT		  off
		  AccumDataTypeStr	  "uint16"
		  OutDataTypeMode	  "uint16"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^-10"
		  OutDataTypeStr	  "uint16"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  Reference
		  Name			  "Compare\nTo Constant"
		  Ports			  [1, 1]
		  Position		  [340, 28, 390, 62]
		  SourceBlock		  "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
		  SourceType		  "Compare To Constant"
		  ShowPortLabels	  "FromPortIcon"
		  SystemSampleTime	  "-1"
		  FunctionWithSeparateData off
		  RTWMemSecFuncInitTerm	  "Inherit from model"
		  RTWMemSecFuncExecute	  "Inherit from model"
		  RTWMemSecDataConstants  "Inherit from model"
		  RTWMemSecDataInternal	  "Inherit from model"
		  RTWMemSecDataParameters "Inherit from model"
		  relop			  ">"
		  const			  "3"
		  LogicOutDataTypeMode	  "uint8"
		  ZeroCross		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Pointer_to_read1"
		  Position		  [280, 160, 310, 190]
		  BlockMirror		  on
		  NamePlacement		  "alternate"
		  Value			  "0"
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Pointer_to_read2"
		  Position		  [50, 35, 80, 65]
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Switch
		  Name			  "Switch2"
		  Position		  [214, 70, 266, 125]
		  BlockRotation		  270
		  Criteria		  "u2 ~= 0"
		  Threshold		  "900"
		  InputSameDT		  off
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  UnitDelay
		  Name			  "Unit Delay"
		  Position		  [128, 180, 162, 215]
		  BlockRotation		  270
		  SampleTime		  "-1"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [445, 38, 475, 52]
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "Pointer_to_read1"
		  SrcPort		  1
		  Points		  [0, 20; 65, 0; 0, -55]
		  DstBlock		  "Switch2"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Unit Delay"
		  SrcPort		  1
		  Points		  [0, -35]
		  DstBlock		  "Switch2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Compare\nTo Constant"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Pointer_to_read2"
		  SrcPort		  1
		  DstBlock		  "Add"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Switch2"
		  SrcPort		  1
		  Points		  [0, -30]
		  DstBlock		  "Add"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Add"
		  SrcPort		  1
		  Points		  [15, 0]
		  Branch {
		    Points		    [0, 215; -170, 0]
		    DstBlock		    "Unit Delay"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Compare\nTo Constant"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "In1"
		  SrcPort		  1
		  DstBlock		  "Switch2"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem5"
	      Ports		      [1, 1]
	      Position		      [170, 25, 210, 85]
	      MinAlgLoopOccurrences   off
	      PropExecContextOutsideSubsystem off
	      RTWSystemCode	      "Auto"
	      FunctionWithSeparateData off
	      Opaque		      off
	      RequestExecContextInheritance off
	      MaskHideContents	      off
	      System {
		Name			"Subsystem5"
		Location		[303, 386, 1091, 854]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
		TiledPageScale		1
		ShowPageBoundaries	off
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  Position		  [225, 290, 255, 305]
		  BlockRotation		  270
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Add"
		  Ports			  [2, 1]
		  Position		  [265, 26, 295, 59]
		  InputSameDT		  off
		  AccumDataTypeStr	  "uint16"
		  OutDataTypeMode	  "uint16"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^-10"
		  OutDataTypeStr	  "uint16"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  Reference
		  Name			  "Compare\nTo Constant"
		  Ports			  [1, 1]
		  Position		  [340, 28, 390, 62]
		  SourceBlock		  "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
		  SourceType		  "Compare To Constant"
		  ShowPortLabels	  "FromPortIcon"
		  SystemSampleTime	  "-1"
		  FunctionWithSeparateData off
		  RTWMemSecFuncInitTerm	  "Inherit from model"
		  RTWMemSecFuncExecute	  "Inherit from model"
		  RTWMemSecDataConstants  "Inherit from model"
		  RTWMemSecDataInternal	  "Inherit from model"
		  RTWMemSecDataParameters "Inherit from model"
		  relop			  "<"
		  const			  "10"
		  LogicOutDataTypeMode	  "uint8"
		  ZeroCross		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Pointer_to_read1"
		  Position		  [160, 140, 190, 170]
		  NamePlacement		  "alternate"
		  Value			  "0"
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Pointer_to_read2"
		  Position		  [50, 35, 80, 65]
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Saturate
		  Name			  "Saturation"
		  Position		  [315, 120, 345, 150]
		  BlockRotation		  270
		  BlockMirror		  on
		  NamePlacement		  "alternate"
		  UpperLimit		  "12"
		  LowerLimit		  "0"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Switch
		  Name			  "Switch2"
		  Position		  [214, 70, 266, 125]
		  BlockRotation		  270
		  Criteria		  "u2 ~= 0"
		  Threshold		  "900"
		  InputSameDT		  off
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  UnitDelay
		  Name			  "Unit Delay"
		  Position		  [258, 180, 292, 215]
		  BlockRotation		  270
		  X0			  "11"
		  SampleTime		  "-1"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [445, 38, 475, 52]
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "In1"
		  SrcPort		  1
		  DstBlock		  "Switch2"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Add"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    DstBlock		    "Compare\nTo Constant"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 60]
		    DstBlock		    "Saturation"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Switch2"
		  SrcPort		  1
		  Points		  [0, -30]
		  DstBlock		  "Add"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Pointer_to_read2"
		  SrcPort		  1
		  DstBlock		  "Add"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Compare\nTo Constant"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Pointer_to_read1"
		  SrcPort		  1
		  Points		  [30, 0]
		  DstBlock		  "Switch2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Unit Delay"
		  SrcPort		  1
		  Points		  [0, -15; -20, 0]
		  DstBlock		  "Switch2"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Saturation"
		  SrcPort		  1
		  Points		  [0, 75]
		  DstBlock		  "Unit Delay"
		  DstPort		  1
		}
		Annotation {
		  Position		  [46, 55]
		}
		Annotation {
		  Position		  [648, 7]
		}
		Annotation {
		  Position		  [504, 161]
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [235, 48, 265, 62]
	      IconDisplay	      "Port number"
	    }
	    Line {
	      SrcBlock		      "Subsystem4"
	      SrcPort		      1
	      DstBlock		      "Subsystem5"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Subsystem4"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Subsystem5"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [400, 48, 430, 62]
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  "Distance_Filter"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Switch1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Noise_Filter"
	  SrcPort		  1
	  Points		  [20, 0; 0, -130]
	  DstBlock		  "Switch1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Pointer_to_read3"
	  SrcPort		  1
	  Points		  [-35, 0]
	  DstBlock		  "Switch1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Switch1"
	  SrcPort		  1
	  Points		  [0, -65]
	  DstBlock		  "Validity_Filter"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Validity_Filter"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    DstBlock		    "Distance_Filter"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 170]
	    DstBlock		    "Noise_Filter"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Distance_filter_2"
      Ports		      [1, 1]
      Position		      [610, 488, 670, 562]
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"Distance_filter_2"
	Location		[569, 308, 1064, 701]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [15, 73, 45, 87]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Distance_Filter"
	  Ports			  [1, 1]
	  Position		  [85, 50, 125, 110]
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Distance_Filter"
	    Location		    [97, 472, 604, 785]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [225, 150, 255, 165]
	      BlockRotation	      270
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add"
	      Ports		      [2, 1]
	      Position		      [265, 26, 295, 59]
	      InputSameDT	      off
	      AccumDataTypeStr	      "uint16"
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Compare\nTo Constant"
	      Ports		      [1, 1]
	      Position		      [340, 28, 390, 62]
	      SourceBlock	      "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
	      SourceType	      "Compare To Constant"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      relop		      ">"
	      const		      "3"
	      LogicOutDataTypeMode    "uint8"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Pointer_to_read1"
	      Position		      [280, 160, 310, 190]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint8"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Pointer_to_read2"
	      Position		      [50, 35, 80, 65]
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint8"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch2"
	      Position		      [214, 70, 266, 125]
	      BlockRotation	      270
	      Threshold		      "1000"
	      InputSameDT	      off
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay"
	      Position		      [185, 198, 220, 232]
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [445, 38, 475, 52]
	      IconDisplay	      "Port number"
	    }
	    Line {
	      SrcBlock		      "Add"
	      SrcPort		      1
	      Points		      [15, 0]
	      Branch {
		DstBlock		"Compare\nTo Constant"
		DstPort			1
	      }
	      Branch {
		Points			[0, 215; -155, 0; 0, -45]
		DstBlock		"Unit Delay"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Switch2"
	      SrcPort		      1
	      Points		      [0, -30]
	      DstBlock		      "Add"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Pointer_to_read2"
	      SrcPort		      1
	      DstBlock		      "Add"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Compare\nTo Constant"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Switch2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      Points		      [10, 0; 0, -35; -15, 0; 0, -40]
	      DstBlock		      "Switch2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Pointer_to_read1"
	      SrcPort		      1
	      Points		      [0, 20; 65, 0; 0, -55]
	      DstBlock		      "Switch2"
	      DstPort		      3
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Noise_Filter"
	  Ports			  [1, 1]
	  Position		  [80, 220, 120, 280]
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Noise_Filter"
	    Location		    [246, 517, 905, 893]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [40, 103, 70, 117]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add"
	      Ports		      [2, 1]
	      Position		      [175, 101, 205, 134]
	      Inputs		      "+-"
	      InputSameDT	      off
	      AccumDataTypeStr	      "uint16"
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add1"
	      Ports		      [2, 1]
	      Position		      [395, 141, 425, 174]
	      InputSameDT	      off
	      AccumDataTypeStr	      "uint16"
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Compare\nTo Constant"
	      Ports		      [1, 1]
	      Position		      [250, 103, 300, 137]
	      SourceBlock	      "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
	      SourceType	      "Compare To Constant"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      relop		      ">"
	      const		      "300"
	      LogicOutDataTypeMode    "uint8"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Compare\nTo Constant1"
	      Ports		      [1, 1]
	      Position		      [500, 143, 550, 177]
	      SourceBlock	      "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
	      SourceType	      "Compare To Constant"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      relop		      "<"
	      const		      "2"
	      LogicOutDataTypeMode    "uint8"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Memory
	      Name		      "Memory"
	      Position		      [120, 125, 150, 155]
	      InheritSampleTime	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Pointer_to_read1"
	      Position		      [185, 155, 215, 185]
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint8"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Pointer_to_read2"
	      Position		      [510, 245, 540, 275]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint8"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch1"
	      Position		      [400, 219, 455, 271]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      Criteria		      "u2 ~= 0"
	      Threshold		      "1000"
	      InputSameDT	      off
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay"
	      Position		      [340, 228, 375, 262]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out2"
	      Position		      [605, 153, 635, 167]
	      IconDisplay	      "Port number"
	    }
	    Line {
	      SrcBlock		      "Add"
	      SrcPort		      1
	      DstBlock		      "Compare\nTo Constant"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Compare\nTo Constant"
	      SrcPort		      1
	      Points		      [50, 0; 0, 75; 120, 0; 0, 50]
	      DstBlock		      "Switch1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Memory"
	      SrcPort		      1
	      Points		      [0, -15]
	      DstBlock		      "Add"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      Points		      [-10, 0; 0, -80]
	      DstBlock		      "Add1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Switch1"
	      SrcPort		      1
	      DstBlock		      "Unit Delay"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		DstBlock		"Add"
		DstPort			1
	      }
	      Branch {
		Points			[0, 30]
		DstBlock		"Memory"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Compare\nTo Constant1"
	      SrcPort		      1
	      DstBlock		      "Out2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Pointer_to_read1"
	      SrcPort		      1
	      Points		      [95, 0; 0, -20]
	      DstBlock		      "Add1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Add1"
	      SrcPort		      1
	      Points		      [40, 0]
	      Branch {
		DstBlock		"Compare\nTo Constant1"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Switch1"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Pointer_to_read2"
	      SrcPort		      1
	      DstBlock		      "Switch1"
	      DstPort		      3
	    }
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "Pointer_to_read3"
	  Position		  [190, 305, 220, 335]
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  Value			  "0"
	  OutDataTypeMode	  "uint8"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint8"
	  SampleTime		  "0.01"
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch1"
	  Position		  [165, 94, 220, 146]
	  Criteria		  "u2 ~= 0"
	  Threshold		  "1000"
	  InputSameDT		  off
	  OutDataTypeMode	  "uint16"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint16"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Validity_Filter"
	  Ports			  [1, 1]
	  Position		  [285, 25, 325, 85]
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Validity_Filter"
	    Location		    [734, 308, 1024, 420]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 48, 55, 62]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem4"
	      Ports		      [1, 1]
	      Position		      [80, 25, 120, 85]
	      MinAlgLoopOccurrences   off
	      PropExecContextOutsideSubsystem off
	      RTWSystemCode	      "Auto"
	      FunctionWithSeparateData off
	      Opaque		      off
	      RequestExecContextInheritance off
	      MaskHideContents	      off
	      System {
		Name			"Subsystem4"
		Location		[301, 422, 1089, 890]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
		TiledPageScale		1
		ShowPageBoundaries	off
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  Position		  [225, 290, 255, 305]
		  BlockRotation		  270
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Add"
		  Ports			  [2, 1]
		  Position		  [265, 26, 295, 59]
		  InputSameDT		  off
		  AccumDataTypeStr	  "uint16"
		  OutDataTypeMode	  "uint16"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^-10"
		  OutDataTypeStr	  "uint16"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  Reference
		  Name			  "Compare\nTo Constant"
		  Ports			  [1, 1]
		  Position		  [340, 28, 390, 62]
		  SourceBlock		  "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
		  SourceType		  "Compare To Constant"
		  ShowPortLabels	  "FromPortIcon"
		  SystemSampleTime	  "-1"
		  FunctionWithSeparateData off
		  RTWMemSecFuncInitTerm	  "Inherit from model"
		  RTWMemSecFuncExecute	  "Inherit from model"
		  RTWMemSecDataConstants  "Inherit from model"
		  RTWMemSecDataInternal	  "Inherit from model"
		  RTWMemSecDataParameters "Inherit from model"
		  relop			  ">"
		  const			  "3"
		  LogicOutDataTypeMode	  "uint8"
		  ZeroCross		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Pointer_to_read1"
		  Position		  [280, 160, 310, 190]
		  BlockMirror		  on
		  NamePlacement		  "alternate"
		  Value			  "0"
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Pointer_to_read2"
		  Position		  [50, 35, 80, 65]
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Switch
		  Name			  "Switch2"
		  Position		  [214, 70, 266, 125]
		  BlockRotation		  270
		  Criteria		  "u2 ~= 0"
		  Threshold		  "900"
		  InputSameDT		  off
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  UnitDelay
		  Name			  "Unit Delay"
		  Position		  [128, 180, 162, 215]
		  BlockRotation		  270
		  SampleTime		  "-1"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [445, 38, 475, 52]
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "Pointer_to_read1"
		  SrcPort		  1
		  Points		  [0, 20; 65, 0; 0, -55]
		  DstBlock		  "Switch2"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Unit Delay"
		  SrcPort		  1
		  Points		  [0, -35]
		  DstBlock		  "Switch2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Compare\nTo Constant"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Pointer_to_read2"
		  SrcPort		  1
		  DstBlock		  "Add"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Switch2"
		  SrcPort		  1
		  Points		  [0, -30]
		  DstBlock		  "Add"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Add"
		  SrcPort		  1
		  Points		  [15, 0]
		  Branch {
		    Points		    [0, 215; -170, 0]
		    DstBlock		    "Unit Delay"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Compare\nTo Constant"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "In1"
		  SrcPort		  1
		  DstBlock		  "Switch2"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem5"
	      Ports		      [1, 1]
	      Position		      [170, 25, 210, 85]
	      MinAlgLoopOccurrences   off
	      PropExecContextOutsideSubsystem off
	      RTWSystemCode	      "Auto"
	      FunctionWithSeparateData off
	      Opaque		      off
	      RequestExecContextInheritance off
	      MaskHideContents	      off
	      System {
		Name			"Subsystem5"
		Location		[303, 386, 1091, 854]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
		TiledPageScale		1
		ShowPageBoundaries	off
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  Position		  [225, 290, 255, 305]
		  BlockRotation		  270
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Add"
		  Ports			  [2, 1]
		  Position		  [265, 26, 295, 59]
		  InputSameDT		  off
		  AccumDataTypeStr	  "uint16"
		  OutDataTypeMode	  "uint16"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^-10"
		  OutDataTypeStr	  "uint16"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  Reference
		  Name			  "Compare\nTo Constant"
		  Ports			  [1, 1]
		  Position		  [340, 28, 390, 62]
		  SourceBlock		  "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
		  SourceType		  "Compare To Constant"
		  ShowPortLabels	  "FromPortIcon"
		  SystemSampleTime	  "-1"
		  FunctionWithSeparateData off
		  RTWMemSecFuncInitTerm	  "Inherit from model"
		  RTWMemSecFuncExecute	  "Inherit from model"
		  RTWMemSecDataConstants  "Inherit from model"
		  RTWMemSecDataInternal	  "Inherit from model"
		  RTWMemSecDataParameters "Inherit from model"
		  relop			  "<"
		  const			  "10"
		  LogicOutDataTypeMode	  "uint8"
		  ZeroCross		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Pointer_to_read1"
		  Position		  [160, 140, 190, 170]
		  NamePlacement		  "alternate"
		  Value			  "0"
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Pointer_to_read2"
		  Position		  [50, 35, 80, 65]
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Saturate
		  Name			  "Saturation"
		  Position		  [315, 120, 345, 150]
		  BlockRotation		  270
		  BlockMirror		  on
		  NamePlacement		  "alternate"
		  UpperLimit		  "12"
		  LowerLimit		  "0"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Switch
		  Name			  "Switch2"
		  Position		  [214, 70, 266, 125]
		  BlockRotation		  270
		  Criteria		  "u2 ~= 0"
		  Threshold		  "900"
		  InputSameDT		  off
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  UnitDelay
		  Name			  "Unit Delay"
		  Position		  [258, 180, 292, 215]
		  BlockRotation		  270
		  X0			  "11"
		  SampleTime		  "-1"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [445, 38, 475, 52]
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "In1"
		  SrcPort		  1
		  DstBlock		  "Switch2"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Add"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    DstBlock		    "Compare\nTo Constant"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 60]
		    DstBlock		    "Saturation"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Switch2"
		  SrcPort		  1
		  Points		  [0, -30]
		  DstBlock		  "Add"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Pointer_to_read2"
		  SrcPort		  1
		  DstBlock		  "Add"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Compare\nTo Constant"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Pointer_to_read1"
		  SrcPort		  1
		  Points		  [30, 0]
		  DstBlock		  "Switch2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Unit Delay"
		  SrcPort		  1
		  Points		  [0, -15; -20, 0]
		  DstBlock		  "Switch2"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Saturation"
		  SrcPort		  1
		  Points		  [0, 75]
		  DstBlock		  "Unit Delay"
		  DstPort		  1
		}
		Annotation {
		  Position		  [46, 55]
		}
		Annotation {
		  Position		  [648, 7]
		}
		Annotation {
		  Position		  [504, 161]
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [235, 48, 265, 62]
	      IconDisplay	      "Port number"
	    }
	    Line {
	      SrcBlock		      "Subsystem4"
	      SrcPort		      1
	      DstBlock		      "Subsystem5"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Subsystem4"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Subsystem5"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [400, 48, 430, 62]
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  "Distance_Filter"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Switch1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Noise_Filter"
	  SrcPort		  1
	  Points		  [20, 0; 0, -130]
	  DstBlock		  "Switch1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Pointer_to_read3"
	  SrcPort		  1
	  Points		  [-35, 0]
	  DstBlock		  "Switch1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Switch1"
	  SrcPort		  1
	  Points		  [0, -65]
	  DstBlock		  "Validity_Filter"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Validity_Filter"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    DstBlock		    "Distance_Filter"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 170]
	    DstBlock		    "Noise_Filter"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Distance_filter_3"
      Ports		      [1, 1]
      Position		      [610, 603, 670, 677]
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"Distance_filter_3"
	Location		[569, 308, 1064, 701]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [15, 73, 45, 87]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Distance_Filter"
	  Ports			  [1, 1]
	  Position		  [85, 50, 125, 110]
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Distance_Filter"
	    Location		    [97, 472, 604, 785]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [225, 150, 255, 165]
	      BlockRotation	      270
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add"
	      Ports		      [2, 1]
	      Position		      [265, 26, 295, 59]
	      InputSameDT	      off
	      AccumDataTypeStr	      "uint16"
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Compare\nTo Constant"
	      Ports		      [1, 1]
	      Position		      [340, 28, 390, 62]
	      SourceBlock	      "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
	      SourceType	      "Compare To Constant"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      relop		      ">"
	      const		      "3"
	      LogicOutDataTypeMode    "uint8"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Pointer_to_read1"
	      Position		      [280, 160, 310, 190]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint8"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Pointer_to_read2"
	      Position		      [50, 35, 80, 65]
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint8"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch2"
	      Position		      [214, 70, 266, 125]
	      BlockRotation	      270
	      Threshold		      "1000"
	      InputSameDT	      off
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay"
	      Position		      [185, 198, 220, 232]
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [445, 38, 475, 52]
	      IconDisplay	      "Port number"
	    }
	    Line {
	      SrcBlock		      "Pointer_to_read1"
	      SrcPort		      1
	      Points		      [0, 20; 65, 0; 0, -55]
	      DstBlock		      "Switch2"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      Points		      [10, 0; 0, -35; -15, 0; 0, -40]
	      DstBlock		      "Switch2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Switch2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Compare\nTo Constant"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Pointer_to_read2"
	      SrcPort		      1
	      DstBlock		      "Add"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Switch2"
	      SrcPort		      1
	      Points		      [0, -30]
	      DstBlock		      "Add"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Add"
	      SrcPort		      1
	      Points		      [15, 0]
	      Branch {
		Points			[0, 215; -155, 0; 0, -45]
		DstBlock		"Unit Delay"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Compare\nTo Constant"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Noise_Filter"
	  Ports			  [1, 1]
	  Position		  [80, 220, 120, 280]
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Noise_Filter"
	    Location		    [246, 517, 905, 893]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [40, 103, 70, 117]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add"
	      Ports		      [2, 1]
	      Position		      [175, 101, 205, 134]
	      Inputs		      "+-"
	      InputSameDT	      off
	      AccumDataTypeStr	      "uint16"
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add1"
	      Ports		      [2, 1]
	      Position		      [395, 141, 425, 174]
	      InputSameDT	      off
	      AccumDataTypeStr	      "uint16"
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Compare\nTo Constant"
	      Ports		      [1, 1]
	      Position		      [250, 103, 300, 137]
	      SourceBlock	      "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
	      SourceType	      "Compare To Constant"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      relop		      ">"
	      const		      "300"
	      LogicOutDataTypeMode    "uint8"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Compare\nTo Constant1"
	      Ports		      [1, 1]
	      Position		      [500, 143, 550, 177]
	      SourceBlock	      "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
	      SourceType	      "Compare To Constant"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      relop		      "<"
	      const		      "2"
	      LogicOutDataTypeMode    "uint8"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Memory
	      Name		      "Memory"
	      Position		      [120, 125, 150, 155]
	      InheritSampleTime	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Pointer_to_read1"
	      Position		      [185, 155, 215, 185]
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint8"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Pointer_to_read2"
	      Position		      [510, 245, 540, 275]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint8"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch1"
	      Position		      [400, 219, 455, 271]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      Criteria		      "u2 ~= 0"
	      Threshold		      "1000"
	      InputSameDT	      off
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay"
	      Position		      [340, 228, 375, 262]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out2"
	      Position		      [605, 153, 635, 167]
	      IconDisplay	      "Port number"
	    }
	    Line {
	      SrcBlock		      "Pointer_to_read2"
	      SrcPort		      1
	      DstBlock		      "Switch1"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Add1"
	      SrcPort		      1
	      Points		      [40, 0]
	      Branch {
		DstBlock		"Switch1"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Compare\nTo Constant1"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Pointer_to_read1"
	      SrcPort		      1
	      Points		      [95, 0; 0, -20]
	      DstBlock		      "Add1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Compare\nTo Constant1"
	      SrcPort		      1
	      DstBlock		      "Out2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		Points			[0, 30]
		DstBlock		"Memory"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Add"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Switch1"
	      SrcPort		      1
	      DstBlock		      "Unit Delay"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      Points		      [-10, 0; 0, -80]
	      DstBlock		      "Add1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Memory"
	      SrcPort		      1
	      Points		      [0, -15]
	      DstBlock		      "Add"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Compare\nTo Constant"
	      SrcPort		      1
	      Points		      [50, 0; 0, 75; 120, 0; 0, 50]
	      DstBlock		      "Switch1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Add"
	      SrcPort		      1
	      DstBlock		      "Compare\nTo Constant"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "Pointer_to_read3"
	  Position		  [190, 305, 220, 335]
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  Value			  "0"
	  OutDataTypeMode	  "uint8"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint8"
	  SampleTime		  "0.01"
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch1"
	  Position		  [165, 94, 220, 146]
	  Criteria		  "u2 ~= 0"
	  Threshold		  "1000"
	  InputSameDT		  off
	  OutDataTypeMode	  "uint16"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint16"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Validity_Filter"
	  Ports			  [1, 1]
	  Position		  [285, 25, 325, 85]
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Validity_Filter"
	    Location		    [734, 308, 1024, 420]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 48, 55, 62]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem4"
	      Ports		      [1, 1]
	      Position		      [80, 25, 120, 85]
	      MinAlgLoopOccurrences   off
	      PropExecContextOutsideSubsystem off
	      RTWSystemCode	      "Auto"
	      FunctionWithSeparateData off
	      Opaque		      off
	      RequestExecContextInheritance off
	      MaskHideContents	      off
	      System {
		Name			"Subsystem4"
		Location		[301, 422, 1089, 890]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
		TiledPageScale		1
		ShowPageBoundaries	off
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  Position		  [225, 290, 255, 305]
		  BlockRotation		  270
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Add"
		  Ports			  [2, 1]
		  Position		  [265, 26, 295, 59]
		  InputSameDT		  off
		  AccumDataTypeStr	  "uint16"
		  OutDataTypeMode	  "uint16"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^-10"
		  OutDataTypeStr	  "uint16"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  Reference
		  Name			  "Compare\nTo Constant"
		  Ports			  [1, 1]
		  Position		  [340, 28, 390, 62]
		  SourceBlock		  "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
		  SourceType		  "Compare To Constant"
		  ShowPortLabels	  "FromPortIcon"
		  SystemSampleTime	  "-1"
		  FunctionWithSeparateData off
		  RTWMemSecFuncInitTerm	  "Inherit from model"
		  RTWMemSecFuncExecute	  "Inherit from model"
		  RTWMemSecDataConstants  "Inherit from model"
		  RTWMemSecDataInternal	  "Inherit from model"
		  RTWMemSecDataParameters "Inherit from model"
		  relop			  ">"
		  const			  "3"
		  LogicOutDataTypeMode	  "uint8"
		  ZeroCross		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Pointer_to_read1"
		  Position		  [280, 160, 310, 190]
		  BlockMirror		  on
		  NamePlacement		  "alternate"
		  Value			  "0"
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Pointer_to_read2"
		  Position		  [50, 35, 80, 65]
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Switch
		  Name			  "Switch2"
		  Position		  [214, 70, 266, 125]
		  BlockRotation		  270
		  Criteria		  "u2 ~= 0"
		  Threshold		  "900"
		  InputSameDT		  off
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  UnitDelay
		  Name			  "Unit Delay"
		  Position		  [128, 180, 162, 215]
		  BlockRotation		  270
		  SampleTime		  "-1"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [445, 38, 475, 52]
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "In1"
		  SrcPort		  1
		  DstBlock		  "Switch2"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Add"
		  SrcPort		  1
		  Points		  [15, 0]
		  Branch {
		    DstBlock		    "Compare\nTo Constant"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 215; -170, 0]
		    DstBlock		    "Unit Delay"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Switch2"
		  SrcPort		  1
		  Points		  [0, -30]
		  DstBlock		  "Add"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Pointer_to_read2"
		  SrcPort		  1
		  DstBlock		  "Add"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Compare\nTo Constant"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Unit Delay"
		  SrcPort		  1
		  Points		  [0, -35]
		  DstBlock		  "Switch2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Pointer_to_read1"
		  SrcPort		  1
		  Points		  [0, 20; 65, 0; 0, -55]
		  DstBlock		  "Switch2"
		  DstPort		  3
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem5"
	      Ports		      [1, 1]
	      Position		      [170, 25, 210, 85]
	      MinAlgLoopOccurrences   off
	      PropExecContextOutsideSubsystem off
	      RTWSystemCode	      "Auto"
	      FunctionWithSeparateData off
	      Opaque		      off
	      RequestExecContextInheritance off
	      MaskHideContents	      off
	      System {
		Name			"Subsystem5"
		Location		[303, 386, 1091, 854]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
		TiledPageScale		1
		ShowPageBoundaries	off
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  Position		  [225, 290, 255, 305]
		  BlockRotation		  270
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Add"
		  Ports			  [2, 1]
		  Position		  [265, 26, 295, 59]
		  InputSameDT		  off
		  AccumDataTypeStr	  "uint16"
		  OutDataTypeMode	  "uint16"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^-10"
		  OutDataTypeStr	  "uint16"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  Reference
		  Name			  "Compare\nTo Constant"
		  Ports			  [1, 1]
		  Position		  [340, 28, 390, 62]
		  SourceBlock		  "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
		  SourceType		  "Compare To Constant"
		  ShowPortLabels	  "FromPortIcon"
		  SystemSampleTime	  "-1"
		  FunctionWithSeparateData off
		  RTWMemSecFuncInitTerm	  "Inherit from model"
		  RTWMemSecFuncExecute	  "Inherit from model"
		  RTWMemSecDataConstants  "Inherit from model"
		  RTWMemSecDataInternal	  "Inherit from model"
		  RTWMemSecDataParameters "Inherit from model"
		  relop			  "<"
		  const			  "10"
		  LogicOutDataTypeMode	  "uint8"
		  ZeroCross		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Pointer_to_read1"
		  Position		  [160, 140, 190, 170]
		  NamePlacement		  "alternate"
		  Value			  "0"
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Pointer_to_read2"
		  Position		  [50, 35, 80, 65]
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Saturate
		  Name			  "Saturation"
		  Position		  [315, 120, 345, 150]
		  BlockRotation		  270
		  BlockMirror		  on
		  NamePlacement		  "alternate"
		  UpperLimit		  "12"
		  LowerLimit		  "0"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Switch
		  Name			  "Switch2"
		  Position		  [214, 70, 266, 125]
		  BlockRotation		  270
		  Criteria		  "u2 ~= 0"
		  Threshold		  "900"
		  InputSameDT		  off
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  UnitDelay
		  Name			  "Unit Delay"
		  Position		  [258, 180, 292, 215]
		  BlockRotation		  270
		  X0			  "11"
		  SampleTime		  "-1"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [445, 38, 475, 52]
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "Saturation"
		  SrcPort		  1
		  Points		  [0, 75]
		  DstBlock		  "Unit Delay"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Unit Delay"
		  SrcPort		  1
		  Points		  [0, -15; -20, 0]
		  DstBlock		  "Switch2"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Pointer_to_read1"
		  SrcPort		  1
		  Points		  [30, 0]
		  DstBlock		  "Switch2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Compare\nTo Constant"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Pointer_to_read2"
		  SrcPort		  1
		  DstBlock		  "Add"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Switch2"
		  SrcPort		  1
		  Points		  [0, -30]
		  DstBlock		  "Add"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Add"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    Points		    [0, 60]
		    DstBlock		    "Saturation"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Compare\nTo Constant"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "In1"
		  SrcPort		  1
		  DstBlock		  "Switch2"
		  DstPort		  2
		}
		Annotation {
		  Position		  [504, 161]
		}
		Annotation {
		  Position		  [648, 7]
		}
		Annotation {
		  Position		  [46, 55]
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [235, 48, 265, 62]
	      IconDisplay	      "Port number"
	    }
	    Line {
	      SrcBlock		      "Subsystem5"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Subsystem4"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Subsystem4"
	      SrcPort		      1
	      DstBlock		      "Subsystem5"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [400, 48, 430, 62]
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    Points		    [0, 170]
	    DstBlock		    "Noise_Filter"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Distance_Filter"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Validity_Filter"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch1"
	  SrcPort		  1
	  Points		  [0, -65]
	  DstBlock		  "Validity_Filter"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Pointer_to_read3"
	  SrcPort		  1
	  Points		  [-35, 0]
	  DstBlock		  "Switch1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Noise_Filter"
	  SrcPort		  1
	  Points		  [20, 0; 0, -130]
	  DstBlock		  "Switch1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Distance_Filter"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Switch1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Distance_filter_5"
      Ports		      [1, 1]
      Position		      [610, 363, 670, 437]
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"Distance_filter_5"
	Location		[569, 308, 1064, 701]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [15, 73, 45, 87]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Distance_Filter"
	  Ports			  [1, 1]
	  Position		  [85, 50, 125, 110]
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Distance_Filter"
	    Location		    [97, 472, 604, 785]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [225, 150, 255, 165]
	      BlockRotation	      270
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add"
	      Ports		      [2, 1]
	      Position		      [265, 26, 295, 59]
	      InputSameDT	      off
	      AccumDataTypeStr	      "uint16"
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Compare\nTo Constant"
	      Ports		      [1, 1]
	      Position		      [340, 28, 390, 62]
	      SourceBlock	      "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
	      SourceType	      "Compare To Constant"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      relop		      ">"
	      const		      "3"
	      LogicOutDataTypeMode    "uint8"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Pointer_to_read1"
	      Position		      [280, 160, 310, 190]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint8"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Pointer_to_read2"
	      Position		      [50, 35, 80, 65]
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint8"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch2"
	      Position		      [214, 70, 266, 125]
	      BlockRotation	      270
	      Threshold		      "1000"
	      InputSameDT	      off
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay"
	      Position		      [185, 198, 220, 232]
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [445, 38, 475, 52]
	      IconDisplay	      "Port number"
	    }
	    Line {
	      SrcBlock		      "Pointer_to_read1"
	      SrcPort		      1
	      Points		      [0, 20; 65, 0; 0, -55]
	      DstBlock		      "Switch2"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      Points		      [10, 0; 0, -35; -15, 0; 0, -40]
	      DstBlock		      "Switch2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Switch2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Compare\nTo Constant"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Pointer_to_read2"
	      SrcPort		      1
	      DstBlock		      "Add"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Switch2"
	      SrcPort		      1
	      Points		      [0, -30]
	      DstBlock		      "Add"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Add"
	      SrcPort		      1
	      Points		      [15, 0]
	      Branch {
		Points			[0, 215; -155, 0; 0, -45]
		DstBlock		"Unit Delay"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Compare\nTo Constant"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Noise_Filter"
	  Ports			  [1, 1]
	  Position		  [80, 220, 120, 280]
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Noise_Filter"
	    Location		    [246, 517, 905, 893]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [40, 103, 70, 117]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add"
	      Ports		      [2, 1]
	      Position		      [175, 101, 205, 134]
	      Inputs		      "+-"
	      InputSameDT	      off
	      AccumDataTypeStr	      "uint16"
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add1"
	      Ports		      [2, 1]
	      Position		      [395, 141, 425, 174]
	      InputSameDT	      off
	      AccumDataTypeStr	      "uint16"
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Compare\nTo Constant"
	      Ports		      [1, 1]
	      Position		      [250, 103, 300, 137]
	      SourceBlock	      "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
	      SourceType	      "Compare To Constant"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      relop		      ">"
	      const		      "300"
	      LogicOutDataTypeMode    "uint8"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Compare\nTo Constant1"
	      Ports		      [1, 1]
	      Position		      [500, 143, 550, 177]
	      SourceBlock	      "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
	      SourceType	      "Compare To Constant"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      relop		      "<"
	      const		      "2"
	      LogicOutDataTypeMode    "uint8"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Memory
	      Name		      "Memory"
	      Position		      [120, 125, 150, 155]
	      InheritSampleTime	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Pointer_to_read1"
	      Position		      [185, 155, 215, 185]
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint8"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Pointer_to_read2"
	      Position		      [510, 245, 540, 275]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      Value		      "0"
	      OutDataTypeMode	      "uint8"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint8"
	      SampleTime	      "0.01"
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch1"
	      Position		      [400, 219, 455, 271]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      Criteria		      "u2 ~= 0"
	      Threshold		      "1000"
	      InputSameDT	      off
	      OutDataTypeMode	      "uint16"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "uint16"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay"
	      Position		      [340, 228, 375, 262]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out2"
	      Position		      [605, 153, 635, 167]
	      IconDisplay	      "Port number"
	    }
	    Line {
	      SrcBlock		      "Pointer_to_read2"
	      SrcPort		      1
	      DstBlock		      "Switch1"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Add1"
	      SrcPort		      1
	      Points		      [40, 0]
	      Branch {
		DstBlock		"Switch1"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Compare\nTo Constant1"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Pointer_to_read1"
	      SrcPort		      1
	      Points		      [95, 0; 0, -20]
	      DstBlock		      "Add1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Compare\nTo Constant1"
	      SrcPort		      1
	      DstBlock		      "Out2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		Points			[0, 30]
		DstBlock		"Memory"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Add"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Switch1"
	      SrcPort		      1
	      DstBlock		      "Unit Delay"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      Points		      [-10, 0; 0, -80]
	      DstBlock		      "Add1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Memory"
	      SrcPort		      1
	      Points		      [0, -15]
	      DstBlock		      "Add"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Compare\nTo Constant"
	      SrcPort		      1
	      Points		      [50, 0; 0, 75; 120, 0; 0, 50]
	      DstBlock		      "Switch1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Add"
	      SrcPort		      1
	      DstBlock		      "Compare\nTo Constant"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "Pointer_to_read3"
	  Position		  [190, 305, 220, 335]
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  Value			  "0"
	  OutDataTypeMode	  "uint8"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint8"
	  SampleTime		  "0.01"
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch1"
	  Position		  [165, 94, 220, 146]
	  Criteria		  "u2 ~= 0"
	  Threshold		  "1000"
	  InputSameDT		  off
	  OutDataTypeMode	  "uint16"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint16"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Validity_Filter"
	  Ports			  [1, 1]
	  Position		  [285, 25, 325, 85]
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Validity_Filter"
	    Location		    [734, 308, 1024, 420]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 48, 55, 62]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem4"
	      Ports		      [1, 1]
	      Position		      [80, 25, 120, 85]
	      MinAlgLoopOccurrences   off
	      PropExecContextOutsideSubsystem off
	      RTWSystemCode	      "Auto"
	      FunctionWithSeparateData off
	      Opaque		      off
	      RequestExecContextInheritance off
	      MaskHideContents	      off
	      System {
		Name			"Subsystem4"
		Location		[301, 422, 1089, 890]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
		TiledPageScale		1
		ShowPageBoundaries	off
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  Position		  [225, 290, 255, 305]
		  BlockRotation		  270
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Add"
		  Ports			  [2, 1]
		  Position		  [265, 26, 295, 59]
		  InputSameDT		  off
		  AccumDataTypeStr	  "uint16"
		  OutDataTypeMode	  "uint16"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^-10"
		  OutDataTypeStr	  "uint16"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  Reference
		  Name			  "Compare\nTo Constant"
		  Ports			  [1, 1]
		  Position		  [340, 28, 390, 62]
		  SourceBlock		  "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
		  SourceType		  "Compare To Constant"
		  ShowPortLabels	  "FromPortIcon"
		  SystemSampleTime	  "-1"
		  FunctionWithSeparateData off
		  RTWMemSecFuncInitTerm	  "Inherit from model"
		  RTWMemSecFuncExecute	  "Inherit from model"
		  RTWMemSecDataConstants  "Inherit from model"
		  RTWMemSecDataInternal	  "Inherit from model"
		  RTWMemSecDataParameters "Inherit from model"
		  relop			  ">"
		  const			  "3"
		  LogicOutDataTypeMode	  "uint8"
		  ZeroCross		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Pointer_to_read1"
		  Position		  [280, 160, 310, 190]
		  BlockMirror		  on
		  NamePlacement		  "alternate"
		  Value			  "0"
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Pointer_to_read2"
		  Position		  [50, 35, 80, 65]
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Switch
		  Name			  "Switch2"
		  Position		  [214, 70, 266, 125]
		  BlockRotation		  270
		  Criteria		  "u2 ~= 0"
		  Threshold		  "900"
		  InputSameDT		  off
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  UnitDelay
		  Name			  "Unit Delay"
		  Position		  [128, 180, 162, 215]
		  BlockRotation		  270
		  SampleTime		  "-1"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [445, 38, 475, 52]
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "In1"
		  SrcPort		  1
		  DstBlock		  "Switch2"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Add"
		  SrcPort		  1
		  Points		  [15, 0]
		  Branch {
		    DstBlock		    "Compare\nTo Constant"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 215; -170, 0]
		    DstBlock		    "Unit Delay"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Switch2"
		  SrcPort		  1
		  Points		  [0, -30]
		  DstBlock		  "Add"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Pointer_to_read2"
		  SrcPort		  1
		  DstBlock		  "Add"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Compare\nTo Constant"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Unit Delay"
		  SrcPort		  1
		  Points		  [0, -35]
		  DstBlock		  "Switch2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Pointer_to_read1"
		  SrcPort		  1
		  Points		  [0, 20; 65, 0; 0, -55]
		  DstBlock		  "Switch2"
		  DstPort		  3
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem5"
	      Ports		      [1, 1]
	      Position		      [170, 25, 210, 85]
	      MinAlgLoopOccurrences   off
	      PropExecContextOutsideSubsystem off
	      RTWSystemCode	      "Auto"
	      FunctionWithSeparateData off
	      Opaque		      off
	      RequestExecContextInheritance off
	      MaskHideContents	      off
	      System {
		Name			"Subsystem5"
		Location		[303, 386, 1091, 854]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
		TiledPageScale		1
		ShowPageBoundaries	off
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  Position		  [225, 290, 255, 305]
		  BlockRotation		  270
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Add"
		  Ports			  [2, 1]
		  Position		  [265, 26, 295, 59]
		  InputSameDT		  off
		  AccumDataTypeStr	  "uint16"
		  OutDataTypeMode	  "uint16"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^-10"
		  OutDataTypeStr	  "uint16"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  Reference
		  Name			  "Compare\nTo Constant"
		  Ports			  [1, 1]
		  Position		  [340, 28, 390, 62]
		  SourceBlock		  "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
		  SourceType		  "Compare To Constant"
		  ShowPortLabels	  "FromPortIcon"
		  SystemSampleTime	  "-1"
		  FunctionWithSeparateData off
		  RTWMemSecFuncInitTerm	  "Inherit from model"
		  RTWMemSecFuncExecute	  "Inherit from model"
		  RTWMemSecDataConstants  "Inherit from model"
		  RTWMemSecDataInternal	  "Inherit from model"
		  RTWMemSecDataParameters "Inherit from model"
		  relop			  "<"
		  const			  "10"
		  LogicOutDataTypeMode	  "uint8"
		  ZeroCross		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Pointer_to_read1"
		  Position		  [160, 140, 190, 170]
		  NamePlacement		  "alternate"
		  Value			  "0"
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Pointer_to_read2"
		  Position		  [50, 35, 80, 65]
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SampleTime		  "0.01"
		}
		Block {
		  BlockType		  Saturate
		  Name			  "Saturation"
		  Position		  [315, 120, 345, 150]
		  BlockRotation		  270
		  BlockMirror		  on
		  NamePlacement		  "alternate"
		  UpperLimit		  "12"
		  LowerLimit		  "0"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Switch
		  Name			  "Switch2"
		  Position		  [214, 70, 266, 125]
		  BlockRotation		  270
		  Criteria		  "u2 ~= 0"
		  Threshold		  "900"
		  InputSameDT		  off
		  OutDataTypeMode	  "uint8"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		  OutDataTypeStr	  "uint8"
		  SaturateOnIntegerOverflow off
		}
		Block {
		  BlockType		  UnitDelay
		  Name			  "Unit Delay"
		  Position		  [258, 180, 292, 215]
		  BlockRotation		  270
		  X0			  "11"
		  SampleTime		  "-1"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [445, 38, 475, 52]
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "Saturation"
		  SrcPort		  1
		  Points		  [0, 75]
		  DstBlock		  "Unit Delay"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Unit Delay"
		  SrcPort		  1
		  Points		  [0, -15; -20, 0]
		  DstBlock		  "Switch2"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Pointer_to_read1"
		  SrcPort		  1
		  Points		  [30, 0]
		  DstBlock		  "Switch2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Compare\nTo Constant"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Pointer_to_read2"
		  SrcPort		  1
		  DstBlock		  "Add"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Switch2"
		  SrcPort		  1
		  Points		  [0, -30]
		  DstBlock		  "Add"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Add"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    Points		    [0, 60]
		    DstBlock		    "Saturation"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Compare\nTo Constant"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "In1"
		  SrcPort		  1
		  DstBlock		  "Switch2"
		  DstPort		  2
		}
		Annotation {
		  Position		  [504, 161]
		}
		Annotation {
		  Position		  [648, 7]
		}
		Annotation {
		  Position		  [46, 55]
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [235, 48, 265, 62]
	      IconDisplay	      "Port number"
	    }
	    Line {
	      SrcBlock		      "Subsystem5"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Subsystem4"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Subsystem4"
	      SrcPort		      1
	      DstBlock		      "Subsystem5"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [400, 48, 430, 62]
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    Points		    [0, 170]
	    DstBlock		    "Noise_Filter"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Distance_Filter"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Validity_Filter"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch1"
	  SrcPort		  1
	  Points		  [0, -65]
	  DstBlock		  "Validity_Filter"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Pointer_to_read3"
	  SrcPort		  1
	  Points		  [-35, 0]
	  DstBlock		  "Switch1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Noise_Filter"
	  SrcPort		  1
	  Points		  [20, 0; 0, -130]
	  DstBlock		  "Switch1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Distance_Filter"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Switch1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "I2C_Initialization"
      Tag		      "dsPIC_dsPIC_CFunctionCall"
      Ports		      []
      Position		      [90, 100, 215, 140]
      List {
	ListType		RTWdata
	FctDeclaration		"extern void InitI2C();"
	FctCall			"InitI2C();"
	fctName			"InitI2C"
	INPUT_SIZE		"1"
	OUTPUT_SIZE		"1"
	NBR_INPUT		"0"
	NBR_OUTPUT		"0"
      }
      SourceBlock	      "dsPICdrivers/OTHERS/C Function Call"
      SourceType	      "C Function Call"
      fctName		      "'InitI2C'"
      INPUT_SIZE	      "1"
      INPUT1		      "--"
      INPUT2		      "--"
      INPUT3		      "--"
      OUTPUT_SIZE	      "1"
      OUTPUT1		      "--"
      SampleTime	      "inf"
      InputType		      "[ ]"
      OutputType	      "[ ]"
      FctDeclaration	      "extern void InitI2C();"
      FctCall		      "InitI2C();"
      OrderingInOutPopup      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "Master"
      Tag		      "dsPIC_MASTER"
      Ports		      []
      Position		      [240, 12, 349, 63]
      BackgroundColor	      "lightBlue"
      Priority		      "1"
      List {
	ListType		RTWdata
	NumBusyPort		"-1"
      }
      SourceBlock	      "dsPICdrivers/Master"
      SourceType	      "Master"
      TimeStepType	      "Timer1"
      picType		      "33fj128MC804"
      fcy		      "20000000"
      Quartz_33f	      "20e6"
      PLLActive_33f	      on
      fcyDesired_33f	      "20000000"
      tmr1		      "[1  19999  0]"
      tmr1Info		      "Time Step : 0.001  ;   Error : 0%  PR1=19999"
      tmr2345		      "[0  0  0  0]"
      tmr2345cfg	      "[-1 -1 -1 -1]"
      IOautoConf	      on
      typePort		      "[ 0   0   0   0   0   0   0   0  10   0   0   0   0   0   0   0   0   0   0   0  23   0   0   0"
      "   0   0   0   0   0   0   0   0   0   0  22   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   0   0   0   0   0   0   0   0   0   0"
      "   0   0   0   0 ]"
      TRIS		      "[ 65279  65519  65535  65535  65535  65535  65535 ]"
      ADPCFG		      "256"
      MasterBusyPort	      "None"
      MasterOverloadPort      "None"
      FOSC		      "Quartz (XT - HS)"
      ClockSwitchMonitor      "Both disabled"
      TempProtection_33f      "TEMP_ON"
      FPBOR		      "<empty>"
      PWRT		      "64ms"
      MCLR		      "<empty>"
      ICD		      "ICS_NONE"
      JTAGEN		      "JTAGEN_OFF"
      PowerSave		      off
      OverrideFcy	      off
      NewFcy		      "1e6"
      PR2345		      "[65535  65535  65535  65535]"
    }
    Block {
      BlockType		      Reference
      Name		      "Op controlLED"
      Tag		      "dsPIC_Digital_Output"
      Ports		      [1]
      Position		      [165, 730, 280, 770]
      Priority		      "5"
      SourceBlock	      "dsPICdrivers/Digital I//O/Digital Output Write"
      SourceType	      ""
      PORT		      "A"
      Pin		      "[8]"
      Simultaneous	      off
      OrderingInOutPopup      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "PIN Mapping"
      Tag		      "dsPIC_PIN_Mapping"
      Ports		      []
      Position		      [500, 20, 600, 70]
      List {
	ListType		RTWdata
	RPINR0			"65280"
	RPINR1			"255"
	RPINR3			"65535"
	RPINR4			"65535"
	RPINR7			"65535"
	RPINR10			"65535"
	RPINR11			"255"
	RPINR12			"255"
	RPINR13			"255"
	RPINR14			"65535"
	RPINR15			"255"
	RPINR16			"65535"
	RPINR17			"255"
	RPINR18			"65298"
	RPINR19			"65535"
	RPINR20			"65535"
	RPINR21			"255"
	RPINR22			"65535"
	RPINR23			"255"
	RPINR26			"255"
	RPOR0			"65535"
	RPOR1			"65535"
	RPOR2			"65283"
	RPOR3			"65535"
	RPOR4			"65535"
	RPOR5			"65535"
	RPOR6			"65535"
	RPOR7			"65535"
	RPOR8			"65535"
	RPOR9			"65535"
	RPOR10			"65535"
	RPOR11			"65535"
	RPOR12			"65535"
      }
      SourceBlock	      "dsPICdrivers/Peripheral MAPPING/PIN Mapping"
      SourceType	      "Peripheral PIN Mapping"
      in_INT1		      "Not tied (VSS)"
      in_INT2		      "Not tied (VSS)"
      in_T2CK		      "Not tied (VSS)"
      in_T3CK		      "Not tied (VSS)"
      in_T4CK		      "Not tied (VSS)"
      in_T5CK		      "Not tied (VSS)"
      in_IC1		      "Not tied (VSS)"
      in_IC2		      "Not tied (VSS)"
      in_IC7		      "Not tied (VSS)"
      in_IC8		      "Not tied (VSS)"
      out_OC1		      "Not changed"
      out_OC2		      "Not changed"
      out_OC3		      "Not changed"
      out_OC4		      "Not changed"
      in_OCFA		      "Not tied (VSS)"
      in_FLTA1		      "Not tied (VSS)"
      in_FLTA2		      "Not tied (VSS)"
      in_QEA1		      "Not changed"
      in_QEB1		      "Not changed"
      in_INDX1		      "Not tied (VSS)"
      out_UPDN1		      "Not changed"
      out_UPDN2		      "Not changed"
      in_QEA2		      "Not changed"
      in_QEB2		      "Not changed"
      in_INDX2		      "Not tied (VSS)"
      in_U1RX		      "tied to RP18"
      out_U1TX		      "tied to RP4"
      in_U1CTS		      "Not tied (VSS)"
      out_U1RTS		      "Not changed"
      in_U2RX		      "Not changed"
      out_U2TX		      "Not changed"
      in_U2CTS		      "Not tied (VSS)"
      out_U2RTS		      "Not changed"
      in_SDI1		      "Not changed"
      out_SDO1		      "Not changed"
      in_SCK1		      "Not changed"
      out_SCK1OUT	      "Not changed"
      in_SS1		      "Not tied (VSS)"
      out_SS1OUT	      "Not changed"
      in_SDI2		      "Not tied (VSS)"
      out_SDO2		      "Not changed"
      in_SCK2		      "Not tied (VSS)"
      out_SCK2OUT	      "Not changed"
      in_SS2		      "Not tied (VSS)"
      out_SS2OUT	      "Not changed"
      in_C1RX		      "Not tied (VSS)"
      out_C1TX		      "Not changed"
      out_C1OUT		      "Not changed"
      out_C2OUT		      "Not changed"
    }
    Block {
      BlockType		      Constant
      Name		      "Pointer_to_read"
      Position		      [210, 160, 240, 190]
      Value		      "144"
      OutDataTypeMode	      "uint8"
      OutDataType	      "fixdt(1, 16)"
      OutScaling	      "2^0"
      OutDataTypeStr	      "uint8"
    }
    Block {
      BlockType		      Constant
      Name		      "Pointer_to_read1"
      Position		      [205, 440, 235, 470]
      Value		      "146"
      OutDataTypeMode	      "uint8"
      OutDataType	      "fixdt(1, 16)"
      OutScaling	      "2^0"
      OutDataTypeStr	      "uint8"
    }
    Block {
      BlockType		      DiscretePulseGenerator
      Name		      "Pulse\nGenerator4"
      Ports		      [0, 1]
      Position		      [15, 733, 60, 767]
      ShowName		      off
      Amplitude		      "1"
      Period		      "100"
      PulseWidth	      "50"
      PhaseDelay	      "0"
      SampleTime	      "0.01"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem"
      Ports		      [1, 1]
      Position		      [335, 131, 420, 219]
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"Subsystem"
	Location		[19, 379, 1223, 711]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Address"
	  Position		  [130, 78, 160, 92]
	  IconDisplay		  "Port number"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Config_slave"
	  Tag			  "dsPIC_dsPIC_CFunctionCall"
	  Ports			  [3, 1]
	  Position		  [220, 141, 365, 199]
	  List {
	    ListType		    RTWdata
	    FctDeclaration	    "extern void LD_two_bytes_config_I2C(uint8_T u1, uint8_T u2, uint8_T u3);"
	    FctCall		    "LD_two_bytes_config_I2C(%u1, %u2, %u3);"
	    fctName		    "LD_two_bytes_config_I2C"
	    INPUT_SIZE		    "1"
	    OUTPUT_SIZE		    "1"
	    NBR_INPUT		    "3"
	    NBR_OUTPUT		    "0"
	  }
	  SourceBlock		  "dsPICdrivers/OTHERS/C Function Call"
	  SourceType		  "C Function Call"
	  fctName		  "'LD_two_bytes_config_I2C'"
	  INPUT_SIZE		  "1"
	  INPUT1		  "uint8"
	  INPUT2		  "uint8"
	  INPUT3		  "uint8"
	  OUTPUT_SIZE		  "1"
	  OUTPUT1		  "--"
	  SampleTime		  "0.01"
	  InputType		  "[ 2 2 2 ]"
	  OutputType		  "[ ]"
	  FctDeclaration	  "extern void LD_two_bytes_config_I2C(uint8_T u1, uint8_T u2, uint8_T u3);"
	  FctCall		  "LD_two_bytes_config_I2C(%u1, %u2, %u3);"
	  OrderingInOutPopup	  "Output"
	}
	Block {
	  BlockType		  DataStoreWrite
	  Name			  "Data Store\nWrite"
	  Position		  [1055, 115, 1120, 185]
	  DataStoreName		  "distance_1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Init_reading"
	  Tag			  "dsPIC_dsPIC_CFunctionCall"
	  Ports			  [3, 1]
	  Position		  [440, 130, 565, 170]
	  List {
	    ListType		    RTWdata
	    FctDeclaration	    "extern void LD_prepare_read_I2C(uint8_T u1, uint8_T u2);"
	    FctCall		    "LD_prepare_read_I2C(%u1, %u2);"
	    fctName		    "LD_prepare_read_I2C"
	    INPUT_SIZE		    "1"
	    OUTPUT_SIZE		    "1"
	    NBR_INPUT		    "2"
	    NBR_OUTPUT		    "0"
	  }
	  SourceBlock		  "dsPICdrivers/OTHERS/C Function Call"
	  SourceType		  "C Function Call"
	  fctName		  "'LD_prepare_read_I2C'"
	  INPUT_SIZE		  "1"
	  INPUT1		  "uint8"
	  INPUT2		  "uint8"
	  INPUT3		  "--"
	  OUTPUT_SIZE		  "1"
	  OUTPUT1		  "--"
	  SampleTime		  "0.01"
	  InputType		  "[ 2 2 ]"
	  OutputType		  "[ ]"
	  FctDeclaration	  "extern void LD_prepare_read_I2C(uint8_T u1, uint8_T u2);"
	  FctCall		  "LD_prepare_read_I2C(%u1, %u2);"
	  OrderingInOutPopup	  "Input & Output"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Pointer_to_read"
	  Position		  [315, 75, 345, 105]
	  Value			  "0"
	  OutDataTypeMode	  "uint8"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint8"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Pointer_to_read3"
	  Position		  [130, 155, 160, 185]
	  Value			  "70"
	  OutDataTypeMode	  "uint8"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint8"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Pointer_to_read4"
	  Position		  [130, 220, 160, 250]
	  Value			  "131"
	  OutDataTypeMode	  "uint8"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint8"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Reading"
	  Tag			  "dsPIC_dsPIC_CFunctionCall"
	  Ports			  [1, 1]
	  Position		  [610, 130, 735, 170]
	  List {
	    ListType		    RTWdata
	    FctDeclaration	    "extern void two_bytes_read_I2C();"
	    FctCall		    "two_bytes_read_I2C();"
	    fctName		    "two_bytes_read_I2C"
	    INPUT_SIZE		    "1"
	    OUTPUT_SIZE		    "1"
	    NBR_INPUT		    "0"
	    NBR_OUTPUT		    "0"
	  }
	  SourceBlock		  "dsPICdrivers/OTHERS/C Function Call"
	  SourceType		  "C Function Call"
	  fctName		  "'two_bytes_read_I2C'"
	  INPUT_SIZE		  "1"
	  INPUT1		  "--"
	  INPUT2		  "--"
	  INPUT3		  "--"
	  OUTPUT_SIZE		  "1"
	  OUTPUT1		  "--"
	  SampleTime		  "0.01"
	  InputType		  "[ ]"
	  OutputType		  "[ ]"
	  FctDeclaration	  "extern void two_bytes_read_I2C();"
	  FctCall		  "two_bytes_read_I2C();"
	  OrderingInOutPopup	  "Input & Output"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Sending_information"
	  Tag			  "dsPIC_dsPIC_CFunctionCall"
	  Ports			  [1, 2]
	  Position		  [765, 130, 890, 170]
	  List {
	    ListType		    RTWdata
	    FctDeclaration	    "extern uint16_T recieve_I2C();"
	    FctCall		    "%y1 = recieve_I2C();"
	    fctName		    "recieve_I2C"
	    INPUT_SIZE		    "1"
	    OUTPUT_SIZE		    "1"
	    NBR_INPUT		    "0"
	    NBR_OUTPUT		    "1"
	  }
	  SourceBlock		  "dsPICdrivers/OTHERS/C Function Call"
	  SourceType		  "C Function Call"
	  fctName		  "'recieve_I2C'"
	  INPUT_SIZE		  "1"
	  INPUT1		  "--"
	  INPUT2		  "--"
	  INPUT3		  "--"
	  OUTPUT_SIZE		  "1"
	  OUTPUT1		  "uint16"
	  SampleTime		  "0.01"
	  InputType		  "[ ]"
	  OutputType		  "[ 4 ]"
	  FctDeclaration	  "extern uint16_T recieve_I2C();"
	  FctCall		  "%y1 = recieve_I2C();"
	  OrderingInOutPopup	  "Input & Output"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Shift\nArithmetic"
	  Ports			  [1, 1]
	  Position		  [945, 130, 1025, 170]
	  SourceBlock		  "simulink/Logic and Bit\nOperations/Shift\nArithmetic"
	  SourceType		  "Shift Arithmetic"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  nBitShiftRight	  "4"
	  nBinPtShiftRight	  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Ordering"
	  Position		  [1145, 143, 1175, 157]
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  "Reading"
	  SrcPort		  1
	  DstBlock		  "Sending_information"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Init_reading"
	  SrcPort		  1
	  DstBlock		  "Reading"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Config_slave"
	  SrcPort		  1
	  Points		  [55, 0]
	  DstBlock		  "Init_reading"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Pointer_to_read"
	  SrcPort		  1
	  Points		  [45, 0; 0, 60]
	  DstBlock		  "Init_reading"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Pointer_to_read3"
	  SrcPort		  1
	  DstBlock		  "Config_slave"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Pointer_to_read4"
	  SrcPort		  1
	  Points		  [40, 0]
	  DstBlock		  "Config_slave"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Address"
	  SrcPort		  1
	  Points		  [30, 0]
	  Branch {
	    Points		    [90, 0; 0, -35; 140, 0]
	    DstBlock		    "Init_reading"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 65]
	    DstBlock		    "Config_slave"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Sending_information"
	  SrcPort		  1
	  Points		  [0, 10]
	  DstBlock		  "Shift\nArithmetic"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sending_information"
	  SrcPort		  2
	  Points		  [45, 0; 0, 55; 190, 0]
	  DstBlock		  "Ordering"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Shift\nArithmetic"
	  SrcPort		  1
	  DstBlock		  "Data Store\nWrite"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem1"
      Ports		      [2, 1]
      Position		      [335, 258, 420, 347]
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"Subsystem1"
	Location		[-48, 478, 1096, 810]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Address"
	  Position		  [115, 78, 145, 92]
	  IconDisplay		  "Port number"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Ordering"
	  Position		  [65, 193, 95, 207]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Config_slave"
	  Tag			  "dsPIC_dsPIC_CFunctionCall"
	  Ports			  [4, 1]
	  Position		  [220, 139, 365, 196]
	  List {
	    ListType		    RTWdata
	    FctDeclaration	    "extern void LD_two_bytes_config_I2C(uint8_T u1, uint8_T u2, uint8_T u3);"
	    FctCall		    "LD_two_bytes_config_I2C(%u1, %u2, %u3);"
	    fctName		    "LD_two_bytes_config_I2C"
	    INPUT_SIZE		    "1"
	    OUTPUT_SIZE		    "1"
	    NBR_INPUT		    "3"
	    NBR_OUTPUT		    "0"
	  }
	  SourceBlock		  "dsPICdrivers/OTHERS/C Function Call"
	  SourceType		  "C Function Call"
	  fctName		  "'LD_two_bytes_config_I2C'"
	  INPUT_SIZE		  "1"
	  INPUT1		  "uint8"
	  INPUT2		  "uint8"
	  INPUT3		  "uint8"
	  OUTPUT_SIZE		  "1"
	  OUTPUT1		  "--"
	  SampleTime		  "0.01"
	  InputType		  "[ 2 2 2 ]"
	  OutputType		  "[ ]"
	  FctDeclaration	  "extern void LD_two_bytes_config_I2C(uint8_T u1, uint8_T u2, uint8_T u3);"
	  FctCall		  "LD_two_bytes_config_I2C(%u1, %u2, %u3);"
	  OrderingInOutPopup	  "Input & Output"
	}
	Block {
	  BlockType		  DataStoreWrite
	  Name			  "Data Store\nWrite"
	  Position		  [1070, 115, 1135, 185]
	  DataStoreName		  "distance_2"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Init_reading"
	  Tag			  "dsPIC_dsPIC_CFunctionCall"
	  Ports			  [3, 1]
	  Position		  [440, 135, 565, 175]
	  List {
	    ListType		    RTWdata
	    FctDeclaration	    "extern void LD_prepare_read_I2C(uint8_T u1, uint8_T u2);"
	    FctCall		    "LD_prepare_read_I2C(%u1, %u2);"
	    fctName		    "LD_prepare_read_I2C"
	    INPUT_SIZE		    "1"
	    OUTPUT_SIZE		    "1"
	    NBR_INPUT		    "2"
	    NBR_OUTPUT		    "0"
	  }
	  SourceBlock		  "dsPICdrivers/OTHERS/C Function Call"
	  SourceType		  "C Function Call"
	  fctName		  "'LD_prepare_read_I2C'"
	  INPUT_SIZE		  "1"
	  INPUT1		  "uint8"
	  INPUT2		  "uint8"
	  INPUT3		  "--"
	  OUTPUT_SIZE		  "1"
	  OUTPUT1		  "--"
	  SampleTime		  "0.01"
	  InputType		  "[ 2 2 ]"
	  OutputType		  "[ ]"
	  FctDeclaration	  "extern void LD_prepare_read_I2C(uint8_T u1, uint8_T u2);"
	  FctCall		  "LD_prepare_read_I2C(%u1, %u2);"
	  OrderingInOutPopup	  "Input & Output"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Pointer_to_read"
	  Position		  [315, 75, 345, 105]
	  Value			  "0"
	  OutDataTypeMode	  "uint8"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint8"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Pointer_to_read3"
	  Position		  [130, 150, 160, 180]
	  Value			  "86"
	  OutDataTypeMode	  "uint8"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint8"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Pointer_to_read4"
	  Position		  [130, 220, 160, 250]
	  Value			  "131"
	  OutDataTypeMode	  "uint8"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint8"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Reading"
	  Tag			  "dsPIC_dsPIC_CFunctionCall"
	  Ports			  [1, 1]
	  Position		  [610, 130, 735, 170]
	  List {
	    ListType		    RTWdata
	    FctDeclaration	    "extern void two_bytes_read_I2C();"
	    FctCall		    "two_bytes_read_I2C();"
	    fctName		    "two_bytes_read_I2C"
	    INPUT_SIZE		    "1"
	    OUTPUT_SIZE		    "1"
	    NBR_INPUT		    "0"
	    NBR_OUTPUT		    "0"
	  }
	  SourceBlock		  "dsPICdrivers/OTHERS/C Function Call"
	  SourceType		  "C Function Call"
	  fctName		  "'two_bytes_read_I2C'"
	  INPUT_SIZE		  "1"
	  INPUT1		  "--"
	  INPUT2		  "--"
	  INPUT3		  "--"
	  OUTPUT_SIZE		  "1"
	  OUTPUT1		  "--"
	  SampleTime		  "0.01"
	  InputType		  "[ ]"
	  OutputType		  "[ ]"
	  FctDeclaration	  "extern void two_bytes_read_I2C();"
	  FctCall		  "two_bytes_read_I2C();"
	  OrderingInOutPopup	  "Input & Output"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Sending_information"
	  Tag			  "dsPIC_dsPIC_CFunctionCall"
	  Ports			  [1, 2]
	  Position		  [775, 130, 900, 170]
	  List {
	    ListType		    RTWdata
	    FctDeclaration	    "extern uint16_T recieve_I2C();"
	    FctCall		    "%y1 = recieve_I2C();"
	    fctName		    "recieve_I2C"
	    INPUT_SIZE		    "1"
	    OUTPUT_SIZE		    "1"
	    NBR_INPUT		    "0"
	    NBR_OUTPUT		    "1"
	  }
	  SourceBlock		  "dsPICdrivers/OTHERS/C Function Call"
	  SourceType		  "C Function Call"
	  fctName		  "'recieve_I2C'"
	  INPUT_SIZE		  "1"
	  INPUT1		  "--"
	  INPUT2		  "--"
	  INPUT3		  "--"
	  OUTPUT_SIZE		  "1"
	  OUTPUT1		  "uint16"
	  SampleTime		  "0.01"
	  InputType		  "[ ]"
	  OutputType		  "[ 4 ]"
	  FctDeclaration	  "extern uint16_T recieve_I2C();"
	  FctCall		  "%y1 = recieve_I2C();"
	  OrderingInOutPopup	  "Input & Output"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Shift\nArithmetic"
	  Ports			  [1, 1]
	  Position		  [945, 130, 1025, 170]
	  SourceBlock		  "simulink/Logic and Bit\nOperations/Shift\nArithmetic"
	  SourceType		  "Shift Arithmetic"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  nBitShiftRight	  "4"
	  nBinPtShiftRight	  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Ordering1"
	  Position		  [1010, 213, 1040, 227]
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  "Sending_information"
	  SrcPort		  1
	  Points		  [0, 10]
	  DstBlock		  "Shift\nArithmetic"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Address"
	  SrcPort		  1
	  Points		  [45, 0]
	  Branch {
	    Points		    [0, 60]
	    DstBlock		    "Config_slave"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [90, 0; 0, -35; 140, 0]
	    DstBlock		    "Init_reading"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Pointer_to_read4"
	  SrcPort		  1
	  Points		  [40, 0]
	  DstBlock		  "Config_slave"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Pointer_to_read3"
	  SrcPort		  1
	  Points		  [40, 0]
	  DstBlock		  "Config_slave"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Pointer_to_read"
	  SrcPort		  1
	  Points		  [45, 0; 0, 65]
	  DstBlock		  "Init_reading"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Config_slave"
	  SrcPort		  1
	  DstBlock		  "Init_reading"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Init_reading"
	  SrcPort		  1
	  Points		  [0, -5]
	  DstBlock		  "Reading"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Reading"
	  SrcPort		  1
	  DstBlock		  "Sending_information"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Shift\nArithmetic"
	  SrcPort		  1
	  DstBlock		  "Data Store\nWrite"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Ordering"
	  SrcPort		  1
	  Points		  [105, 0]
	  DstBlock		  "Config_slave"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Sending_information"
	  SrcPort		  2
	  Points		  [35, 0; 0, 60]
	  DstBlock		  "Ordering1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem2"
      Ports		      [2, 1]
      Position		      [340, 413, 425, 502]
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"Subsystem2"
	Location		[24, 464, 1228, 796]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Address"
	  Position		  [130, 78, 160, 92]
	  IconDisplay		  "Port number"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Ordering1"
	  Position		  [130, 288, 160, 302]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Config_slave"
	  Tag			  "dsPIC_dsPIC_CFunctionCall"
	  Ports			  [4, 1]
	  Position		  [270, 178, 415, 237]
	  List {
	    ListType		    RTWdata
	    FctDeclaration	    "extern void LD_two_bytes_config_I2C(uint8_T u1, uint8_T u2, uint8_T u3);"
	    FctCall		    "LD_two_bytes_config_I2C(%u1, %u2, %u3);"
	    fctName		    "LD_two_bytes_config_I2C"
	    INPUT_SIZE		    "1"
	    OUTPUT_SIZE		    "1"
	    NBR_INPUT		    "3"
	    NBR_OUTPUT		    "0"
	  }
	  SourceBlock		  "dsPICdrivers/OTHERS/C Function Call"
	  SourceType		  "C Function Call"
	  fctName		  "'LD_two_bytes_config_I2C'"
	  INPUT_SIZE		  "1"
	  INPUT1		  "uint8"
	  INPUT2		  "uint8"
	  INPUT3		  "uint8"
	  OUTPUT_SIZE		  "1"
	  OUTPUT1		  "--"
	  SampleTime		  "-1"
	  InputType		  "[ 2 2 2 ]"
	  OutputType		  "[ ]"
	  FctDeclaration	  "extern void LD_two_bytes_config_I2C(uint8_T u1, uint8_T u2, uint8_T u3);"
	  FctCall		  "LD_two_bytes_config_I2C(%u1, %u2, %u3);"
	  OrderingInOutPopup	  "Input & Output"
	}
	Block {
	  BlockType		  DataStoreWrite
	  Name			  "Data Store\nWrite"
	  Position		  [1055, 115, 1120, 185]
	  DataStoreName		  "distance_3"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Init_reading"
	  Tag			  "dsPIC_dsPIC_CFunctionCall"
	  Ports			  [3, 1]
	  Position		  [440, 130, 565, 170]
	  List {
	    ListType		    RTWdata
	    FctDeclaration	    "extern void LD_prepare_read_I2C(uint8_T u1, uint8_T u2);"
	    FctCall		    "LD_prepare_read_I2C(%u1, %u2);"
	    fctName		    "LD_prepare_read_I2C"
	    INPUT_SIZE		    "1"
	    OUTPUT_SIZE		    "1"
	    NBR_INPUT		    "2"
	    NBR_OUTPUT		    "0"
	  }
	  SourceBlock		  "dsPICdrivers/OTHERS/C Function Call"
	  SourceType		  "C Function Call"
	  fctName		  "'LD_prepare_read_I2C'"
	  INPUT_SIZE		  "1"
	  INPUT1		  "uint8"
	  INPUT2		  "uint8"
	  INPUT3		  "--"
	  OUTPUT_SIZE		  "1"
	  OUTPUT1		  "--"
	  SampleTime		  "0.01"
	  InputType		  "[ 2 2 ]"
	  OutputType		  "[ ]"
	  FctDeclaration	  "extern void LD_prepare_read_I2C(uint8_T u1, uint8_T u2);"
	  FctCall		  "LD_prepare_read_I2C(%u1, %u2);"
	  OrderingInOutPopup	  "Input & Output"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Pointer_to_read"
	  Position		  [315, 75, 345, 105]
	  Value			  "0"
	  OutDataTypeMode	  "uint8"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint8"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Pointer_to_read3"
	  Position		  [130, 155, 160, 185]
	  Value			  "70"
	  OutDataTypeMode	  "uint8"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint8"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Pointer_to_read4"
	  Position		  [130, 220, 160, 250]
	  Value			  "131"
	  OutDataTypeMode	  "uint8"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint8"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Reading"
	  Tag			  "dsPIC_dsPIC_CFunctionCall"
	  Ports			  [1, 1]
	  Position		  [610, 130, 735, 170]
	  List {
	    ListType		    RTWdata
	    FctDeclaration	    "extern void two_bytes_read_I2C();"
	    FctCall		    "two_bytes_read_I2C();"
	    fctName		    "two_bytes_read_I2C"
	    INPUT_SIZE		    "1"
	    OUTPUT_SIZE		    "1"
	    NBR_INPUT		    "0"
	    NBR_OUTPUT		    "0"
	  }
	  SourceBlock		  "dsPICdrivers/OTHERS/C Function Call"
	  SourceType		  "C Function Call"
	  fctName		  "'two_bytes_read_I2C'"
	  INPUT_SIZE		  "1"
	  INPUT1		  "--"
	  INPUT2		  "--"
	  INPUT3		  "--"
	  OUTPUT_SIZE		  "1"
	  OUTPUT1		  "--"
	  SampleTime		  "0.01"
	  InputType		  "[ ]"
	  OutputType		  "[ ]"
	  FctDeclaration	  "extern void two_bytes_read_I2C();"
	  FctCall		  "two_bytes_read_I2C();"
	  OrderingInOutPopup	  "Input & Output"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Sending_information"
	  Tag			  "dsPIC_dsPIC_CFunctionCall"
	  Ports			  [1, 2]
	  Position		  [765, 130, 890, 170]
	  List {
	    ListType		    RTWdata
	    FctDeclaration	    "extern uint16_T recieve_I2C();"
	    FctCall		    "%y1 = recieve_I2C();"
	    fctName		    "recieve_I2C"
	    INPUT_SIZE		    "1"
	    OUTPUT_SIZE		    "1"
	    NBR_INPUT		    "0"
	    NBR_OUTPUT		    "1"
	  }
	  SourceBlock		  "dsPICdrivers/OTHERS/C Function Call"
	  SourceType		  "C Function Call"
	  fctName		  "'recieve_I2C'"
	  INPUT_SIZE		  "1"
	  INPUT1		  "--"
	  INPUT2		  "--"
	  INPUT3		  "--"
	  OUTPUT_SIZE		  "1"
	  OUTPUT1		  "uint16"
	  SampleTime		  "0.01"
	  InputType		  "[ ]"
	  OutputType		  "[ 4 ]"
	  FctDeclaration	  "extern uint16_T recieve_I2C();"
	  FctCall		  "%y1 = recieve_I2C();"
	  OrderingInOutPopup	  "Input & Output"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Shift\nArithmetic"
	  Ports			  [1, 1]
	  Position		  [945, 130, 1025, 170]
	  SourceBlock		  "simulink/Logic and Bit\nOperations/Shift\nArithmetic"
	  SourceType		  "Shift Arithmetic"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  nBitShiftRight	  "4"
	  nBinPtShiftRight	  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Ordering"
	  Position		  [1145, 143, 1175, 157]
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  "Reading"
	  SrcPort		  1
	  DstBlock		  "Sending_information"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Init_reading"
	  SrcPort		  1
	  DstBlock		  "Reading"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Config_slave"
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "Init_reading"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Pointer_to_read"
	  SrcPort		  1
	  Points		  [45, 0; 0, 60]
	  DstBlock		  "Init_reading"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Pointer_to_read3"
	  SrcPort		  1
	  Points		  [90, 0]
	  DstBlock		  "Config_slave"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Pointer_to_read4"
	  SrcPort		  1
	  Points		  [90, 0]
	  DstBlock		  "Config_slave"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Address"
	  SrcPort		  1
	  Points		  [30, 0]
	  Branch {
	    Points		    [90, 0; 0, -35; 140, 0]
	    DstBlock		    "Init_reading"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 100]
	    DstBlock		    "Config_slave"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Sending_information"
	  SrcPort		  1
	  Points		  [0, 10]
	  DstBlock		  "Shift\nArithmetic"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sending_information"
	  SrcPort		  2
	  Points		  [45, 0; 0, 55; 190, 0]
	  DstBlock		  "Ordering"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Shift\nArithmetic"
	  SrcPort		  1
	  DstBlock		  "Data Store\nWrite"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Ordering1"
	  SrcPort		  1
	  Points		  [90, 0]
	  DstBlock		  "Config_slave"
	  DstPort		  4
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem3"
      Ports		      [2]
      Position		      [335, 558, 420, 647]
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"Subsystem3"
	Location		[2, 481, 1146, 813]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Address"
	  Position		  [115, 78, 145, 92]
	  IconDisplay		  "Port number"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Ordering"
	  Position		  [65, 193, 95, 207]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Config_slave"
	  Tag			  "dsPIC_dsPIC_CFunctionCall"
	  Ports			  [4, 1]
	  Position		  [220, 139, 365, 196]
	  List {
	    ListType		    RTWdata
	    FctDeclaration	    "extern void LD_two_bytes_config_I2C(uint8_T u1, uint8_T u2, uint8_T u3);"
	    FctCall		    "LD_two_bytes_config_I2C(%u1, %u2, %u3);"
	    fctName		    "LD_two_bytes_config_I2C"
	    INPUT_SIZE		    "1"
	    OUTPUT_SIZE		    "1"
	    NBR_INPUT		    "3"
	    NBR_OUTPUT		    "0"
	  }
	  SourceBlock		  "dsPICdrivers/OTHERS/C Function Call"
	  SourceType		  "C Function Call"
	  fctName		  "'LD_two_bytes_config_I2C'"
	  INPUT_SIZE		  "1"
	  INPUT1		  "uint8"
	  INPUT2		  "uint8"
	  INPUT3		  "uint8"
	  OUTPUT_SIZE		  "1"
	  OUTPUT1		  "--"
	  SampleTime		  "0.01"
	  InputType		  "[ 2 2 2 ]"
	  OutputType		  "[ ]"
	  FctDeclaration	  "extern void LD_two_bytes_config_I2C(uint8_T u1, uint8_T u2, uint8_T u3);"
	  FctCall		  "LD_two_bytes_config_I2C(%u1, %u2, %u3);"
	  OrderingInOutPopup	  "Input & Output"
	}
	Block {
	  BlockType		  DataStoreWrite
	  Name			  "Data Store\nWrite"
	  Position		  [1070, 115, 1135, 185]
	  DataStoreName		  "distance_4"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Init_reading"
	  Tag			  "dsPIC_dsPIC_CFunctionCall"
	  Ports			  [3, 1]
	  Position		  [440, 135, 565, 175]
	  List {
	    ListType		    RTWdata
	    FctDeclaration	    "extern void LD_prepare_read_I2C(uint8_T u1, uint8_T u2);"
	    FctCall		    "LD_prepare_read_I2C(%u1, %u2);"
	    fctName		    "LD_prepare_read_I2C"
	    INPUT_SIZE		    "1"
	    OUTPUT_SIZE		    "1"
	    NBR_INPUT		    "2"
	    NBR_OUTPUT		    "0"
	  }
	  SourceBlock		  "dsPICdrivers/OTHERS/C Function Call"
	  SourceType		  "C Function Call"
	  fctName		  "'LD_prepare_read_I2C'"
	  INPUT_SIZE		  "1"
	  INPUT1		  "uint8"
	  INPUT2		  "uint8"
	  INPUT3		  "--"
	  OUTPUT_SIZE		  "1"
	  OUTPUT1		  "--"
	  SampleTime		  "0.01"
	  InputType		  "[ 2 2 ]"
	  OutputType		  "[ ]"
	  FctDeclaration	  "extern void LD_prepare_read_I2C(uint8_T u1, uint8_T u2);"
	  FctCall		  "LD_prepare_read_I2C(%u1, %u2);"
	  OrderingInOutPopup	  "Input & Output"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Pointer_to_read"
	  Position		  [315, 75, 345, 105]
	  Value			  "0"
	  OutDataTypeMode	  "uint8"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint8"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Pointer_to_read3"
	  Position		  [130, 150, 160, 180]
	  Value			  "86"
	  OutDataTypeMode	  "uint8"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint8"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Pointer_to_read4"
	  Position		  [130, 220, 160, 250]
	  Value			  "131"
	  OutDataTypeMode	  "uint8"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "uint8"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Reading"
	  Tag			  "dsPIC_dsPIC_CFunctionCall"
	  Ports			  [1, 1]
	  Position		  [610, 130, 735, 170]
	  List {
	    ListType		    RTWdata
	    FctDeclaration	    "extern void two_bytes_read_I2C();"
	    FctCall		    "two_bytes_read_I2C();"
	    fctName		    "two_bytes_read_I2C"
	    INPUT_SIZE		    "1"
	    OUTPUT_SIZE		    "1"
	    NBR_INPUT		    "0"
	    NBR_OUTPUT		    "0"
	  }
	  SourceBlock		  "dsPICdrivers/OTHERS/C Function Call"
	  SourceType		  "C Function Call"
	  fctName		  "'two_bytes_read_I2C'"
	  INPUT_SIZE		  "1"
	  INPUT1		  "--"
	  INPUT2		  "--"
	  INPUT3		  "--"
	  OUTPUT_SIZE		  "1"
	  OUTPUT1		  "--"
	  SampleTime		  "0.01"
	  InputType		  "[ ]"
	  OutputType		  "[ ]"
	  FctDeclaration	  "extern void two_bytes_read_I2C();"
	  FctCall		  "two_bytes_read_I2C();"
	  OrderingInOutPopup	  "Input & Output"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Sending_information"
	  Tag			  "dsPIC_dsPIC_CFunctionCall"
	  Ports			  [1, 1]
	  Position		  [775, 130, 900, 170]
	  List {
	    ListType		    RTWdata
	    FctDeclaration	    "extern uint16_T recieve_I2C();"
	    FctCall		    "%y1 = recieve_I2C();"
	    fctName		    "recieve_I2C"
	    INPUT_SIZE		    "1"
	    OUTPUT_SIZE		    "1"
	    NBR_INPUT		    "0"
	    NBR_OUTPUT		    "1"
	  }
	  SourceBlock		  "dsPICdrivers/OTHERS/C Function Call"
	  SourceType		  "C Function Call"
	  fctName		  "'recieve_I2C'"
	  INPUT_SIZE		  "1"
	  INPUT1		  "--"
	  INPUT2		  "--"
	  INPUT3		  "--"
	  OUTPUT_SIZE		  "1"
	  OUTPUT1		  "uint16"
	  SampleTime		  "0.01"
	  InputType		  "[ ]"
	  OutputType		  "[ 4 ]"
	  FctDeclaration	  "extern uint16_T recieve_I2C();"
	  FctCall		  "%y1 = recieve_I2C();"
	  OrderingInOutPopup	  "Input"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Shift\nArithmetic"
	  Ports			  [1, 1]
	  Position		  [945, 130, 1025, 170]
	  SourceBlock		  "simulink/Logic and Bit\nOperations/Shift\nArithmetic"
	  SourceType		  "Shift Arithmetic"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  nBitShiftRight	  "4"
	  nBinPtShiftRight	  "0"
	}
	Line {
	  SrcBlock		  "Sending_information"
	  SrcPort		  1
	  DstBlock		  "Shift\nArithmetic"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Address"
	  SrcPort		  1
	  Points		  [45, 0]
	  Branch {
	    Points		    [0, 60]
	    DstBlock		    "Config_slave"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [90, 0; 0, -35; 140, 0]
	    DstBlock		    "Init_reading"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Pointer_to_read4"
	  SrcPort		  1
	  Points		  [40, 0]
	  DstBlock		  "Config_slave"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Pointer_to_read3"
	  SrcPort		  1
	  Points		  [40, 0]
	  DstBlock		  "Config_slave"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Pointer_to_read"
	  SrcPort		  1
	  Points		  [45, 0; 0, 65]
	  DstBlock		  "Init_reading"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Config_slave"
	  SrcPort		  1
	  DstBlock		  "Init_reading"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Init_reading"
	  SrcPort		  1
	  Points		  [0, -5]
	  DstBlock		  "Reading"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Reading"
	  SrcPort		  1
	  DstBlock		  "Sending_information"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Shift\nArithmetic"
	  SrcPort		  1
	  DstBlock		  "Data Store\nWrite"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Ordering"
	  SrcPort		  1
	  Points		  [105, 0]
	  DstBlock		  "Config_slave"
	  DstPort		  4
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "TX Output Multiplexed\nfor Matlab / Labview"
      Tag		      "dsPIC_TX_Multiplexed"
      Ports		      [5]
      Position		      [955, 85, 1125, 645]
      Priority		      "5"
      SourceBlock	      "dsPICdrivers/Serial PORT/TX Output Multiplexed\nfor Matlab // Labview"
      SourceType	      "send structured data frame to Matlab / Labview"
      UART		      "1"
      CleverSpreadingChk      on
      CleverSpreading	      "1"
      CHANNEL		      "[0 1 2 3 4]"
      CHANNELBLOCKED	      "[]"
      CHANNELBLOCKED_BITEWISE "0"
      Status		      "OK"
    }
    Block {
      BlockType		      Reference
      Name		      "UART Configuration"
      Tag		      "dsPIC_config_UART"
      Ports		      []
      Position		      [245, 79, 346, 109]
      BackgroundColor	      "lightBlue"
      Priority		      "2"
      List {
	ListType		RTWdata
	RxBufferSize		"32"
      }
      SourceBlock	      "dsPICdrivers/Serial PORT/UART Configuration"
      SourceType	      "Configure UART"
      UART		      "1"
      proposed_BAUD	      "19200"
      ALT_TX_RX		      on
      InterruptTxWhen	      "When Transmit Buffer is empty"
      TXInterruptPri	      "1"
      TxBufferSize	      "32"
      TXEN		      on
      InterruptRxWhen	      "When Receive Buffer is full (contain 4 characters)"
      RXInterruptPri	      "2"
      RxBufferSize	      "32"
      BAUD		      "19200"
      UxBRG		      "64"
      Info		      "UxBRG = 64   ||  Real Baud : 19231   ||  % error : 0.16026  ||  max 1.9231 Bytes / Step"
      RealBaud		      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "dbl-click to open\nGraphical interface"
      Ports		      []
      Position		      [105, 13, 205, 63]
      BackgroundColor	      "cyan"
      DropShadow	      on
      SourceBlock	      "dsPICdrivers/Serial PORT/dbl-click to open\nGraphical interface"
      SourceType	      ""
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Nothing		      "0"
    }
    Line {
      SrcBlock		      "Data Type Conversion11"
      SrcPort		      1
      DstBlock		      "Op controlLED"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Pulse\nGenerator4"
      SrcPort		      1
      DstBlock		      "Data Type Conversion11"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Pointer_to_read"
      SrcPort		      1
      Points		      [50, 0]
      Branch {
	DstBlock		"Subsystem"
	DstPort			1
      }
      Branch {
	Points			[0, 105]
	DstBlock		"Subsystem1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Data Store\nRead"
      SrcPort		      1
      Points		      [45, 0]
      Branch {
	DstBlock		"TX Output Multiplexed\nfor Matlab / Labview"
	DstPort			1
      }
      Branch {
	Points			[0, 160]
	DstBlock		"Distance_filter_1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Subsystem"
      SrcPort		      1
      Points		      [10, 0; 0, 215; -115, 0]
      DstBlock		      "Subsystem1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Data Store\nRead1"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	DstBlock		"TX Output Multiplexed\nfor Matlab / Labview"
	DstPort			2
      }
      Branch {
	Points			[0, 145]
	DstBlock		"Distance_filter_5"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Distance_filter_1"
      SrcPort		      1
      Points		      [10, 0]
      DstBlock		      "Add"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Distance_filter_5"
      SrcPort		      1
      Points		      [10, 0]
      DstBlock		      "Add"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Add"
      SrcPort		      1
      DstBlock		      "Compare\nTo Constant"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Pointer_to_read1"
      SrcPort		      1
      Points		      [50, 0]
      Branch {
	Points			[35, 0]
	DstBlock		"Subsystem2"
	DstPort			1
      }
      Branch {
	Points			[0, 125]
	DstBlock		"Subsystem3"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Subsystem2"
      SrcPort		      1
      Points		      [0, 215; -110, 0]
      DstBlock		      "Subsystem3"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Data Store\nRead2"
      SrcPort		      1
      Points		      [45, 0]
      Branch {
	DstBlock		"TX Output Multiplexed\nfor Matlab / Labview"
	DstPort			4
      }
      Branch {
	Points			[0, 50]
	DstBlock		"Distance_filter_2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Data Store\nRead3"
      SrcPort		      1
      Points		      [30, 0]
      Branch {
	DstBlock		"TX Output Multiplexed\nfor Matlab / Labview"
	DstPort			5
      }
      Branch {
	Points			[0, 55]
	DstBlock		"Distance_filter_3"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Subsystem1"
      SrcPort		      1
      Points		      [0, 100; -115, 0; 0, 75]
      DstBlock		      "Subsystem2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Distance_filter_2"
      SrcPort		      1
      DstBlock		      "Add1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Distance_filter_3"
      SrcPort		      1
      Points		      [10, 0]
      DstBlock		      "Add1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Add1"
      SrcPort		      1
      DstBlock		      "Compare\nTo Constant1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Compare\nTo Constant"
      SrcPort		      1
      DstBlock		      "Add2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Compare\nTo Constant1"
      SrcPort		      1
      Points		      [5, 0]
      DstBlock		      "Add2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Add2"
      SrcPort		      1
      DstBlock		      "Compare\nTo Constant2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Compare\nTo Constant2"
      SrcPort		      1
      Points		      [5, 0; 0, 10]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      3
    }
  }
}
# Finite State Machines
#
#    Stateflow Version 7.1 (R2009a) dated Jan 28 2009, 05:16:58
#
#


Stateflow {
  machine {
    id			    1
    name		    "Simurda_CAR4_dsPIC33_ACU44_I2C_MPLAB_ads1015_SHARP"
    created		    "09-Jul-2008 17:05:56"
    isLibrary		    0
    firstTarget		    2
    sfVersion		    71014000.000008
  }
  target {
    id			    2
    name		    "sfun"
    codeFlags		    ""
    machine		    1
    linkNode		    [1 0 3]
  }
  target {
    id			    3
    name		    "rtw"
    codeFlags		    " comments=1 statebitsets=1 databitsets=1 emitlogicalops=1 elseifdetection=1 constantfolding=1 redu"
    "ndantloadelimination=0 preservenames=0 preservenameswithparent=0 exportcharts=0"
    machine		    1
    linkNode		    [1 2 0]
  }
}
