Model { Name "UDB4_TestBoard" Version 7.8 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.227" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "windows-1255" SaveDefaultBlockParams on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" DataTypeOverrideAppliesTo "AllNumericTypes" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" FPTRunName "Run 1" MaxMDLFileLineLength 120 Created "Fri Dec 16 08:52:35 2011" Creator "Lior" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "M91449" ModifiedDateFormat "%" LastModifiedDate "Sun Jan 15 23:18:52 2012" RTWModifiedTimeStamp 248569237 ModelVersionFormat "1.%" ConfigurationManager "None" SampleTimeColors off SampleTimeAnnotations off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes on ShowDesignRanges off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowSignalResolutionIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off SimulationMode "normal" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on CovForceBlockReductionOff on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on CovModelRefEnable "Off" CovExternalEMLEnable off ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse off ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.11.1" Array { Type "Handle" Dimension 9 Simulink.SolverCC { $ObjectID 2 Version "1.11.1" StartTime "0.0" StopTime "inf" AbsTol "auto" FixedStep "0.001" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ZcThreshold "auto" ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-3" SolverMode "SingleTasking" ConcurrentTasks off Solver "FixedStepDiscrete" SolverName "FixedStepDiscrete" SolverJacobianMethodControl "auto" ShapePreserveControl "DisableAll" ZeroCrossControl "UseLocalSettings" ZeroCrossAlgorithm "Nonadaptive" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" InsertRTBMode "Whenever possible" } Simulink.DataIOCC { $ObjectID 3 Version "1.11.1" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveCompleteFinalSimState off SaveFormat "Array" SignalLoggingSaveFormat "ModelDataLogs" SaveOutput on SaveState off SignalLogging on DSMLogging on InspectSignalLogs off SaveTime on ReturnWorkspaceOutputs off StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" DSMLoggingName "dsmout" OutputOption "RefineOutputTimes" OutputTimes "[]" ReturnWorkspaceOutputsName "out" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Version "1.11.1" BlockReduction off BooleanDataType on ConditionallyExecuteInputs on InlineParams on UseIntDivNetSlope off UseFloatMulNetSlope off UseSpecifiedMinMax off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse off EnhancedBackFolding off StrengthReduction off ExpressionFolding on BooleansAsBitfields off BitfieldContainerType "uint_T" EnableMemcpy on MemcpyThreshold 64 PassReuseOutputArgsAs "Structure reference" ExpressionDepthLimit 2147483647 FoldNonRolledExpr on LocalBlockOutputs on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero off NoFixptDivByZeroProtection off EfficientFloat2IntCast off EfficientMapNaN2IntZero on OptimizeModelRefInitCode on LifeSpan "1" MaxStackSize "Inherit from target" BufferReusableBoundary on SimCompilerOptimization "Off" AccelVerboseBuild off AccelParallelForEachSubsystem on } Simulink.DebuggingCC { $ObjectID 5 Version "1.11.1" 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 UnderspecifiedInitializationDetection "Classic" MergeDetectMultiDrivingBlocksExec "none" CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "UseLocalSettings" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" TimeAdjustmentMsg "none" MaxConsecutiveZCsMsg "error" MaskedZcDiagnostic "warning" IgnoredZcDiagnostic "warning" 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" FixptConstUnderflowMsg "none" FixptConstOverflowMsg "none" FixptConstPrecisionLossMsg "none" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" FcnCallInpInsideContextMsg "Use local settings" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" FrameProcessingCompatibilityMsg "warning" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceMultiInstanceNormalModeStructChecksumCheck "error" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" SimStateInterfaceChecksumMismatchMsg "warning" SimStateOlderReleaseMsg "error" InitInArrayFormatMsg "warning" StrictBusMsg "ErrorLevel1" BusNameAdapt "WarnAndRepair" NonBusSignalsTreatedAsBus "none" LoggingUnavailableSignals "error" BlockIODiagnostic "none" SFUnusedDataAndEventsDiag "warning" SFUnexpectedBacktrackingDiag "warning" SFInvalidInputDataAccessInChartInitDiag "warning" SFNoUnconditionalDefaultTransitionDiag "warning" SFTransitionOutsideNaturalParentDiag "warning" SFUnconditionalTransitionShadowingDiag "warning" } Simulink.HardwareCC { $ObjectID 6 Version "1.11.1" Array { Type "Cell" Dimension 2 Cell "ProdHWDeviceType" Cell "ProdEqTarget" PropName "DisabledProps" } ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 16 ProdBitPerLong 32 ProdBitPerFloat 32 ProdBitPerDouble 64 ProdBitPerPointer 16 ProdLargestAtomicInteger "Char" ProdLargestAtomicFloat "None" ProdIntDivRoundTo "Undefined" ProdEndianess "LittleEndian" ProdWordSize 16 ProdShiftRightIntArith on ProdHWDeviceType "16-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetBitPerFloat 32 TargetBitPerDouble 64 TargetBitPerPointer 32 TargetLargestAtomicInteger "Char" TargetLargestAtomicFloat "None" TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Specified" TargetUnknown off ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.11.1" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" EnableParallelModelReferenceBuilds off ParallelModelReferenceErrorOnInvalidPool on ParallelModelReferenceMATLABWorkerInit "None" ModelReferenceNumInstancesAllowed "Multi" PropagateVarSize "Infer from blocks in model" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off PropagateSignalLabelsOutOfModel off SupportModelReferenceSimTargetCustomCode off } Simulink.SFSimCC { $ObjectID 8 Version "1.11.1" SFSimEnableDebug on SFSimOverflowDetection on SFSimEcho on SimBlas on SimCtrlC on SimExtrinsic on SimIntegrity on SimUseLocalCustomCode off SimParseCustomCode on SimBuildMode "sf_incremental_build" } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 9 Version "1.11.1" Array { Type "Cell" Dimension 1 Cell "TargetLang" PropName "DisabledProps" } SystemTargetFile "dspic.tlc" GenCodeOnly off MakeCommand "make_CreateMPLAB" 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 RTWUseLocalCustomCode off RTWUseSimCustomCode off IncludeHyperlinkInReport off LaunchReport off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off IncludeERTFirstTime off GenerateTraceInfo off GenerateTraceReport off GenerateTraceReportSl off GenerateTraceReportSf off GenerateTraceReportEml off GenerateCodeInfo off GenerateSLWebview off GenerateCodeMetricsReport off RTWCompilerOptimization "Off" CheckMdlBeforeBuild "Off" CustomRebuildMode "OnUpdate" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 10 Version "1.11.1" ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses off IgnoreTestpoints off IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off MATLABFcnDesc off IncDataTypeInIds off MangleLength 1 CustomSymbolStrGlobalVar "$R$N$M" CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrFcnArg "rt$I$N$M" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off InsertPolySpaceComments off SimulinkBlockComments on MATLABSourceComments off EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off UseSimReservedNames off } Simulink.STFCustomTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 11 Version "1.11.1" Array { Type "Cell" Dimension 6 Cell "GenerateSampleERTMain" Cell "MatFileLogging" Cell "SupportNonInlinedSFcns" Cell "UtilityFuncGeneration" Cell "IncludeMdlTerminateFcn" Cell "ModelReferenceCompliant" PropName "DisabledProps" } TargetFcnLib "ansi_tfl_table_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" TargetFunctionLibrary "ANSI_C" UtilityFuncGeneration "Auto" ERTMultiwordTypeDef "System defined" CodeExecutionProfiling off ERTMultiwordLength 256 MultiwordLength 2048 GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on ParMdlRefBuildCompliant off CompOptLevelCompliant off ConcurrentExecutionCompliant off IncludeMdlTerminateFcn off GeneratePreprocessorConditionals "Use local settings" CombineOutputUpdateFcns on CombineSignalStateStructs off SuppressErrorStatus on ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners on SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging off MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime off SupportNonInlinedSFcns off SupportVariableSizeSignals off EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off CPPClassGenCompliant off AutosarCompliant off SystemTargetFile "dspic.tlc" DialogCategory 0 Array { Type "Handle" Dimension 1 Simulink.ERTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 12 Version "1.11.1" Array { Type "Cell" Dimension 9 Cell "GenerateSampleERTMain" Cell "GenerateErtSFunction" Cell "MatFileLogging" Cell "GRTInterface" Cell "ERTCustomFileTemplate" Cell "SupportNonInlinedSFcns" Cell "UtilityFuncGeneration" Cell "IncludeMdlTerminateFcn" Cell "ModelReferenceCompliant" PropName "DisabledProps" } TargetFcnLib "ansi_tfl_table_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" TargetFunctionLibrary "ANSI_C" UtilityFuncGeneration "Auto" ERTMultiwordTypeDef "System defined" CodeExecutionProfiling off ERTMultiwordLength 256 MultiwordLength 2048 GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on ParMdlRefBuildCompliant off CompOptLevelCompliant off ConcurrentExecutionCompliant off IncludeMdlTerminateFcn off GeneratePreprocessorConditionals "Use local settings" CombineOutputUpdateFcns on CombineSignalStateStructs off SuppressErrorStatus on ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners on SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging off MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime off SupportNonInlinedSFcns off SupportVariableSizeSignals off EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off CPPClassGenCompliant off AutosarCompliant off GenerateErtSFunction off CreateSILPILBlock "None" CodeExecutionProfileVariable "executionProfile" CodeProfilingSaveOptions "SummaryOnly" GenerateASAP2 off ExtMode off ExtModeTransport 0 ExtModeStaticAlloc off ExtModeStaticAllocSize 1000000 ExtModeTesting off ExtModeMexFile "noextcomm" ExtModeIntrfLevel "Level1" InlinedParameterPlacement "NonHierarchical" TargetOS "BareBoardExample" MultiInstanceErrorCode "Error" RateGroupingCode on RootIOFormat "Individual arguments" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off RTWCAPIRootIO 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" CoverageDialogOpen "off" EnableDataOwnership off SignalDisplayLevel 10 ParamTuneLevel 10 GlobalDataDefinition "Auto" DataDefinitionFile "global.c" GlobalDataReference "Auto" ERTFilePackagingFormat "Modular" DataReferenceFile "global.h" GRTInterface off PreserveExpressionOrder off PreserveIfCondition off ConvertIfToSwitch off PreserveExternInFcnDecls on SuppressUnreachableDefaultCases 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" MemSecFuncSharedUtil "Default" CodeProfilingInstrumentation off } PropName "Components" } CustomProperty { DataType "string" Name "GMAKE_PLACE" Value "C:\\PROGRA~1\\MATLAB\\R2011B~1\\bin\\win64\\gmake" } CustomProperty { DataType "string" Name "OPTIM_GCC" Value "-mcpu=33fJ256GP710 -O3 -fschedule-insns -fschedule-insns2" } CustomProperty { DataType "string" Name "LDFLAGS" Value " -Xlinker -t -Xlinker --report-mem -Xlinker -Map=../untitled.map -Xlinker --heap=0 -Xlinker -cref" } CustomProperty { DataType "string" Name "LDPICTYPE" Value " -Xlinker --script=C:\\PROGRA~2\\MICROC~1\\mplabc30\\v3.31\\support\\dsPIC33F\\gld\\p33fJ256GP710.gld" } CustomProperty { DataType "string" Name "LDLIBPIC" Value " C:\\PROGRA~2\\MICROC~1\\mplabc30\\v3.31\\lib\\libpic30-coff.a C:\\PROGRA~2\\MICROC~1\\mplabc30\\v3.31\\lib" "\\dsPIC33F\\libp33fJ256GP710-coff.a C:\\PROGRA~2\\MICROC~1\\mplabc30\\v3.31\\lib\\libc-coff.a C:\\PROGRA~2\\MICROC~1" "\\mplabc30\\v3.31\\lib\\libm-coff.a" } CustomProperty { DataType "string" Name "PIC_INCLUDES" Value " -I C:\\PROGRA~2\\MICROC~1\\mplabc30\\v3.31\\include" } CustomProperty { DataType "string" Name "PIC_REF" Value "33fJ256GP710" } CustomProperty { DataType "string" Name "GCCPATH" Value "''" } } PropName "Components" } } SSC.SimscapeCC { $ObjectID 13 Version "1.0" Array { Type "Cell" Dimension 1 Cell "Name" PropName "DisabledProps" } Array { Type "Handle" Dimension 1 MECH.SimMechanicsCC { $ObjectID 14 Version "1.11.1" Name "SimMechanics" WarnOnRedundantConstraints on WarnOnSingularInitialAssembly off ShowCutJoints off VisOnUpdateDiagram off VisDuringSimulation off EnableVisSimulationTime on VisSampleTime "0" DisableBodyVisControl off ShowCG on ShowCS on ShowOnlyPortCS off HighlightModel on FramesToBeSkipped "0" AnimationDelay "3" RecordAVI off CompressAVI on AutoFitVis "off" EnableSelection on LastVizWinPosition "[-1 -1 -1 -1]" CamPosition "[0 0 0]" CamTarget "[0 0 -1]" CamUpVector "[0 1 0]" CamHeight "-1" CamViewAngle "0" VisBackgroundColor "[0.9 0.9 0.95]" DefaultBodyColor "[1 0 0]" MDLBodyVisualizationType "Convex hull from body CS locations" OVRRIDBodyVisualizationType "NONE" } PropName "Components" } Name "Simscape" EditingMode "Full" ExplicitSolverDiagnosticOptions "warning" InputDerivativeDiagnosticOptions "warning" GlobalZcOffDiagnosticOptions "warning" SimscapeLogType "none" SimscapeLogName "simlog" SimscapeLogDecimation 1 SimscapeLogLimitData on SimscapeLogDataHistory 5000 } PropName "Components" } Name "Configuration" ExtraOptions "-aGenerateTraceInfo=0 -aIgnoreTestpoints=0 " CurrentDlgPage "Solver" ConfigPrmDlgPosition [ 192, 55, 1088, 723 ] } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on BlockRotation 0 BlockMirror off } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" UseDisplayTextAsClickCallback off } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } BlockParameterDefaults { Block { BlockType Constant Value "1" VectorParams1D on SamplingMode "Sample based" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Inherit from 'Constant value'" LockScale off SampleTime "inf" FramePeriod "inf" PreserveConstantTs off } Block { BlockType DataStoreMemory DataStoreName "A" ReadBeforeWriteMsg "none" WriteAfterWriteMsg "none" WriteAfterReadMsg "none" InitialValue "0" StateMustResolveToSignalObject off RTWStateStorageClass "Auto" VectorParams1D on ShowAdditionalParam off OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: auto" LockScale off SignalType "auto" Dimensions "-1" DataLogging off DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingNameMode "SignalName" } Block { BlockType DataStoreRead DataStoreName "A" SampleTime "-1" } Block { BlockType DataStoreWrite DataStoreName "A" SampleTime "-1" } Block { BlockType DataTypeConversion OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Inherit via back propagation" LockScale off ConvertRealWorld "Real World Value (RWV)" RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Demux Outputs "4" DisplayOption "none" BusSelectionMode off } Block { BlockType EnablePort StatesWhenEnabling "held" PropagateVarSize "Only when enabling" ShowOutputPort off ZeroCross on PortDimensions "1" SampleTime "-1" OutMin "[]" OutMax "[]" OutDataTypeStr "double" Interpolate on } Block { BlockType Inport Port "1" OutputFunctionCall off OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: auto" LockScale off BusOutputAsStruct off PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchInputForFeedbackSignals off Interpolate on } Block { BlockType Logic Operator "AND" Inputs "2" IconShape "rectangular" AllPortsSameDT on OutDataTypeStr "Inherit: Logical (see Configuration Parameters: Optimization)" SampleTime "-1" } Block { BlockType Mux Inputs "4" DisplayOption "none" UseBusObject off BusObject "BusObject" NonVirtualBus off } Block { BlockType Outport Port "1" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: auto" LockScale off BusOutputAsStruct off PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" SignalType "auto" SamplingMode "auto" SourceOfInitialOutputValue "Dialog" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType S-Function FunctionName "system" SFunctionModules "''" PortCounts "[]" SFunctionDeploymentMode off } Block { BlockType SubSystem ShowPortLabels "FromPortIcon" Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit off CheckFcnCallInpInsideContextMsg off SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimViewingDevice off DataTypeOverride "UseLocalSettings" DataTypeOverrideAppliesTo "AllNumericTypes" MinMaxOverflowLogging "UseLocalSettings" SFBlockType "NONE" Variant off GeneratePreprocessorConditionals off } Block { BlockType UnitDelay X0 "0" InputProcessing "Inherited" SampleTime "1" StateMustResolveToSignalObject off RTWStateStorageClass "Auto" HasFrameUpgradeWarning on } Block { BlockType WhileIterator MaxIters "5" WhileBlockType "while" ResetStates "held" ShowIterationPort off OutputDataType "int32" } } System { Name "UDB4_TestBoard" Location [639, 246, 1688, 988] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" ReportName "simulink-default.rpt" SIDHighWatermark "585" Block { BlockType SubSystem Name "Accelero - Gyro" SID "532" Ports [0, 4] Position [85, 509, 155, 631] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Accelero - Gyro" Location [283, 355, 693, 635] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Reference Name "ADC Input" SID "522" Tag "dsPIC_ADC" Ports [0, 11] Position [25, 26, 120, 254] Priority "5" LibraryVersion "3.79" SourceBlock "dsPICdrivers/Peripheral I//O/ADC Input" SourceType "dsPIC : ADC10" ADC_TYPE "12 bits" ADC_MODE "Continuous sampling & get last channel value" NbrSampleStep "1" VoltRefpopup "AVdd - AVss" OutFormatBitspopup "0000 dddd dddd dddd : Integer" InterruptPriority "6" ANCHANNELS "[9 10 11 12 0 1 3 4 5 6 7]" MaxName "ANmax = 4095" Rin "1e2" ADCS "29" SAMC "1" Temperature "25" DMAChannel "0" SampleTime ".001" Status "OK | Tsmp=6.784e-007 | T/Channel=1.018e-005 | Tall=1.119e-004" SSRC "auto convert" } Block { BlockType Reference Name "Manual Switch" SID "529" Ports [2, 1] Position [300, 57, 330, 93] ZOrder -13 LibraryVersion "1.256" SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "1" action "0" varsize off } Block { BlockType Mux Name "Mux" SID "524" Ports [3, 1] Position [195, 31, 200, 69] ZOrder -12 ShowName off Inputs "3" DisplayOption "bar" Port { PortNumber 1 Name "Gyro XYZ" PropagatedSignals ", , " RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Mux Name "Mux1" SID "526" Ports [3, 1] Position [195, 76, 200, 114] ZOrder -12 ShowName off Inputs "3" DisplayOption "bar" Port { PortNumber 1 Name "Gyro XYZ LP" PropagatedSignals ", , " RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Mux Name "Mux2" SID "528" Ports [3, 1] Position [195, 171, 200, 209] ZOrder -12 ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Outport Name "Gyro XYZ" SID "533" Position [355, 68, 385, 82] IconDisplay "Port number" } Block { BlockType Outport Name "Acc XYZ" SID "535" Position [225, 183, 255, 197] Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Temp" SID "534" Position [325, 153, 355, 167] Port "3" IconDisplay "Port number" } Block { BlockType Outport Name "Vref XY" SID "536" Position [310, 233, 340, 247] Port "4" IconDisplay "Port number" } Line { SrcBlock "ADC Input" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "ADC Input" SrcPort 3 Points [0, -30] DstBlock "Mux" DstPort 2 } Line { SrcBlock "ADC Input" SrcPort 5 Points [45, 0; 0, -60] DstBlock "Mux" DstPort 3 } Line { SrcBlock "ADC Input" SrcPort 2 Points [50, 0; 0, 25] DstBlock "Mux1" DstPort 1 } Line { SrcBlock "ADC Input" SrcPort 4 Points [55, 0] DstBlock "Mux1" DstPort 2 } Line { SrcBlock "ADC Input" SrcPort 6 Points [55, 0] DstBlock "Mux1" DstPort 3 } Line { SrcBlock "ADC Input" SrcPort 10 Points [0, -40] DstBlock "Mux2" DstPort 1 } Line { SrcBlock "ADC Input" SrcPort 9 Points [0, -5; 55, 0] DstBlock "Mux2" DstPort 2 } Line { SrcBlock "ADC Input" SrcPort 8 Points [0, 5; 50, 0; 0, 15] DstBlock "Mux2" DstPort 3 } Line { Name "Gyro XYZ" Labels [0, 0] SrcBlock "Mux" SrcPort 1 Points [30, 0; 0, 15] DstBlock "Manual Switch" DstPort 1 } Line { Name "Gyro XYZ LP" Labels [0, 0] SrcBlock "Mux1" SrcPort 1 Points [30, 0; 0, -10] DstBlock "Manual Switch" DstPort 2 } Line { SrcBlock "Manual Switch" SrcPort 1 DstBlock "Gyro XYZ" DstPort 1 } Line { SrcBlock "ADC Input" SrcPort 7 DstBlock "Temp" DstPort 1 } Line { SrcBlock "Mux2" SrcPort 1 DstBlock "Acc XYZ" DstPort 1 } Line { SrcBlock "ADC Input" SrcPort 11 DstBlock "Vref XY" DstPort 1 } } } Block { BlockType Reference Name "Configuration" SID "510" Ports [] Position [545, 105, 645, 155] BackgroundColor "lightBlue" DropShadow on LibraryVersion "3.79" SourceBlock "dsPICdrivers/Configuration" SourceType "" double64 off } Block { BlockType Reference Name "Configure Model \nfor dsPIC" SID "511" Ports [] Position [100, 99, 212, 155] ForegroundColor "blue" BackgroundColor "yellow" LibraryVersion "3.79" SourceBlock "dsPICdrivers/Simulink Configuration/Configure Model \nfor dsPIC" SourceType "" } Block { BlockType Constant Name "Constant" SID "531" Position [435, 395, 465, 425] ZOrder -5 OutDataTypeStr "Inherit: Inherit via back propagation" } Block { BlockType DataStoreMemory Name "Data Store\nMemory" SID "581" Position [545, 205, 609, 231] DataStoreName "UART_Flag" ReadBeforeWriteMsg "warning" WriteAfterWriteMsg "warning" WriteAfterReadMsg "warning" } Block { BlockType DataStoreMemory Name "Data Store\nMemory1" SID "582" Position [480, 205, 544, 231] DataStoreName "UART_Data" ReadBeforeWriteMsg "warning" WriteAfterWriteMsg "warning" WriteAfterReadMsg "warning" } Block { BlockType DataStoreMemory Name "Data Store\nMemory2" SID "583" Position [545, 265, 609, 291] DataStoreName "Variable91" ReadBeforeWriteMsg "warning" WriteAfterWriteMsg "warning" WriteAfterReadMsg "warning" OutDataTypeStr "uint8" } Block { BlockType DataStoreMemory Name "Data Store\nMemory3" SID "584" Position [480, 265, 544, 291] DataStoreName "Variable90" ReadBeforeWriteMsg "warning" WriteAfterWriteMsg "warning" WriteAfterReadMsg "warning" OutDataTypeStr "uint8" } Block { BlockType DataStoreMemory Name "Data Store\nMemory4" SID "585" Position [615, 265, 679, 291] DataStoreName "Variable92" ReadBeforeWriteMsg "warning" WriteAfterWriteMsg "warning" WriteAfterReadMsg "warning" OutDataTypeStr "uint8" } Block { BlockType Demux Name "Demux" SID "537" Ports [1, 3] Position [240, 506, 245, 544] ZOrder -6 ShowName off Outputs "3" DisplayOption "bar" } Block { BlockType Demux Name "Demux1" SID "538" Ports [1, 3] Position [240, 551, 245, 589] ZOrder -6 ShowName off Outputs "3" DisplayOption "bar" } Block { BlockType Reference Name "G Select" SID "530" Tag "dsPIC_Digital_Output" Ports [1] Position [520, 392, 635, 428] Priority "5" LibraryVersion "3.79" SourceBlock "dsPICdrivers/Digital I//O/Digital Output Write" SourceType "" PORT "A" Pin "6" Simultaneous on OrderingInOutPopup "None" } Block { BlockType Reference Name "Generate Code" SID "512" Ports [] Position [235, 99, 347, 155] ForegroundColor "blue" BackgroundColor "yellow" DropShadow on LibraryVersion "3.79" SourceBlock "dsPICdrivers/Simulink Configuration/Generate Code" SourceType "" } Block { BlockType SubSystem Name "LED" SID "453" Ports [] Position [555, 320, 600, 361] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "LED" Location [1121, 200, 1708, 505] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Reference Name "Bitwise\nOperator" SID "497" Ports [1, 1] Position [150, 92, 190, 108] LibraryVersion "1.256" SourceBlock "simulink/Logic and Bit\nOperations/Bitwise\nOperator" SourceType "Bitwise Operator" logicop "AND" UseBitMask on NumInputPorts "1" BitMask "hex2dec('2')" BitMaskRealWorld "Stored Integer" } Block { BlockType Reference Name "Bitwise\nOperator1" SID "498" Ports [1, 1] Position [150, 37, 190, 53] LibraryVersion "1.256" SourceBlock "simulink/Logic and Bit\nOperations/Bitwise\nOperator" SourceType "Bitwise Operator" logicop "AND" UseBitMask on NumInputPorts "1" BitMask "hex2dec('1')" BitMaskRealWorld "Stored Integer" } Block { BlockType Reference Name "Bitwise\nOperator2" SID "499" Ports [1, 1] Position [150, 147, 190, 163] LibraryVersion "1.256" SourceBlock "simulink/Logic and Bit\nOperations/Bitwise\nOperator" SourceType "Bitwise Operator" logicop "AND" UseBitMask on NumInputPorts "1" BitMask "hex2dec('4')" BitMaskRealWorld "Stored Integer" } Block { BlockType Reference Name "Bitwise\nOperator3" SID "500" Ports [1, 1] Position [150, 202, 190, 218] LibraryVersion "1.256" SourceBlock "simulink/Logic and Bit\nOperations/Bitwise\nOperator" SourceType "Bitwise Operator" logicop "AND" UseBitMask on NumInputPorts "1" BitMask "hex2dec('8')" BitMaskRealWorld "Stored Integer" } Block { BlockType Reference Name "Counter\nFree-Running" SID "523" Ports [0, 1] Position [30, 85, 60, 115] ZOrder -6 LibraryVersion "1.256" SourceBlock "simulink/Sources/Counter\nFree-Running" SourceType "Counter Free-Running" NumBits "4" tsamp ".1" } Block { BlockType DataTypeConversion Name "Data Type Conversion" SID "455" Position [295, 37, 335, 53] ShowName off OutDataTypeStr "boolean" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type Conversion1" SID "489" Position [295, 92, 335, 108] ShowName off OutDataTypeStr "boolean" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type Conversion2" SID "490" Position [295, 147, 335, 163] ShowName off OutDataTypeStr "boolean" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type Conversion3" SID "491" Position [295, 202, 335, 218] ShowName off OutDataTypeStr "boolean" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "Red LED" SID "456" Tag "dsPIC_Digital_Output" Ports [4] Position [445, 20, 540, 235] Priority "5" LibraryVersion "3.79" SourceBlock "dsPICdrivers/Digital I//O/Digital Output Write" SourceType "" PORT "E" Pin "[1 2 3 4]" Simultaneous on OrderingInOutPopup "None" } Line { SrcBlock "Data Type Conversion" SrcPort 1 DstBlock "Red LED" DstPort 1 } Line { SrcBlock "Data Type Conversion1" SrcPort 1 DstBlock "Red LED" DstPort 2 } Line { SrcBlock "Data Type Conversion2" SrcPort 1 DstBlock "Red LED" DstPort 3 } Line { SrcBlock "Data Type Conversion3" SrcPort 1 DstBlock "Red LED" DstPort 4 } Line { SrcBlock "Bitwise\nOperator1" SrcPort 1 DstBlock "Data Type Conversion" DstPort 1 } Line { SrcBlock "Bitwise\nOperator" SrcPort 1 DstBlock "Data Type Conversion1" DstPort 1 } Line { SrcBlock "Bitwise\nOperator2" SrcPort 1 DstBlock "Data Type Conversion2" DstPort 1 } Line { SrcBlock "Bitwise\nOperator3" SrcPort 1 DstBlock "Data Type Conversion3" DstPort 1 } Line { SrcBlock "Counter\nFree-Running" SrcPort 1 Points [45, 0] Branch { DstBlock "Bitwise\nOperator" DstPort 1 } Branch { Points [0, -55] DstBlock "Bitwise\nOperator1" DstPort 1 } Branch { Points [0, 55] Branch { DstBlock "Bitwise\nOperator2" DstPort 1 } Branch { Points [0, 55] DstBlock "Bitwise\nOperator3" DstPort 1 } } } } } Block { BlockType Reference Name "Master" SID "513" Tag "dsPIC_MASTER" Ports [] Position [394, 105, 494, 155] BackgroundColor "lightBlue" DropShadow on Priority "1" LibraryVersion "3.79" SourceBlock "dsPICdrivers/Master" SourceType "Master" TimeStepType "Timer1" picType "33fJ256GP710" fcy "22111111.1111" Quartz_33f "8e6" PLLActive_33f on fcyDesired_33f "7.37e6*3" tmr1 "[1 22110 0.00050251]" tmr1Info "Time Step : 0.00099999 ; Error : 0.00050251% PR1=22110" tmr2345 "[0 0 0 0 0 0 0 0]" tmr2345cfg "[-1 -1 -1 -1 -1 -1 -1 -1]" IOautoConf on typePort "[ 0 0 0 0 0 0 10 0 0 0 0 0 0 0 0 0 8 8 0 8 8 8 8 8" " 0 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0" " 0 0 0 0 0 0 0 0 0 0 0 0 0 10 10 10 10 0 0 0 0 0 0 0 0 0 0 0" " 0 0 0 0 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 "[ 65471 65535 65535 65535 65505 65535 65535 ]" ADPCFG "507510784" MasterBusyPort "None" MasterOverloadPort "None" FOSC "Quartz (XT - HS)" ClockSwitchMonitor "Clock switching enabled only" TempProtection_33f "TEMP_ON" FPBOR "" PWRT "disable" MCLR "" ICD "ICS_PGD1" JTAGEN "JTAGEN_OFF" PowerSave off OverrideFcy off NewFcy "1e6" PR2345 "[65535 65535 65535 65535 65535 65535 65535 65535]" } Block { BlockType Reference Name "Ports Info" SID "507" Tag "dsPIC_PortInfo" Ports [] Position [520, 479, 655, 714] LibraryVersion "3.79" SourceBlock "dsPICdrivers/Ports Info" SourceType "" } Block { BlockType SubSystem Name "Read UART" SID "552" Ports [] Position [330, 215, 434, 276] TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskDisplay "disp('Lecture et\\nEnregistrement\\nUART')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" System { Name "Read UART" Location [175, 239, 947, 499] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType DataStoreRead Name "Data Store\nRead1" SID "553" Ports [0, 1] Position [645, 103, 720, 137] DataStoreName "Variable91" SampleTime ".01" } Block { BlockType DataStoreRead Name "Data Store\nRead2" SID "554" Ports [0, 1] Position [645, 38, 720, 72] DataStoreName "Variable90" SampleTime ".01" } Block { BlockType DataStoreRead Name "Data Store\nRead3" SID "555" Ports [0, 1] Position [645, 168, 720, 202] DataStoreName "Variable92" SampleTime ".01" } Block { BlockType DataStoreWrite Name "Data Store\nWrite" SID "556" Ports [1] Position [116, 155, 204, 200] BlockRotation 270 BlockMirror on NamePlacement "alternate" DataStoreName "UART_Flag" } Block { BlockType SubSystem Name "Enabled\nSubsystem" SID "557" Ports [1, 0, 1] Position [245, 64, 345, 106] TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents 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 [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID "558" Position [110, 103, 140, 117] IconDisplay "Port number" } Block { BlockType EnablePort Name "Enable" SID "559" Ports [] Position [235, 20, 255, 40] } Block { BlockType DataStoreWrite Name "Data Store\nWrite1" SID "560" Ports [1] Position [205, 90, 290, 130] DataStoreName "UART_Data" } Line { SrcBlock "In1" SrcPort 1 DstBlock "Data Store\nWrite1" DstPort 1 } } } Block { BlockType Reference Name "Rx Input" SID "561" Tag "dsPIC_RX" Ports [0, 2] Position [40, 76, 110, 114] Priority "5" LibraryVersion "3.79" SourceBlock "dsPICdrivers/Serial PORT/Rx Input" SourceType "Rx" UART "2" SampleTime ".01" BlockingFctChk off OutputDefault "0" IsPresentFlagChk on OrderingInOutPopup "None" } Block { BlockType SubSystem Name "Variables" SID "562" Ports [1, 0, 1] Position [455, 69, 555, 111] TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Variables" Location [143, 93, 976, 483] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID "563" Position [110, 103, 140, 117] IconDisplay "Port number" } Block { BlockType EnablePort Name "Enable" SID "564" Ports [] Position [235, 20, 255, 40] } Block { BlockType Reference Name "Compare" SID "565" Ports [1, 1] Position [290, 125, 320, 155] BlockRotation 270 BlockMirror on NamePlacement "alternate" LibraryVersion "1.256" SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Constant" SourceType "Compare To Constant" relop "==" const "90" OutDataTypeStr "boolean" ZeroCross off } Block { BlockType Reference Name "Compare1" SID "566" Ports [1, 1] Position [470, 125, 500, 155] BlockRotation 270 BlockMirror on NamePlacement "alternate" LibraryVersion "1.256" SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Constant" SourceType "Compare To Constant" relop "==" const "91" OutDataTypeStr "boolean" ZeroCross off } Block { BlockType Reference Name "Compare2" SID "567" Ports [1, 1] Position [645, 125, 675, 155] BlockRotation 270 BlockMirror on NamePlacement "alternate" LibraryVersion "1.256" SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Constant" SourceType "Compare To Constant" relop "==" const "92" OutDataTypeStr "boolean" ZeroCross off } Block { BlockType SubSystem Name "Enabled\nSubsystem" SID "568" Ports [1, 0, 1] Position [255, 216, 355, 244] TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Enabled\nSubsystem" Location [439, 155, 937, 455] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID "569" Position [110, 103, 140, 117] IconDisplay "Port number" } Block { BlockType EnablePort Name "Enable" SID "570" Ports [] Position [235, 20, 255, 40] } Block { BlockType DataStoreWrite Name "Data Store\nWrite2" SID "571" Ports [1] Position [220, 83, 355, 137] DataStoreName "Variable90" } Line { SrcBlock "In1" SrcPort 1 DstBlock "Data Store\nWrite2" DstPort 1 } } } Block { BlockType SubSystem Name "Enabled\nSubsystem1" SID "572" Ports [1, 0, 1] Position [435, 216, 535, 244] TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Enabled\nSubsystem1" Location [439, 155, 937, 455] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID "573" Position [110, 103, 140, 117] IconDisplay "Port number" } Block { BlockType EnablePort Name "Enable" SID "574" Ports [] Position [235, 20, 255, 40] } Block { BlockType DataStoreWrite Name "Data Store\nWrite2" SID "575" Ports [1] Position [220, 83, 355, 137] DataStoreName "Variable91" } Line { SrcBlock "In1" SrcPort 1 DstBlock "Data Store\nWrite2" DstPort 1 } } } Block { BlockType SubSystem Name "Enabled\nSubsystem2" SID "576" Ports [1, 0, 1] Position [610, 216, 710, 244] TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Enabled\nSubsystem2" Location [439, 155, 937, 455] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID "577" Position [110, 103, 140, 117] IconDisplay "Port number" } Block { BlockType EnablePort Name "Enable" SID "578" Ports [] Position [235, 20, 255, 40] } Block { BlockType DataStoreWrite Name "Data Store\nWrite2" SID "579" Ports [1] Position [220, 83, 355, 137] DataStoreName "Variable92" } Line { SrcBlock "In1" SrcPort 1 DstBlock "Data Store\nWrite2" DstPort 1 } } } Block { BlockType UnitDelay Name "Unit Delay" SID "580" Position [195, 93, 230, 127] SampleTime "-1" } Line { SrcBlock "Compare2" SrcPort 1 DstBlock "Enabled\nSubsystem2" DstPort enable } Line { SrcBlock "Compare1" SrcPort 1 DstBlock "Enabled\nSubsystem1" DstPort enable } Line { SrcBlock "Compare" SrcPort 1 DstBlock "Enabled\nSubsystem" DstPort enable } Line { SrcBlock "Unit Delay" SrcPort 1 Points [70, 0] Branch { Points [175, 0] Branch { DstBlock "Compare2" DstPort 1 } Branch { DstBlock "Compare1" DstPort 1 } } Branch { DstBlock "Compare" DstPort 1 } } Line { SrcBlock "In1" SrcPort 1 Points [15, 0] Branch { Points [0, 115] Branch { Points [0, 65; 245, 0] Branch { Points [190, 0] DstBlock "Enabled\nSubsystem2" DstPort 1 } Branch { Points [0, -60] DstBlock "Enabled\nSubsystem1" DstPort 1 } } Branch { Points [0, 5] DstBlock "Enabled\nSubsystem" DstPort 1 } } Branch { DstBlock "Unit Delay" DstPort 1 } } } } Line { SrcBlock "Rx Input" SrcPort 1 Points [110, 0] Branch { Points [0, 60; 195, 0; 0, -55] DstBlock "Variables" DstPort 1 } Branch { DstBlock "Enabled\nSubsystem" DstPort 1 } } Line { SrcBlock "Rx Input" SrcPort 2 Points [50, 0] Branch { Points [0, -56; 130, 0] Branch { Points [210, 0] DstBlock "Variables" DstPort enable } Branch { DstBlock "Enabled\nSubsystem" DstPort enable } } Branch { Points [0, 35] DstBlock "Data Store\nWrite" DstPort 1 } } } } Block { BlockType SubSystem Name "Reset si c1h sur UART" SID "539" Ports [] Position [240, 215, 314, 283] TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskDisplay "disp('Reset\\nBootloader')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" System { Name "Reset si c1h sur UART" Location [389, 248, 916, 542] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Reference Name "Compare\nTo Constant" SID "540" Ports [1, 1] Position [130, 28, 175, 62] LibraryVersion "1.256" SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Constant" SourceType "Compare To Constant" relop "==" const "193" OutDataTypeStr "boolean" ZeroCross off } Block { BlockType DataStoreRead Name "Data Store\nRead" SID "541" Ports [0, 1] Position [50, 118, 125, 152] DataStoreName "UART_Flag" } Block { BlockType DataStoreRead Name "Data Store\nRead2" SID "542" Ports [0, 1] Position [25, 28, 100, 62] DataStoreName "UART_Data" SampleTime ".01" } Block { BlockType SubSystem Name "Enabled\nSubsystem1" SID "543" Ports [0, 0, 1] Position [330, 89, 430, 131] TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Enabled\nSubsystem1" Location [389, 248, 891, 600] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType EnablePort Name "Enable" SID "544" Ports [] Position [235, 20, 255, 40] } Block { BlockType SubSystem Name "While Iterator\nSubsystem" SID "545" Ports [] Position [110, 71, 370, 179] TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "While Iterator\nSubsystem" Location [565, 295, 1252, 741] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Reference Name "C1h" SID "546" Ports [1, 1] Position [165, 75, 195, 105] LibraryVersion "1.256" SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Constant" SourceType "Compare To Constant" relop "==" const "193" OutDataTypeStr "boolean" ZeroCross off } Block { BlockType Logic Name "Logical\nOperator" SID "547" Ports [1, 1] Position [255, 154, 285, 186] Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Reference Name "Rx Input" SID "548" Tag "dsPIC_RX" Ports [0, 1] Position [50, 71, 120, 109] Priority "5" LibraryVersion "3.79" SourceBlock "dsPICdrivers/Serial PORT/Rx Input" SourceType "Rx" UART "2" SampleTime "-1" BlockingFctChk off OutputDefault "0" IsPresentFlagChk off OrderingInOutPopup "None" } Block { BlockType S-Function Name "Software RESET" SID "549" Tag "dsPIC_Reset" Ports [1] Position [320, 72, 405, 108] FunctionName "dsPIC_Reset" EnableBusSupport off MaskDescription "Reset the microcontroller when input is different from 0" MaskDisplay "fprintf('Reset');\nport_label('input', 1 ,'~=0');" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" } Block { BlockType WhileIterator Name "While Iterator" SID "550" Ports [1] Position [330, 148, 405, 192] MaxIters "-1" WhileBlockType "do-while" ResetStates "reset" } Line { SrcBlock "C1h" SrcPort 1 Points [15, 0] Branch { Points [0, 80] DstBlock "Logical\nOperator" DstPort 1 } Branch { DstBlock "Software RESET" DstPort 1 } } Line { SrcBlock "Rx Input" SrcPort 1 DstBlock "C1h" DstPort 1 } Line { SrcBlock "Logical\nOperator" SrcPort 1 DstBlock "While Iterator" DstPort 1 } } } } } Block { BlockType Logic Name "Logical\nOperator2" SID "551" Ports [2, 1] Position [225, 34, 255, 76] AllPortsSameDT off OutDataTypeStr "boolean" } Line { SrcBlock "Data Store\nRead2" SrcPort 1 DstBlock "Compare\nTo Constant" DstPort 1 } Line { SrcBlock "Data Store\nRead" SrcPort 1 Points [50, 0; 0, -70] DstBlock "Logical\nOperator2" DstPort 2 } Line { SrcBlock "Logical\nOperator2" SrcPort 1 Points [120, 0] DstBlock "Enabled\nSubsystem1" DstPort enable } Line { SrcBlock "Compare\nTo Constant" SrcPort 1 DstBlock "Logical\nOperator2" DstPort 1 } } } Block { BlockType Reference Name "TX Output Multiplexed\nfor Matlab / Labview" SID "521" Tag "dsPIC_TX_Multiplexed" Ports [6] Position [335, 508, 470, 622] Priority "5" LibraryVersion "3.79" 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:5]" CHANNELBLOCKED "[]" CHANNELBLOCKED_BITEWISE "0" Status "OK" } Block { BlockType Reference Name "UART Configuration" SID "265" Tag "dsPIC_config_UART" Ports [] Position [105, 223, 220, 275] BackgroundColor "lightBlue" DropShadow on Priority "2" LibraryVersion "3.79" SourceBlock "dsPICdrivers/Serial PORT/UART Configuration" SourceType "Configure UART" UART "2" proposed_BAUD "Custom" BAUD "115200" ALT_TX_RX on InterruptTxWhen "When Transmit Buffer is empty" TXInterruptPri "1" TxBufferSize "32" TXEN on InterruptRxWhen "When Receive Buffer is full (contain 4 characters)" RXInterruptPri "2" RxBufferSize "32" DoNotImplementRxInterrupt off DoNotImplementTxInterrupt off UxBRG "11" Info "UxBRG = 11 || Real Baud : 115162 || % error : -0.032954 || max 11.5162 Bytes / Step" RealBaud "0" ERROR "-0.032954" BYTES_STEP "11.5162" } Block { BlockType Reference Name "dbl-click to open\nGraphical interface" SID "267" Ports [] Position [291, 344, 363, 391] DropShadow on LibraryVersion "3.79" SourceBlock "dsPICdrivers/Serial PORT/dbl-click to open\nGraphical interface" SourceType "" Nothing "0" } Line { SrcBlock "Constant" SrcPort 1 DstBlock "G Select" DstPort 1 } Line { SrcBlock "Accelero - Gyro" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Accelero - Gyro" SrcPort 2 Points [30, 0; 0, 15] DstBlock "Demux1" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 DstBlock "TX Output Multiplexed\nfor Matlab / Labview" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 Points [45, 0; 0, 10] DstBlock "TX Output Multiplexed\nfor Matlab / Labview" DstPort 2 } Line { SrcBlock "Demux" SrcPort 3 Points [40, 0; 0, 20] DstBlock "TX Output Multiplexed\nfor Matlab / Labview" DstPort 3 } Line { SrcBlock "Demux1" SrcPort 1 Points [35, 0; 0, 15] DstBlock "TX Output Multiplexed\nfor Matlab / Labview" DstPort 4 } Line { SrcBlock "Demux1" SrcPort 2 Points [30, 0; 0, 25] DstBlock "TX Output Multiplexed\nfor Matlab / Labview" DstPort 5 } Line { SrcBlock "Demux1" SrcPort 3 Points [25, 0; 0, 35] DstBlock "TX Output Multiplexed\nfor Matlab / Labview" DstPort 6 } Annotation { Name "Model for use with UDB4 board. (IMU from Sparkfun)\nOnboard chip is 33Fj256GP710A.\nUSing 33Fj256GP" "710 instead works but a warning appears at programming time (using MPLAB X)" Position [341, 49] FontName "Arial Narrow" FontSize 16 } Annotation { Name "Note : All data will not be send at 1kHz as baud rate is too low" Position [320, 668] } } } # Finite State Machines # # Stateflow Version 7.6 (R2011b) dated Aug 6 2011, 13:17:15 # # Stateflow { machine { id 1 name "UDB4_TestBoard" created "17-Dec-2011 15:22:21" isLibrary 0 firstTarget 2 sfVersion 76014001.0002 } target { id 2 name "sfun" description "Default Simulink S-Function Target." machine 1 linkNode [1 0 3] } target { id 3 name "rtw" machine 1 linkNode [1 2 0] } }