Model { Name "commoteur" Version 7.0 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.84" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "windows-1252" SaveDefaultBlockParams on SampleTimeColors on LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes on ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Fri Mar 18 09:41:20 2011" Creator "eleve" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "eleve" ModifiedDateFormat "%" LastModifiedDate "Tue May 17 08:44:29 2011" RTWModifiedTimeStamp 0 ModelVersionFormat "1.%" ConfigurationManager "None" SimulationMode "normal" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse on ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.3.0" Array { Type "Handle" Dimension 8 Simulink.SolverCC { $ObjectID 2 Version "1.3.0" StartTime "0.0" StopTime "300" AbsTol "auto" FixedStep "0.0001" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-3" SolverMode "Auto" Solver "FixedStepDiscrete" SolverName "FixedStepDiscrete" ZeroCrossControl "UseLocalSettings" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" RateTranMode "Deterministic" } Simulink.DataIOCC { $ObjectID 3 Version "1.3.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState 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.3.0" BlockReduction on BooleanDataType on ConditionallyExecuteInputs on InlineParams off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse on EnforceIntegerDowncast on ExpressionFolding on ExpressionDepthLimit 2147483647 FoldNonRolledExpr on LocalBlockOutputs on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero on NoFixptDivByZeroProtection off EfficientFloat2IntCast off OptimizeModelRefInitCode on LifeSpan "1" BufferReusableBoundary on SimCompilerOptimization "Off" AccelVerboseBuild off } Simulink.DebuggingCC { $ObjectID 5 Version "1.3.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" SignalRangeChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" SaveWithDisabledLinksMsg "warning" SaveWithParameterizedLinksMsg "warning" CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "UseLocalSettings" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" TimeAdjustmentMsg "none" MaxConsecutiveZCsMsg "error" SolverPrmCheckMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "error" MultiTaskCondExecSysMsg "error" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" SigSpecEnsureSampleTimeMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" ParameterTunabilityLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" FcnCallInpInsideContextMsg "Use local settings" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" ModelReferenceSimTargetVerbose off UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" StrictBusMsg "Warning" LoggingUnavailableSignals "error" } Simulink.HardwareCC { $ObjectID 6 Array { Type "Cell" Dimension 2 Cell "ProdHWDeviceType" Cell "ProdEqTarget" PropName "DisabledProps" } Version "1.3.0" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 16 ProdBitPerLong 32 ProdIntDivRoundTo "Undefined" ProdEndianess "LittleEndian" ProdWordSize 16 ProdShiftRightIntArith on ProdHWDeviceType "16-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "32-bit Generic" TargetUnknown off ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.3.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 8 Array { Type "Cell" Dimension 1 Cell "TargetLang" PropName "DisabledProps" } Version "1.3.0" SystemTargetFile "dspic.tlc" GenCodeOnly off MakeCommand "make_rtw" GenerateMakefile on TemplateMakefile "dspic_pic30_gcc.tmf" PostCodeGenCommand "dsPIC_Compile()" Description "Embedded Target for Microchip dsPIC (real-time)" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ProcessScript "dspic_make_rtw_hook" ConfigAtBuild off IncludeHyperlinkInReport off LaunchReport off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off IncludeERTFirstTime off GenerateTraceInfo off RTWCompilerOptimization "Off" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 9 Version "1.3.0" ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses off IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off MangleLength 1 CustomSymbolStrGlobalVar "$R$N$M" CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off } Simulink.STFCustomTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 10 Array { Type "Cell" Dimension 5 Cell "GenerateSampleERTMain" Cell "MatFileLogging" Cell "SupportNonInlinedSFcns" Cell "UtilityFuncGeneration" Cell "IncludeMdlTerminateFcn" PropName "DisabledProps" } Version "1.3.0" TargetFcnLib "ansi_tfl_table_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant off CompOptLevelCompliant off IncludeMdlTerminateFcn off CombineOutputUpdateFcns on SuppressErrorStatus on IncludeFileDelimiter "Auto" ERTCustomFileBanners on SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging off MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime off SupportNonInlinedSFcns off EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off SystemTargetFile "dspic.tlc" DialogCategory 0 Array { Type "Handle" Dimension 1 Simulink.ERTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 11 Array { Type "Cell" Dimension 8 Cell "GenerateSampleERTMain" Cell "GenerateErtSFunction" Cell "MatFileLogging" Cell "GRTInterface" Cell "ERTCustomFileTemplate" Cell "SupportNonInlinedSFcns" Cell "UtilityFuncGeneration" Cell "IncludeMdlTerminateFcn" PropName "DisabledProps" } Version "1.3.0" TargetFcnLib "ansi_tfl_table_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant off CompOptLevelCompliant off IncludeMdlTerminateFcn off CombineOutputUpdateFcns on SuppressErrorStatus on IncludeFileDelimiter "Auto" ERTCustomFileBanners on SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging off MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime off SupportNonInlinedSFcns off EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off GenerateErtSFunction off GenerateASAP2 off ExtMode off ExtModeTransport 0 ExtModeStaticAlloc off ExtModeStaticAllocSize 1000000 ExtModeTesting off ExtModeMexFile "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 "C:\\PROGRA~1\\MATLAB\\R2007b\\bin\\win32\\gmake" } CustomProperty { DataType "string" Name "OPTIM_GCC" Value "-mcpu=30f4013 -O3 -fschedule-insns -fschedule-insns2" } CustomProperty { DataType "string" Name "LDFLAGS" Value "-t --report-mem -Map ../untitled.map --heap 0 -cref" } CustomProperty { DataType "string" Name "LDPICTYPE" Value "-T C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\support\\dsPIC30F\\gld\\p30f4013.gld" } CustomProperty { DataType "string" Name "LDLIBPIC" Value "C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\lib\\libpic30-coff.a C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\lib\\dsPIC30F\\libp30f4013-coff.a C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\lib\\libc-coff.a C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\lib\\libm-coff.a" } CustomProperty { DataType "string" Name "PIC_INCLUDES" Value "-I C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\include" } CustomProperty { DataType "string" Name "PIC_REF" Value "30f4013" } CustomProperty { DataType "string" Name "GCCPATH" Value "''" } } PropName "Components" } } hdlcoderui.hdlcc { $ObjectID 12 Description "HDL Coder custom configuration component" Version "1.3.0" Name "HDL Coder" Array { Type "Cell" Dimension 1 Cell "" PropName "HDLConfigFile" } HDLCActiveTab "0" } PropName "Components" } Name "Configuration" ExtraOptions "-aGenerateTraceInfo=0 " CurrentDlgPage "Solver" } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType DataTypeConversion OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit via back propagation" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off ConvertRealWorld "Real World Value (RWV)" RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Demux Outputs "4" DisplayOption "none" BusSelectionMode off } Block { BlockType EnablePort StatesWhenEnabling "held" ShowOutputPort off ZeroCross on } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ParamMin "[]" ParamMax "[]" ParameterDataTypeMode "Same as input" ParameterDataType "fixdt(1,16,0)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "[]" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Ground } Block { BlockType Inport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchByCopyingInsideSignal off Interpolate on } Block { BlockType Logic Operator "AND" Inputs "2" IconShape "rectangular" AllPortsSameDT on OutDataTypeMode "Logical (see Configuration Parameters: Optimization)" LogicDataType "uint(8)" SampleTime "-1" } Block { BlockType Mux Inputs "4" DisplayOption "none" UseBusObject off BusObject "BusObject" NonVirtualBus off } Block { BlockType Outport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" SignalType "auto" SamplingMode "auto" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType "S-Function" FunctionName "system" SFunctionModules "''" PortCounts "[]" } Block { BlockType SubSystem ShowPortLabels "FromPortIcon" Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit off SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Switch Criteria "u2 >= Threshold" Threshold "0" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1,16,0)" OutScaling "[]" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on ZeroCross on SampleTime "-1" } Block { BlockType Terminator } Block { BlockType TriggerPort TriggerType "rising" StatesWhenEnabling "inherit" ShowOutputPort off OutputDataType "auto" SampleTimeType "triggered" SampleTime "1" ZeroCross on } Block { BlockType UnitDelay X0 "0" SampleTime "1" StateMustResolveToSignalObject off RTWStateStorageClass "Auto" } Block { BlockType Constant Value "1" VectorParams1D on SamplingMode "Sample based" OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit from 'Constant value'" OutDataType "fixdt(1,16,0)" ConRadixGroup "Use specified scaling" OutScaling "[]" SampleTime "inf" FramePeriod "inf" } Block { BlockType RelationalOperator Operator ">=" InputSameDT on LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimization)" LogicDataType "uint(8)" ZeroCross on SampleTime "-1" } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" UseDisplayTextAsClickCallback off } LineDefaults { FontName "Arial" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "commoteur" Location [2, 78, 1261, 970] 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 "100" ReportName "simulink-default.rpt" Block { BlockType Reference Name "Configuration" Ports [] Position [160, 35, 260, 85] BackgroundColor "lightBlue" DropShadow on SourceBlock "dsPICdrivers/Configuration" 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" double64 off } Block { BlockType Reference Name "Configure Model \nfor dsPIC" Ports [] Position [415, 34, 527, 90] BackgroundColor "yellow" DropShadow on SourceBlock "dsPICdrivers/Simulink Configuration/Configure Model \nfor dsPIC" SourceType "" } Block { BlockType Constant Name "Constant" Position [760, 420, 790, 450] Value "102" OutDataTypeMode "uint8" OutDataType "sfix(16)" OutScaling "2^0" SampleTime "0.01" } Block { BlockType DataTypeConversion Name "Data Type Conversion" Position [770, 233, 845, 267] OutDataTypeMode "uint8" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type Conversion1" Position [895, 553, 970, 587] OutDataTypeMode "uint16" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type Conversion2" Position [695, 598, 770, 632] OutDataTypeMode "uint16" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type Conversion3" Position [895, 643, 970, 677] OutDataTypeMode "uint16" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type Conversion4" Position [895, 733, 970, 767] OutDataTypeMode "uint16" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type Conversion5" Position [695, 778, 770, 812] OutDataTypeMode "uint16" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type Conversion6" Position [695, 688, 770, 722] OutDataTypeMode "uint16" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Demux Name "Demux" Ports [1, 6] Position [1055, 159, 1060, 401] BackgroundColor "black" ShowName off Outputs "6" DisplayOption "bar" } Block { BlockType SubSystem Name "Décodage de la trame série" Ports [1, 16] Position [265, 448, 360, 952] TreatAsAtomicUnit on MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Décodage de la trame série" Location [2, 82, 1270, 957] Open off 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 "80" Block { BlockType Inport Name "In1" Position [380, 378, 410, 392] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Reference Name "Compare1" Ports [1, 1] Position [1625, 165, 1655, 195] Orientation "down" NamePlacement "alternate" 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 "15" LogicOutDataTypeMode "boolean" ZeroCross off } Block { BlockType Reference Name "Compare2" Ports [1, 1] Position [1735, 165, 1765, 195] Orientation "down" NamePlacement "alternate" 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 "163" LogicOutDataTypeMode "boolean" ZeroCross off } Block { BlockType Logic Name "Logical\nOperator" Ports [2, 1] Position [1805, 246, 1835, 299] AllPortsSameDT off OutDataTypeMode "boolean" } Block { BlockType SubSystem Name "Subsystem" Ports [1, 4] Position [1225, 93, 1320, 232] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Subsystem" Location [2, 82, 1270, 974] Open off 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 "100" Block { BlockType Inport Name "In1" Position [50, 38, 80, 52] IconDisplay "Port number" } Block { BlockType Mux Name "Mux3" Ports [4, 1] Position [1010, 365, 1015, 460] ShowName off DisplayOption "bar" } Block { BlockType Mux Name "Mux4" Ports [4, 1] Position [1010, 165, 1015, 260] ShowName off DisplayOption "bar" } Block { BlockType Mux Name "Mux5" Ports [4, 1] Position [1010, 265, 1015, 360] ShowName off DisplayOption "bar" } Block { BlockType UnitDelay Name "Unit Delay13" Position [415, 28, 450, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay16" Position [355, 28, 390, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay17" Position [145, 28, 180, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay18" Position [295, 28, 330, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay19" Position [225, 28, 260, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay20" Position [865, 28, 900, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay21" Position [795, 28, 830, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay22" Position [725, 28, 760, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay23" Position [655, 28, 690, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay24" Position [590, 28, 625, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay25" Position [535, 28, 570, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay26" Position [475, 28, 510, 62] SampleTime "-1" } Block { BlockType Outport Name "Out1" Position [925, 38, 955, 52] IconDisplay "Port number" } Block { BlockType Outport Name "Out2" Position [1040, 208, 1070, 222] Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Out3" Position [1040, 308, 1070, 322] Port "3" IconDisplay "Port number" } Block { BlockType Outport Name "Out4" Position [1040, 408, 1070, 422] Port "4" IconDisplay "Port number" } Line { SrcBlock "Unit Delay21" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay20" DstPort 1 } Branch { Points [0, 130] DstBlock "Mux4" DstPort 1 } } Line { SrcBlock "Unit Delay22" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay21" DstPort 1 } Branch { Points [0, 155] DstBlock "Mux4" DstPort 2 } } Line { SrcBlock "Unit Delay23" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay22" DstPort 1 } Branch { Points [0, 180] DstBlock "Mux4" DstPort 3 } } Line { SrcBlock "Unit Delay24" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay23" DstPort 1 } Branch { Points [0, 205] DstBlock "Mux4" DstPort 4 } } Line { SrcBlock "Unit Delay25" SrcPort 1 Points [0, 0] Branch { DstBlock "Unit Delay24" DstPort 1 } Branch { Points [0, 230] DstBlock "Mux5" DstPort 1 } } Line { SrcBlock "Unit Delay26" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay25" DstPort 1 } Branch { Points [0, 255] DstBlock "Mux5" DstPort 2 } } Line { SrcBlock "Unit Delay13" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay26" DstPort 1 } Branch { Points [0, 280] DstBlock "Mux5" DstPort 3 } } Line { SrcBlock "Unit Delay16" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay13" DstPort 1 } Branch { Points [0, 305] DstBlock "Mux5" DstPort 4 } } Line { SrcBlock "Unit Delay19" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay18" DstPort 1 } Branch { Points [0, 355] DstBlock "Mux3" DstPort 2 } } Line { SrcBlock "Unit Delay17" SrcPort 1 Points [15, 0] Branch { DstBlock "Unit Delay19" DstPort 1 } Branch { Points [0, 380] DstBlock "Mux3" DstPort 3 } } Line { SrcBlock "Unit Delay18" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay16" DstPort 1 } Branch { Points [0, 330] DstBlock "Mux3" DstPort 1 } } Line { SrcBlock "In1" SrcPort 1 Points [15, 0] Branch { DstBlock "Unit Delay17" DstPort 1 } Branch { Points [0, 405] DstBlock "Mux3" DstPort 4 } } Line { SrcBlock "Unit Delay20" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "Mux4" SrcPort 1 DstBlock "Out2" DstPort 1 } Line { SrcBlock "Mux5" SrcPort 1 DstBlock "Out3" DstPort 1 } Line { SrcBlock "Mux3" SrcPort 1 DstBlock "Out4" DstPort 1 } } } Block { BlockType SubSystem Name "Subsystem1" Ports [1, 4] Position [1040, 148, 1145, 287] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Subsystem1" Location [245, 156, 1119, 545] Open off 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 "80" Block { BlockType Inport Name "In1" Position [50, 38, 80, 52] IconDisplay "Port number" } Block { BlockType Mux Name "Mux3" Ports [4, 1] Position [1010, 365, 1015, 460] ShowName off DisplayOption "bar" } Block { BlockType Mux Name "Mux4" Ports [4, 1] Position [1010, 165, 1015, 260] ShowName off DisplayOption "bar" } Block { BlockType Mux Name "Mux5" Ports [4, 1] Position [1010, 265, 1015, 360] ShowName off DisplayOption "bar" } Block { BlockType UnitDelay Name "Unit Delay13" Position [415, 28, 450, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay16" Position [355, 28, 390, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay17" Position [145, 28, 180, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay18" Position [295, 28, 330, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay19" Position [225, 28, 260, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay20" Position [865, 28, 900, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay21" Position [795, 28, 830, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay22" Position [725, 28, 760, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay23" Position [655, 28, 690, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay24" Position [590, 28, 625, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay25" Position [535, 28, 570, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay26" Position [475, 28, 510, 62] SampleTime "-1" } Block { BlockType Outport Name "Out1" Position [925, 38, 955, 52] IconDisplay "Port number" } Block { BlockType Outport Name "Out2" Position [1040, 208, 1070, 222] Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Out3" Position [1040, 308, 1070, 322] Port "3" IconDisplay "Port number" } Block { BlockType Outport Name "Out4" Position [1040, 408, 1070, 422] Port "4" IconDisplay "Port number" } Line { SrcBlock "Unit Delay21" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay20" DstPort 1 } Branch { Points [0, 130] DstBlock "Mux4" DstPort 1 } } Line { SrcBlock "Unit Delay22" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay21" DstPort 1 } Branch { Points [0, 155] DstBlock "Mux4" DstPort 2 } } Line { SrcBlock "Unit Delay23" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay22" DstPort 1 } Branch { Points [0, 180] DstBlock "Mux4" DstPort 3 } } Line { SrcBlock "Unit Delay24" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay23" DstPort 1 } Branch { Points [0, 205] DstBlock "Mux4" DstPort 4 } } Line { SrcBlock "Unit Delay25" SrcPort 1 Points [0, 0] Branch { DstBlock "Unit Delay24" DstPort 1 } Branch { Points [0, 230] DstBlock "Mux5" DstPort 1 } } Line { SrcBlock "Unit Delay26" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay25" DstPort 1 } Branch { Points [0, 255] DstBlock "Mux5" DstPort 2 } } Line { SrcBlock "Unit Delay13" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay26" DstPort 1 } Branch { Points [0, 280] DstBlock "Mux5" DstPort 3 } } Line { SrcBlock "Unit Delay16" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay13" DstPort 1 } Branch { Points [0, 305] DstBlock "Mux5" DstPort 4 } } Line { SrcBlock "Unit Delay19" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay18" DstPort 1 } Branch { Points [0, 355] DstBlock "Mux3" DstPort 2 } } Line { SrcBlock "Unit Delay17" SrcPort 1 Points [15, 0] Branch { DstBlock "Unit Delay19" DstPort 1 } Branch { Points [0, 380] DstBlock "Mux3" DstPort 3 } } Line { SrcBlock "Unit Delay18" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay16" DstPort 1 } Branch { Points [0, 330] DstBlock "Mux3" DstPort 1 } } Line { SrcBlock "In1" SrcPort 1 Points [15, 0] Branch { DstBlock "Unit Delay17" DstPort 1 } Branch { Points [0, 405] DstBlock "Mux3" DstPort 4 } } Line { SrcBlock "Unit Delay20" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "Mux4" SrcPort 1 DstBlock "Out2" DstPort 1 } Line { SrcBlock "Mux5" SrcPort 1 DstBlock "Out3" DstPort 1 } Line { SrcBlock "Mux3" SrcPort 1 DstBlock "Out4" DstPort 1 } } } Block { BlockType SubSystem Name "Subsystem2" Ports [1, 4] Position [860, 202, 960, 343] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Subsystem2" Location [245, 156, 1119, 545] Open off 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 "80" Block { BlockType Inport Name "In1" Position [50, 38, 80, 52] IconDisplay "Port number" } Block { BlockType Mux Name "Mux3" Ports [4, 1] Position [1010, 365, 1015, 460] ShowName off DisplayOption "bar" } Block { BlockType Mux Name "Mux4" Ports [4, 1] Position [1010, 165, 1015, 260] ShowName off DisplayOption "bar" } Block { BlockType Mux Name "Mux5" Ports [4, 1] Position [1010, 265, 1015, 360] ShowName off DisplayOption "bar" } Block { BlockType UnitDelay Name "Unit Delay13" Position [415, 28, 450, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay16" Position [355, 28, 390, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay17" Position [145, 28, 180, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay18" Position [295, 28, 330, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay19" Position [225, 28, 260, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay20" Position [865, 28, 900, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay21" Position [795, 28, 830, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay22" Position [725, 28, 760, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay23" Position [655, 28, 690, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay24" Position [590, 28, 625, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay25" Position [535, 28, 570, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay26" Position [475, 28, 510, 62] SampleTime "-1" } Block { BlockType Outport Name "Out1" Position [925, 38, 955, 52] IconDisplay "Port number" } Block { BlockType Outport Name "Out2" Position [1040, 208, 1070, 222] Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Out3" Position [1040, 308, 1070, 322] Port "3" IconDisplay "Port number" } Block { BlockType Outport Name "Out4" Position [1040, 408, 1070, 422] Port "4" IconDisplay "Port number" } Line { SrcBlock "Unit Delay21" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay20" DstPort 1 } Branch { Points [0, 130] DstBlock "Mux4" DstPort 1 } } Line { SrcBlock "Unit Delay22" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay21" DstPort 1 } Branch { Points [0, 155] DstBlock "Mux4" DstPort 2 } } Line { SrcBlock "Unit Delay23" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay22" DstPort 1 } Branch { Points [0, 180] DstBlock "Mux4" DstPort 3 } } Line { SrcBlock "Unit Delay24" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay23" DstPort 1 } Branch { Points [0, 205] DstBlock "Mux4" DstPort 4 } } Line { SrcBlock "Unit Delay25" SrcPort 1 Points [0, 0] Branch { DstBlock "Unit Delay24" DstPort 1 } Branch { Points [0, 230] DstBlock "Mux5" DstPort 1 } } Line { SrcBlock "Unit Delay26" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay25" DstPort 1 } Branch { Points [0, 255] DstBlock "Mux5" DstPort 2 } } Line { SrcBlock "Unit Delay13" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay26" DstPort 1 } Branch { Points [0, 280] DstBlock "Mux5" DstPort 3 } } Line { SrcBlock "Unit Delay16" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay13" DstPort 1 } Branch { Points [0, 305] DstBlock "Mux5" DstPort 4 } } Line { SrcBlock "Unit Delay19" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay18" DstPort 1 } Branch { Points [0, 355] DstBlock "Mux3" DstPort 2 } } Line { SrcBlock "Unit Delay17" SrcPort 1 Points [15, 0] Branch { DstBlock "Unit Delay19" DstPort 1 } Branch { Points [0, 380] DstBlock "Mux3" DstPort 3 } } Line { SrcBlock "Unit Delay18" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay16" DstPort 1 } Branch { Points [0, 330] DstBlock "Mux3" DstPort 1 } } Line { SrcBlock "In1" SrcPort 1 Points [15, 0] Branch { DstBlock "Unit Delay17" DstPort 1 } Branch { Points [0, 405] DstBlock "Mux3" DstPort 4 } } Line { SrcBlock "Unit Delay20" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "Mux4" SrcPort 1 DstBlock "Out2" DstPort 1 } Line { SrcBlock "Mux5" SrcPort 1 DstBlock "Out3" DstPort 1 } Line { SrcBlock "Mux3" SrcPort 1 DstBlock "Out4" DstPort 1 } } } Block { BlockType SubSystem Name "Subsystem3" Ports [1, 4] Position [675, 259, 775, 396] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Subsystem3" Location [245, 156, 1119, 545] Open off 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 "80" Block { BlockType Inport Name "In1" Position [50, 38, 80, 52] IconDisplay "Port number" } Block { BlockType Mux Name "Mux3" Ports [4, 1] Position [1010, 365, 1015, 460] ShowName off DisplayOption "bar" } Block { BlockType Mux Name "Mux4" Ports [4, 1] Position [1010, 165, 1015, 260] ShowName off DisplayOption "bar" } Block { BlockType Mux Name "Mux5" Ports [4, 1] Position [1010, 265, 1015, 360] ShowName off DisplayOption "bar" } Block { BlockType UnitDelay Name "Unit Delay13" Position [415, 28, 450, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay16" Position [355, 28, 390, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay17" Position [145, 28, 180, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay18" Position [295, 28, 330, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay19" Position [225, 28, 260, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay20" Position [865, 28, 900, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay21" Position [795, 28, 830, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay22" Position [725, 28, 760, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay23" Position [655, 28, 690, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay24" Position [590, 28, 625, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay25" Position [535, 28, 570, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay26" Position [475, 28, 510, 62] SampleTime "-1" } Block { BlockType Outport Name "Out1" Position [925, 38, 955, 52] IconDisplay "Port number" } Block { BlockType Outport Name "Out2" Position [1040, 208, 1070, 222] Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Out3" Position [1040, 308, 1070, 322] Port "3" IconDisplay "Port number" } Block { BlockType Outport Name "Out4" Position [1040, 408, 1070, 422] Port "4" IconDisplay "Port number" } Line { SrcBlock "Unit Delay21" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay20" DstPort 1 } Branch { Points [0, 130] DstBlock "Mux4" DstPort 1 } } Line { SrcBlock "Unit Delay22" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay21" DstPort 1 } Branch { Points [0, 155] DstBlock "Mux4" DstPort 2 } } Line { SrcBlock "Unit Delay23" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay22" DstPort 1 } Branch { Points [0, 180] DstBlock "Mux4" DstPort 3 } } Line { SrcBlock "Unit Delay24" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay23" DstPort 1 } Branch { Points [0, 205] DstBlock "Mux4" DstPort 4 } } Line { SrcBlock "Unit Delay25" SrcPort 1 Points [0, 0] Branch { DstBlock "Unit Delay24" DstPort 1 } Branch { Points [0, 230] DstBlock "Mux5" DstPort 1 } } Line { SrcBlock "Unit Delay26" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay25" DstPort 1 } Branch { Points [0, 255] DstBlock "Mux5" DstPort 2 } } Line { SrcBlock "Unit Delay13" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay26" DstPort 1 } Branch { Points [0, 280] DstBlock "Mux5" DstPort 3 } } Line { SrcBlock "Unit Delay16" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay13" DstPort 1 } Branch { Points [0, 305] DstBlock "Mux5" DstPort 4 } } Line { SrcBlock "Unit Delay19" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay18" DstPort 1 } Branch { Points [0, 355] DstBlock "Mux3" DstPort 2 } } Line { SrcBlock "Unit Delay17" SrcPort 1 Points [15, 0] Branch { DstBlock "Unit Delay19" DstPort 1 } Branch { Points [0, 380] DstBlock "Mux3" DstPort 3 } } Line { SrcBlock "Unit Delay18" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay16" DstPort 1 } Branch { Points [0, 330] DstBlock "Mux3" DstPort 1 } } Line { SrcBlock "In1" SrcPort 1 Points [15, 0] Branch { DstBlock "Unit Delay17" DstPort 1 } Branch { Points [0, 405] DstBlock "Mux3" DstPort 4 } } Line { SrcBlock "Unit Delay20" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "Mux4" SrcPort 1 DstBlock "Out2" DstPort 1 } Line { SrcBlock "Mux5" SrcPort 1 DstBlock "Out3" DstPort 1 } Line { SrcBlock "Mux3" SrcPort 1 DstBlock "Out4" DstPort 1 } } } Block { BlockType SubSystem Name "Subsystem4" Ports [1, 4] Position [485, 314, 575, 451] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Subsystem4" Location [245, 156, 1119, 545] Open off 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 "80" Block { BlockType Inport Name "In1" Position [50, 38, 80, 52] IconDisplay "Port number" } Block { BlockType Mux Name "Mux3" Ports [4, 1] Position [1010, 365, 1015, 460] ShowName off DisplayOption "bar" } Block { BlockType Mux Name "Mux4" Ports [4, 1] Position [1010, 165, 1015, 260] ShowName off DisplayOption "bar" } Block { BlockType Mux Name "Mux5" Ports [4, 1] Position [1010, 265, 1015, 360] ShowName off DisplayOption "bar" } Block { BlockType UnitDelay Name "Unit Delay13" Position [415, 28, 450, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay16" Position [355, 28, 390, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay17" Position [145, 28, 180, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay18" Position [295, 28, 330, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay19" Position [225, 28, 260, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay20" Position [865, 28, 900, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay21" Position [795, 28, 830, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay22" Position [725, 28, 760, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay23" Position [655, 28, 690, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay24" Position [590, 28, 625, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay25" Position [535, 28, 570, 62] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay26" Position [475, 28, 510, 62] SampleTime "-1" } Block { BlockType Outport Name "Out1" Position [925, 38, 955, 52] IconDisplay "Port number" } Block { BlockType Outport Name "Out2" Position [1040, 208, 1070, 222] Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Out3" Position [1040, 308, 1070, 322] Port "3" IconDisplay "Port number" } Block { BlockType Outport Name "Out4" Position [1040, 408, 1070, 422] Port "4" IconDisplay "Port number" } Line { SrcBlock "Unit Delay21" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay20" DstPort 1 } Branch { Points [0, 130] DstBlock "Mux4" DstPort 1 } } Line { SrcBlock "Unit Delay22" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay21" DstPort 1 } Branch { Points [0, 155] DstBlock "Mux4" DstPort 2 } } Line { SrcBlock "Unit Delay23" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay22" DstPort 1 } Branch { Points [0, 180] DstBlock "Mux4" DstPort 3 } } Line { SrcBlock "Unit Delay24" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay23" DstPort 1 } Branch { Points [0, 205] DstBlock "Mux4" DstPort 4 } } Line { SrcBlock "Unit Delay25" SrcPort 1 Points [0, 0] Branch { DstBlock "Unit Delay24" DstPort 1 } Branch { Points [0, 230] DstBlock "Mux5" DstPort 1 } } Line { SrcBlock "Unit Delay26" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay25" DstPort 1 } Branch { Points [0, 255] DstBlock "Mux5" DstPort 2 } } Line { SrcBlock "Unit Delay13" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay26" DstPort 1 } Branch { Points [0, 280] DstBlock "Mux5" DstPort 3 } } Line { SrcBlock "Unit Delay16" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay13" DstPort 1 } Branch { Points [0, 305] DstBlock "Mux5" DstPort 4 } } Line { SrcBlock "Unit Delay19" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay18" DstPort 1 } Branch { Points [0, 355] DstBlock "Mux3" DstPort 2 } } Line { SrcBlock "Unit Delay17" SrcPort 1 Points [15, 0] Branch { DstBlock "Unit Delay19" DstPort 1 } Branch { Points [0, 380] DstBlock "Mux3" DstPort 3 } } Line { SrcBlock "Unit Delay18" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay16" DstPort 1 } Branch { Points [0, 330] DstBlock "Mux3" DstPort 1 } } Line { SrcBlock "In1" SrcPort 1 Points [15, 0] Branch { DstBlock "Unit Delay17" DstPort 1 } Branch { Points [0, 405] DstBlock "Mux3" DstPort 4 } } Line { SrcBlock "Unit Delay20" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "Mux4" SrcPort 1 DstBlock "Out2" DstPort 1 } Line { SrcBlock "Mux5" SrcPort 1 DstBlock "Out3" DstPort 1 } Line { SrcBlock "Mux3" SrcPort 1 DstBlock "Out4" DstPort 1 } } } Block { BlockType UnitDelay Name "Unit Delay" Position [1680, 93, 1715, 127] SampleTime "-1" } Block { BlockType Outport Name "header enable" Position [1870, 268, 1900, 282] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "p" Position [1355, 138, 1385, 152] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "q" Position [1355, 173, 1385, 187] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "r" Position [1355, 208, 1385, 222] Port "4" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "accx" Position [1180, 193, 1210, 207] Port "5" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "accy" Position [1180, 228, 1210, 242] Port "6" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "accz" Position [1180, 263, 1210, 277] Port "7" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "magnetox" Position [1005, 248, 1035, 262] Port "8" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "magnetoy" Position [1005, 283, 1035, 297] Port "9" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "magnetoz" Position [1005, 318, 1035, 332] Port "10" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "vitx" Position [815, 303, 845, 317] Port "11" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "vity" Position [815, 338, 845, 352] Port "12" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "vitz" Position [815, 373, 845, 387] Port "13" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "phi" Position [630, 358, 660, 372] Port "14" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "théta" Position [630, 393, 660, 407] Port "15" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "psi" Position [630, 428, 660, 442] Port "16" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Unit Delay" SrcPort 1 Points [30, 0] DstBlock "Compare2" DstPort 1 } Line { SrcBlock "Logical\nOperator" SrcPort 1 DstBlock "header enable" DstPort 1 } Line { SrcBlock "Compare2" SrcPort 1 Points [0, 60] DstBlock "Logical\nOperator" DstPort 1 } Line { SrcBlock "Compare1" SrcPort 1 Points [0, 85] DstBlock "Logical\nOperator" DstPort 2 } Line { SrcBlock "Subsystem" SrcPort 2 DstBlock "p" DstPort 1 } Line { SrcBlock "Subsystem" SrcPort 3 DstBlock "q" DstPort 1 } Line { SrcBlock "Subsystem" SrcPort 4 DstBlock "r" DstPort 1 } Line { SrcBlock "Subsystem" SrcPort 1 Points [315, 0] Branch { DstBlock "Unit Delay" DstPort 1 } Branch { Points [0, 0] DstBlock "Compare1" DstPort 1 } } Line { SrcBlock "Subsystem1" SrcPort 1 DstBlock "Subsystem" DstPort 1 } Line { SrcBlock "Subsystem2" SrcPort 1 DstBlock "Subsystem1" DstPort 1 } Line { SrcBlock "Subsystem3" SrcPort 1 DstBlock "Subsystem2" DstPort 1 } Line { SrcBlock "Subsystem4" SrcPort 1 DstBlock "Subsystem3" DstPort 1 } Line { SrcBlock "Subsystem1" SrcPort 2 DstBlock "accx" DstPort 1 } Line { SrcBlock "Subsystem1" SrcPort 3 DstBlock "accy" DstPort 1 } Line { SrcBlock "Subsystem1" SrcPort 4 DstBlock "accz" DstPort 1 } Line { SrcBlock "Subsystem2" SrcPort 2 DstBlock "magnetox" DstPort 1 } Line { SrcBlock "Subsystem2" SrcPort 3 DstBlock "magnetoy" DstPort 1 } Line { SrcBlock "Subsystem2" SrcPort 4 DstBlock "magnetoz" DstPort 1 } Line { SrcBlock "Subsystem3" SrcPort 2 DstBlock "vitx" DstPort 1 } Line { SrcBlock "Subsystem3" SrcPort 3 DstBlock "vity" DstPort 1 } Line { SrcBlock "Subsystem3" SrcPort 4 DstBlock "vitz" DstPort 1 } Line { SrcBlock "Subsystem4" SrcPort 2 DstBlock "phi" DstPort 1 } Line { SrcBlock "Subsystem4" SrcPort 3 DstBlock "théta" DstPort 1 } Line { SrcBlock "Subsystem4" SrcPort 4 DstBlock "psi" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Subsystem4" DstPort 1 } } } Block { BlockType SubSystem Name "Décodge trame série" Ports [1, 6] Position [110, 145, 225, 455] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Décodge trame série" Location [2, 82, 1270, 957] 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 "100" Block { BlockType Inport Name "In1" Position [15, 503, 45, 517] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Reference Name "Compare\nTo Constant" Ports [1, 1] Position [1365, 580, 1395, 610] Orientation "down" NamePlacement "alternate" 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 [1480, 580, 1510, 610] Orientation "down" NamePlacement "alternate" 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.0" LogicOutDataTypeMode "uint8" ZeroCross off } Block { BlockType Logic Name "Logical\nOperator" Ports [2, 1] Position [1422, 675, 1453, 705] Orientation "down" NamePlacement "alternate" AllPortsSameDT off OutDataTypeMode "boolean" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [1170, 406, 1175, 444] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [1170, 351, 1175, 389] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux2" Ports [2, 1] Position [1170, 296, 1175, 334] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux3" Ports [2, 1] Position [1170, 241, 1175, 279] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux4" Ports [2, 1] Position [1170, 181, 1175, 219] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType UnitDelay Name "Unit Delay1" Position [1090, 493, 1125, 527] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay10" Position [725, 493, 760, 527] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay11" Position [800, 493, 835, 527] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay12" Position [870, 493, 905, 527] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay13" Position [945, 493, 980, 527] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay14" Position [1015, 493, 1050, 527] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay15" Position [1430, 493, 1465, 527] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay16" Position [65, 493, 95, 527] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay2" Position [130, 493, 165, 527] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay3" Position [205, 493, 240, 527] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay4" Position [275, 493, 310, 527] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay5" Position [340, 493, 375, 527] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay6" Position [415, 493, 450, 527] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay7" Position [495, 493, 530, 527] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay8" Position [575, 493, 610, 527] SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay9" Position [650, 493, 685, 527] SampleTime "-1" } Block { BlockType Outport Name "R" Position [1280, 418, 1310, 432] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "T" Position [1280, 363, 1310, 377] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "L" Position [1280, 308, 1310, 322] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "P" Position [1280, 253, 1310, 267] Port "4" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Arrêt" Position [1280, 193, 1310, 207] Port "5" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Autorisation de lecture" Position [1475, 738, 1505, 752] Port "6" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Unit Delay2" SrcPort 1 DstBlock "Unit Delay3" DstPort 1 } Line { SrcBlock "Unit Delay3" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay4" DstPort 1 } Branch { Points [0, -320] DstBlock "Mux4" DstPort 1 } } Line { SrcBlock "Unit Delay4" SrcPort 1 Points [5, 0] Branch { DstBlock "Unit Delay5" DstPort 1 } Branch { Points [0, -300] DstBlock "Mux4" DstPort 2 } } Line { SrcBlock "Unit Delay6" SrcPort 1 Points [15, 0] Branch { DstBlock "Unit Delay7" DstPort 1 } Branch { Points [0, -240] DstBlock "Mux3" DstPort 2 } } Line { SrcBlock "Unit Delay7" SrcPort 1 Points [15, 0] Branch { DstBlock "Unit Delay8" DstPort 1 } Branch { Points [0, -205] DstBlock "Mux2" DstPort 1 } } Line { SrcBlock "Unit Delay8" SrcPort 1 Points [15, 0] Branch { DstBlock "Unit Delay9" DstPort 1 } Branch { Points [0, -185] DstBlock "Mux2" DstPort 2 } } Line { SrcBlock "Unit Delay9" SrcPort 1 Points [15, 0] Branch { DstBlock "Unit Delay10" DstPort 1 } Branch { Points [0, -150] DstBlock "Mux1" DstPort 1 } } Line { SrcBlock "Unit Delay10" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay11" DstPort 1 } Branch { Points [0, -130] DstBlock "Mux1" DstPort 2 } } Line { SrcBlock "Unit Delay11" SrcPort 1 DstBlock "Unit Delay12" DstPort 1 } Line { SrcBlock "Unit Delay12" SrcPort 1 DstBlock "Unit Delay13" DstPort 1 } Line { SrcBlock "Unit Delay13" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay14" DstPort 1 } Branch { Points [0, -95] DstBlock "Mux" DstPort 1 } } Line { SrcBlock "Unit Delay14" SrcPort 1 Points [15, 0] Branch { DstBlock "Unit Delay1" DstPort 1 } Branch { Points [0, -75] DstBlock "Mux" DstPort 2 } } Line { SrcBlock "Unit Delay15" SrcPort 1 Points [25, 0] DstBlock "Compare\nTo Constant1" DstPort 1 } Line { SrcBlock "Compare\nTo Constant" SrcPort 1 Points [0, 20; 50, 0] DstBlock "Logical\nOperator" DstPort 1 } Line { SrcBlock "Compare\nTo Constant1" SrcPort 1 Points [0, 20; -50, 0] DstBlock "Logical\nOperator" DstPort 2 } Line { SrcBlock "Unit Delay5" SrcPort 1 Points [10, 0] Branch { DstBlock "Unit Delay6" DstPort 1 } Branch { Points [0, -260] DstBlock "Mux3" DstPort 1 } } Line { Labels [0, 0] SrcBlock "In1" SrcPort 1 DstBlock "Unit Delay16" DstPort 1 } Line { SrcBlock "Logical\nOperator" SrcPort 1 Points [0, 35] DstBlock "Autorisation de lecture" DstPort 1 } Line { Labels [0, 0] SrcBlock "Unit Delay16" SrcPort 1 DstBlock "Unit Delay2" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "R" DstPort 1 } Line { SrcBlock "Unit Delay1" SrcPort 1 Points [250, 0] Branch { DstBlock "Unit Delay15" DstPort 1 } Branch { DstBlock "Compare\nTo Constant" DstPort 1 } } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "T" DstPort 1 } Line { SrcBlock "Mux2" SrcPort 1 DstBlock "L" DstPort 1 } Line { SrcBlock "Mux3" SrcPort 1 DstBlock "P" DstPort 1 } Line { SrcBlock "Mux4" SrcPort 1 DstBlock "Arrêt" DstPort 1 } } } Block { BlockType Gain Name "Gain" Position [700, 235, 730, 265] Gain "0.4" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "single" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [825, 555, 850, 585] Gain "180/pi" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" Position [825, 735, 850, 765] Gain "100*180/pi" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain3" Position [635, 235, 665, 265] Gain "[0 0.25 -0.25 0.1667; 0.25 -0.125 -0.125 -0.1667; -0.25 -0.125 -0.125 0.1667; 0 0.25 -0.25 -0.1667; 0.25 -0.125 -0.125 0.1667; -0.25 -0.125 -0.125 -0.1667]" Multiplication "Matrix(K*u)" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "single" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" Position [620, 600, 650, 630] Gain "180/pi" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" Position [820, 645, 850, 675] Gain "180/pi" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain6" Position [625, 780, 650, 810] Gain "100*180/pi" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain7" Position [625, 690, 650, 720] Gain "100*180/pi" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "Generate Code" Ports [] Position [275, 34, 387, 90] BackgroundColor "yellow" DropShadow on SourceBlock "dsPICdrivers/Simulink Configuration/Generate Code" SourceType "" } Block { BlockType Reference Name "I2C Bus Master" Tag "dsPIC_I2C_Master" Ports [6] Position [1115, 162, 1250, 398] List { ListType RTWdata NbrInput8Data "6" NbrOutput8Data "0" LengthListeCmdI2C "24" NumI2C "1" Enable "0" Adress10Bits "0" I2CBusFreq " 50" SlewRate "0" Disable "0" WaitAfterEnable "1" SMBUSThreshold "0" OutputErrorFlag "0" Initialisation "1" } SourceBlock "dsPICdrivers/BUS I2C/I2C Bus Master" SourceType "I2C Master" NumI2C "1" Sequence "'S A82 W P S A84 W P S A86 W P S A88 W P S A90 W P S A92 W P'" InitializeOnceOnly "When PIC is initialized (only once)" Enable off WaitAfterEnable "1" Disable off AdressNbrBits "7 bits" I2CBusFreq " 50" SlewRate off SMBUSThreshold off OutputErrorFlag off SampleTime "-1" OrderingInOutPopup "None" Info "Fscl = 401.0025 KHz" } Block { BlockType Reference Name "Master" Tag "dsPIC_MASTER" Ports [] Position [39, 35, 139, 85] BackgroundColor "lightBlue" DropShadow on Priority "1" List { ListType RTWdata NumBusyPort "-1" } SourceBlock "dsPICdrivers/Master" SourceType "Master" TimeStepType "Timer1" picType "30f4013" fcy "32e6" Quartz_33f "5e6" PLLActive_33f off fcyDesired_33f "0" tmr1 "[1 3199 0]" tmr1Info "Time Step : 0.0001 ; Error : 0% PR1=3199" tmr2345 "[0 0 0 0]" tmr2345cfg "[-1 -1 -1 -1]" IOautoConf on typePort "[ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 4 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 20 20 4 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ]" TRIS "[ 65535 65534 65535 65535 65535 65535 65535 ]" ADPCFG "1" MasterBusyPort "None" MasterOverloadPort "B0" FOSC "XT_PLL16" ClockSwitchMonitor "Both disabled" TempProtection_33f "TEMP_ON" FPBOR "PBOR_OFF" PWRT "PWRT_OFF" MCLR "MCLR_DIS" PowerSave off OverrideFcy off NewFcy "1e6" PR2345 "[65535 65535 65535 65535]" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [595, 151, 600, 349] ShowName off DisplayOption "bar" } Block { BlockType SubSystem Name "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" Ports [15, 15, 0, 1] Position [425, 497, 500, 933] TreatAsAtomicUnit on MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" Location [0, 82, 1268, 1000] Open off 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 "100" Block { BlockType Inport Name "In1" Position [180, 258, 210, 272] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In2" Position [180, 283, 210, 297] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In3" Position [180, 308, 210, 322] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In4" Position [180, 333, 210, 347] Port "4" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In5" Position [180, 358, 210, 372] Port "5" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In6" Position [180, 383, 210, 397] Port "6" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In7" Position [180, 408, 210, 422] Port "7" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In8" Position [180, 433, 210, 447] Port "8" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In9" Position [180, 458, 210, 472] Port "9" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In10" Position [180, 483, 210, 497] Port "10" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In11" Position [180, 508, 210, 522] Port "11" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In12" Position [180, 533, 210, 547] Port "12" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In13" Position [180, 558, 210, 572] Port "13" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In14" Position [180, 583, 210, 597] Port "14" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In15" Position [180, 608, 210, 622] Port "15" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType TriggerPort Name "Trigger" Ports [] Position [280, 125, 300, 145] StatesWhenEnabling "held" } Block { BlockType Reference Name "Byte Unpacking " Ports [1, 15] Position [310, 194, 475, 686] SourceBlock "xpcutilitieslib/Byte Unpacking " SourceType "xpcbytepacking" MaskUnpackedDataTypes "{'single','single' ,'single' ,'single' ,'single' ,'single' ,'single' ,'single' ,'single' ,'single' ,'single' ,'single' ,'single','single' ,'single' }" MaskUnpackedDataSizes "{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}" MaskAlignment "1" } Block { BlockType Mux Name "Mux" Ports [15, 1] Position [250, 235, 255, 645] ShowName off Inputs "15" DisplayOption "bar" } Block { BlockType Outport Name "Out1" Position [680, 223, 710, 237] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out2" Position [680, 253, 710, 267] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out3" Position [680, 283, 710, 297] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out4" Position [680, 313, 710, 327] Port "4" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out5" Position [680, 343, 710, 357] Port "5" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out6" Position [680, 373, 710, 387] Port "6" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out7" Position [680, 403, 710, 417] Port "7" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out8" Position [680, 433, 710, 447] Port "8" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out9" Position [680, 463, 710, 477] Port "9" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out10" Position [680, 493, 710, 507] Port "10" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out11" Position [680, 523, 710, 537] Port "11" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out12" Position [680, 553, 710, 567] Port "12" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out13" Position [680, 583, 710, 597] Port "13" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out14" Position [680, 613, 710, 627] Port "14" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out15" Position [680, 643, 710, 657] Port "15" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Byte Unpacking " SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 2 DstBlock "Out2" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 4 DstBlock "Out4" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 5 DstBlock "Out5" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 6 DstBlock "Out6" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 3 DstBlock "Out3" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Byte Unpacking " DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 7 DstBlock "Out7" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 8 DstBlock "Out8" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 9 DstBlock "Out9" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 10 DstBlock "Out10" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 11 DstBlock "Out11" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 12 DstBlock "Out12" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 13 DstBlock "Out13" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 14 DstBlock "Out14" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 15 DstBlock "Out15" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "In2" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "In3" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "In4" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "In5" SrcPort 1 DstBlock "Mux" DstPort 5 } Line { SrcBlock "In6" SrcPort 1 DstBlock "Mux" DstPort 6 } Line { SrcBlock "In7" SrcPort 1 DstBlock "Mux" DstPort 7 } Line { SrcBlock "In8" SrcPort 1 DstBlock "Mux" DstPort 8 } Line { SrcBlock "In9" SrcPort 1 DstBlock "Mux" DstPort 9 } Line { SrcBlock "In10" SrcPort 1 DstBlock "Mux" DstPort 10 } Line { SrcBlock "In11" SrcPort 1 DstBlock "Mux" DstPort 11 } Line { SrcBlock "In12" SrcPort 1 DstBlock "Mux" DstPort 12 } Line { SrcBlock "In13" SrcPort 1 DstBlock "Mux" DstPort 13 } Line { SrcBlock "In14" SrcPort 1 DstBlock "Mux" DstPort 14 } Line { SrcBlock "In15" SrcPort 1 DstBlock "Mux" DstPort 15 } } } Block { BlockType Reference Name "Rx Input" Tag "dsPIC_RX" Ports [0, 1] Position [15, 283, 85, 317] Priority "5" SourceBlock "dsPICdrivers/Serial PORT/Rx Input" SourceType "Rx" UART "2" SampleTime "0.0001" BlockingFctChk off OutputDefault "0" IsPresentFlagChk off } Block { BlockType Reference Name "Rx Input1" Tag "dsPIC_RX" Ports [0, 1] Position [100, 682, 170, 718] NamePlacement "alternate" ShowName off Priority "5" SourceBlock "dsPICdrivers/Serial PORT/Rx Input" SourceType "Rx" UART "1" SampleTime "1e-4" BlockingFctChk off OutputDefault "0" IsPresentFlagChk off } Block { BlockType SubSystem Name "Sécurités" Ports [3, 1] Position [890, 238, 1000, 322] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Sécurités" Location [2, 82, 1270, 974] Open off 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 "100" Block { BlockType Inport Name "In1" Position [665, 288, 695, 302] IconDisplay "Port number" } Block { BlockType Inport Name "In2" Position [380, 243, 410, 257] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "In3" Position [380, 308, 410, 322] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Reference Name "Compare\nTo Constant" Ports [1, 1] Position [475, 300, 505, 330] 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 "9" LogicOutDataTypeMode "uint8" ZeroCross off } Block { BlockType Constant Name "Constant1" Position [665, 190, 695, 220] Value "[0;0;0;0;0;0]" OutDataTypeMode "uint8" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "Enabled\nSubsystem" Ports [1, 1, 1] Position [475, 229, 575, 271] NamePlacement "alternate" TreatAsAtomicUnit on MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Enabled\nSubsystem" Location [421, 301, 919, 601] Open off 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 "100" Block { BlockType Inport Name "In1" Position [110, 103, 140, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType EnablePort Name "Enable" Ports [] Position [235, 20, 255, 40] } Block { BlockType Outport Name "Out1" Position [360, 103, 390, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "In1" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Switch Name "Switch1" Position [775, 184, 815, 316] NamePlacement "alternate" ShowName off Threshold "19" InputSameDT off OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Out1" Position [875, 243, 905, 257] IconDisplay "Port number" } Line { SrcBlock "Constant1" SrcPort 1 DstBlock "Switch1" DstPort 1 } Line { SrcBlock "Switch1" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "In3" SrcPort 1 DstBlock "Compare\nTo Constant" DstPort 1 } Line { SrcBlock "In2" SrcPort 1 DstBlock "Enabled\nSubsystem" DstPort 1 } Line { SrcBlock "Enabled\nSubsystem" SrcPort 1 DstBlock "Switch1" DstPort 2 } Line { SrcBlock "Compare\nTo Constant" SrcPort 1 Points [15, 0] DstBlock "Enabled\nSubsystem" DstPort enable } Line { SrcBlock "In1" SrcPort 1 DstBlock "Switch1" DstPort 3 } } } Block { BlockType Reference Name "TX Output Multiplexed\nfor Matlab / Labview" Tag "dsPIC_TX_Multiplexed" Ports [6] Position [1090, 546, 1180, 819] Priority "5" SourceBlock "dsPICdrivers/Serial PORT/TX Output Multiplexed\nfor Matlab // Labview" SourceType "send structured data frame to Matlab / Labview" UART "2" CleverSpreadingChk on CleverSpreading "1" CHANNEL "[0 1 2 3 4 5]" CHANNELBLOCKED "[]" CHANNELBLOCKED_BITEWISE "0" Status "OK" } Block { BlockType SubSystem Name "Transformation en Angles" Ports [1, 1] Position [455, 161, 550, 189] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Transformation en Angles" Location [2, 82, 1270, 974] Open off 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 "100" Block { BlockType Inport Name "In1" Position [350, 153, 380, 167] IconDisplay "Port number" } Block { BlockType Constant Name "Constant1" Position [340, 225, 370, 255] Value "95" OutDataTypeMode "single" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [490, 145, 520, 175] Gain "pi/(180*0.909)" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "single" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [420, 150, 440, 170] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "single" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Out1" Position [560, 153, 590, 167] IconDisplay "Port number" } Line { SrcBlock "Constant1" SrcPort 1 Points [55, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType SubSystem Name "Transformation en Angles1" Ports [1, 1] Position [455, 211, 550, 239] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Transformation en Angles1" Location [2, 82, 1270, 974] Open off 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 "100" Block { BlockType Inport Name "In1" Position [350, 153, 380, 167] IconDisplay "Port number" } Block { BlockType Constant Name "Constant1" Position [340, 225, 370, 255] Value "159" OutDataTypeMode "single" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [490, 145, 520, 175] Gain "pi/(0.909*180)" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "single" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [420, 150, 440, 170] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "single" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Out1" Position [560, 153, 590, 167] IconDisplay "Port number" } Line { SrcBlock "Constant1" SrcPort 1 Points [55, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType SubSystem Name "Transformation en Angles2" Ports [1, 1] Position [455, 261, 550, 289] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Transformation en Angles2" Location [2, 82, 1270, 974] Open off 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 "100" Block { BlockType Inport Name "In1" Position [350, 153, 380, 167] IconDisplay "Port number" } Block { BlockType Constant Name "Constant1" Position [340, 225, 370, 255] Value "224" OutDataTypeMode "single" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [490, 145, 520, 175] Gain "pi/(0.909*180)" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "single" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [420, 150, 440, 170] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "single" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Out1" Position [560, 153, 590, 167] IconDisplay "Port number" } Line { SrcBlock "Constant1" SrcPort 1 Points [55, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType SubSystem Name "Transformation en Angles3" Ports [1, 1] Position [455, 311, 550, 339] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Transformation en Angles3" Location [2, 82, 1270, 974] Open off 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 "100" Block { BlockType Inport Name "In1" Position [295, 153, 325, 167] IconDisplay "Port number" } Block { BlockType Constant Name "Constant1" Position [340, 225, 370, 255] Value "530.3352" OutDataTypeMode "single" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" Position [350, 145, 380, 175] Gain "72.2568" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "single" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [420, 150, 440, 170] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "single" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Out1" Position [550, 153, 580, 167] IconDisplay "Port number" } Line { SrcBlock "Constant1" SrcPort 1 Points [55, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 1 } } } Block { BlockType SubSystem Name "Triggered\nSubsystem" Ports [5, 5, 0, 1] Position [300, 143, 395, 407] NamePlacement "alternate" TreatAsAtomicUnit on MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off System { Name "Triggered\nSubsystem" Location [2, 82, 1270, 974] Open off 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 "100" Block { BlockType Inport Name "In1" Position [90, 318, 120, 332] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In2" Position [90, 358, 120, 372] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In3" Position [90, 398, 120, 412] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In4" Position [90, 438, 120, 452] Port "4" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "In5" Position [90, 478, 120, 492] Port "5" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType TriggerPort Name "Trigger" Ports [] Position [380, 220, 400, 240] StatesWhenEnabling "held" } Block { BlockType Reference Name "Byte Unpacking " Ports [1, 5] Position [340, 317, 430, 493] SourceBlock "xpcutilitieslib/Byte Unpacking " SourceType "xpcbytepacking" MaskUnpackedDataTypes "{'uint16','uint16','uint16','uint16','uint16'}" MaskUnpackedDataSizes "{1,1,1,1,1}" MaskAlignment "1" } Block { BlockType Gain Name "Gain" Position [670, 320, 700, 350] Gain "1/16" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "uint8" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [670, 355, 700, 385] Gain "1/16" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "uint8" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" Position [670, 390, 700, 420] Gain "1/16" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "uint8" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain3" Position [670, 425, 700, 455] Gain "1/16" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "uint8" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" Position [670, 460, 700, 490] Gain "1/16" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataTypeMode "uint8" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Mux Name "Mux" Ports [5, 1] Position [205, 303, 210, 507] ShowName off Inputs "5" DisplayOption "bar" } Block { BlockType Outport Name "Out1" Position [765, 328, 795, 342] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out2" Position [765, 363, 795, 377] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out3" Position [765, 398, 795, 412] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out4" Position [765, 433, 795, 447] Port "4" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Out5" Position [765, 468, 795, 482] Port "5" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Byte Unpacking " DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "In2" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "In3" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "In4" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "Byte Unpacking " SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 3 DstBlock "Gain2" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 2 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 4 DstBlock "Gain3" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Out2" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 DstBlock "Out3" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 DstBlock "Out4" DstPort 1 } Line { SrcBlock "Gain4" SrcPort 1 DstBlock "Out5" DstPort 1 } Line { SrcBlock "Byte Unpacking " SrcPort 5 DstBlock "Gain4" DstPort 1 } Line { SrcBlock "In5" SrcPort 1 DstBlock "Mux" DstPort 5 } } } Block { BlockType Reference Name "Tx Output1" Tag "dsPIC_TX" Ports [1] Position [1025, 419, 1095, 451] Priority "5" SourceBlock "dsPICdrivers/Serial PORT/Tx Output" SourceType "Serial Transmition" UART "1" OrderingInOutPopup "None" } Block { BlockType Reference Name "UART Configuration1" Tag "dsPIC_config_UART" Ports [] Position [785, 33, 885, 83] BackgroundColor "lightBlue" DropShadow on Priority "2" List { ListType RTWdata RxBufferSize "64" } SourceBlock "dsPICdrivers/Serial PORT/UART Configuration" SourceType "Configure UART" UART "1" proposed_BAUD "115200" ALT_TX_RX on InterruptTxWhen "When Transmit Buffer is empty" TXInterruptPri "7" TxBufferSize "4" TXEN on InterruptRxWhen "When Receive Buffer is full (contain 4 characters)" RXInterruptPri "6" RxBufferSize "64" BAUD "115200" UxBRG "16" Info "UxBRG = 16 || Real Baud : 117647 || % error : 2.1242 || max 1.1765 Bytes / Step" RealBaud "0" } Block { BlockType Reference Name "UART Configuration2" Tag "dsPIC_config_UART" Ports [] Position [665, 33, 765, 83] BackgroundColor "lightBlue" DropShadow on Priority "2" List { ListType RTWdata RxBufferSize "16" } SourceBlock "dsPICdrivers/Serial PORT/UART Configuration" SourceType "Configure UART" UART "2" proposed_BAUD "115200" ALT_TX_RX off InterruptTxWhen "When Transmit Buffer is empty" TXInterruptPri "1" TxBufferSize "4" TXEN on InterruptRxWhen "When Receive Buffer is full (contain 4 characters)" RXInterruptPri "5" RxBufferSize "16" BAUD "115200" UxBRG "16" Info "UxBRG = 16 || Real Baud : 117647 || % error : 2.1242 || max 1.1765 Bytes / Step" RealBaud "0" } Block { BlockType Reference Name "dbl-click to open\nGraphical interface" Ports [] Position [550, 33, 650, 83] 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 "Rx Input" SrcPort 1 DstBlock "Décodge trame série" DstPort 1 } Line { SrcBlock "Décodge trame série" SrcPort 1 DstBlock "Triggered\nSubsystem" DstPort 1 } Line { SrcBlock "Décodge trame série" SrcPort 2 DstBlock "Triggered\nSubsystem" DstPort 2 } Line { SrcBlock "Décodge trame série" SrcPort 3 DstBlock "Triggered\nSubsystem" DstPort 3 } Line { SrcBlock "Décodge trame série" SrcPort 4 DstBlock "Triggered\nSubsystem" DstPort 4 } Line { SrcBlock "Triggered\nSubsystem" SrcPort 1 DstBlock "Transformation en Angles" DstPort 1 } Line { SrcBlock "Transformation en Angles" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Transformation en Angles3" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "Transformation en Angles2" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "Triggered\nSubsystem" SrcPort 2 DstBlock "Transformation en Angles1" DstPort 1 } Line { SrcBlock "Transformation en Angles1" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Gain3" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Data Type Conversion" DstPort 1 } Line { SrcBlock "Data Type Conversion" SrcPort 1 DstBlock "Sécurités" DstPort 1 } Line { SrcBlock "Triggered\nSubsystem" SrcPort 3 DstBlock "Transformation en Angles2" DstPort 1 } Line { SrcBlock "Triggered\nSubsystem" SrcPort 4 Points [25, 0] Branch { DstBlock "Transformation en Angles3" DstPort 1 } Branch { Points [0, 95; 315, 0; 0, -110] DstBlock "Sécurités" DstPort 3 } } Line { SrcBlock "Décodge trame série" SrcPort 5 DstBlock "Triggered\nSubsystem" DstPort 5 } Line { SrcBlock "Triggered\nSubsystem" SrcPort 5 Points [305, 0; 0, -95] DstBlock "Sécurités" DstPort 2 } Line { SrcBlock "Demux" SrcPort 1 DstBlock "I2C Bus Master" DstPort 1 } Line { SrcBlock "Demux" SrcPort 3 DstBlock "I2C Bus Master" DstPort 3 } Line { SrcBlock "Demux" SrcPort 4 DstBlock "I2C Bus Master" DstPort 4 } Line { SrcBlock "Demux" SrcPort 5 DstBlock "I2C Bus Master" DstPort 5 } Line { SrcBlock "Demux" SrcPort 6 DstBlock "I2C Bus Master" DstPort 6 } Line { SrcBlock "Demux" SrcPort 2 DstBlock "I2C Bus Master" DstPort 2 } Line { SrcBlock "Sécurités" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { Points [485, 1080; 65, 0] } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Data Type Conversion1" DstPort 1 } Line { SrcBlock "Décodage de la trame série" SrcPort 2 DstBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" DstPort 1 } Line { SrcBlock "Décodage de la trame série" SrcPort 3 DstBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" DstPort 2 } Line { SrcBlock "Décodage de la trame série" SrcPort 4 DstBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" DstPort 3 } Line { SrcBlock "Décodage de la trame série" SrcPort 5 DstBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" DstPort 4 } Line { SrcBlock "Décodage de la trame série" SrcPort 6 DstBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" DstPort 5 } Line { SrcBlock "Décodage de la trame série" SrcPort 7 DstBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" DstPort 6 } Line { SrcBlock "Décodage de la trame série" SrcPort 8 DstBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" DstPort 7 } Line { SrcBlock "Décodage de la trame série" SrcPort 10 DstBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" DstPort 9 } Line { SrcBlock "Décodage de la trame série" SrcPort 12 DstBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" DstPort 11 } Line { SrcBlock "Décodage de la trame série" SrcPort 13 DstBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" DstPort 12 } Line { SrcBlock "Décodage de la trame série" SrcPort 14 DstBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" DstPort 13 } Line { SrcBlock "Décodage de la trame série" SrcPort 15 DstBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" DstPort 14 } Line { SrcBlock "Décodage de la trame série" SrcPort 9 DstBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" DstPort 8 } Line { SrcBlock "Gain4" SrcPort 1 DstBlock "Data Type Conversion2" DstPort 1 } Line { SrcBlock "Gain5" SrcPort 1 DstBlock "Data Type Conversion3" DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Tx Output1" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 DstBlock "Data Type Conversion4" DstPort 1 } Line { SrcBlock "Gain6" SrcPort 1 DstBlock "Data Type Conversion5" DstPort 1 } Line { SrcBlock "Gain7" SrcPort 1 DstBlock "Data Type Conversion6" DstPort 1 } Line { SrcBlock "Décodage de la trame série" SrcPort 1 Points [95, 0] DstBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" DstPort trigger } Line { SrcBlock "Décodage de la trame série" SrcPort 16 DstBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" DstPort 15 } Line { SrcBlock "Rx Input1" SrcPort 1 DstBlock "Décodage de la trame série" DstPort 1 } Line { SrcBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" SrcPort 1 Points [240, 0; 0, 65] DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" SrcPort 2 Points [70, 0; 0, 80] DstBlock "Gain4" DstPort 1 } Line { SrcBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" SrcPort 3 Points [50, 0; 0, 95] DstBlock "Gain5" DstPort 1 } Line { SrcBlock "Décodage de la trame série" SrcPort 11 DstBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" DstPort 10 } Line { SrcBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" SrcPort 15 Points [105, 0] DstBlock "Gain6" DstPort 1 } Line { SrcBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" SrcPort 13 Points [50, 0; 0, -160] DstBlock "Gain7" DstPort 1 } Line { SrcBlock "Data Type Conversion1" SrcPort 1 DstBlock "TX Output Multiplexed\nfor Matlab / Labview" DstPort 1 } Line { SrcBlock "Data Type Conversion2" SrcPort 1 DstBlock "TX Output Multiplexed\nfor Matlab / Labview" DstPort 2 } Line { SrcBlock "Data Type Conversion3" SrcPort 1 DstBlock "TX Output Multiplexed\nfor Matlab / Labview" DstPort 3 } Line { SrcBlock "Data Type Conversion6" SrcPort 1 DstBlock "TX Output Multiplexed\nfor Matlab / Labview" DstPort 4 } Line { SrcBlock "Data Type Conversion4" SrcPort 1 DstBlock "TX Output Multiplexed\nfor Matlab / Labview" DstPort 5 } Line { SrcBlock "Data Type Conversion5" SrcPort 1 DstBlock "TX Output Multiplexed\nfor Matlab / Labview" DstPort 6 } Line { SrcBlock "Passage d'un vecteur de 4 octets\nen une donnée de 32 bits" SrcPort 14 Points [80, 0; 0, -145] DstBlock "Gain2" DstPort 1 } Line { SrcBlock "Décodge trame série" SrcPort 6 Points [115, 0] DstBlock "Triggered\nSubsystem" DstPort trigger } } }