Model { Name "FlexBoard_Blinking_Led" Version 7.6 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.156" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "windows-1252" SaveDefaultBlockParams on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" DataTypeOverrideAppliesTo "AllNumericTypes" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" MaxMDLFileLineLength 120 Created "Thu Nov 02 00:36:52 2006" Creator "Lubin" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Justin" ModifiedDateFormat "%" LastModifiedDate "Sun Jan 09 15:02:57 2011" RTWModifiedTimeStamp 216482121 ModelVersionFormat "1.%" ConfigurationManager "None" SampleTimeColors on SampleTimeAnnotations off LibraryLinkDisplay "none" WideLines on ShowLineDimensions on ShowPortDataTypes on ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowSignalResolutionIcons on ShowViewerIcons on SortedOrder on 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 on ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.10.0" Array { Type "Handle" Dimension 8 Simulink.SolverCC { $ObjectID 2 Version "1.10.0" StartTime "0.0" StopTime "10.0" AbsTol "auto" FixedStep "0.002" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ZcThreshold "auto" ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-3" SolverMode "Auto" 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.10.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveCompleteFinalSimState off SaveFormat "Array" SaveOutput off SaveState off SignalLogging on DSMLogging on InspectSignalLogs off SaveTime off 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.10.0" BlockReduction on BooleanDataType on ConditionallyExecuteInputs on InlineParams on UseIntDivNetSlope off UseSpecifiedMinMax off InlineInvariantSignals on OptimizeBlockIOStorage on BufferReuse on 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 on DataBitsets on UseTempVars on ZeroExternalMemoryAtStartup off ZeroInternalMemoryAtStartup off InitFltsAndDblsToZero off NoFixptDivByZeroProtection on EfficientFloat2IntCast on EfficientMapNaN2IntZero on OptimizeModelRefInitCode on LifeSpan "1" MaxStackSize "Inherit from target" BufferReusableBoundary on SimCompilerOptimization "Off" AccelVerboseBuild off } Simulink.DebuggingCC { $ObjectID 5 Version "1.10.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" SignalRangeChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" SaveWithDisabledLinksMsg "warning" SaveWithParameterizedLinksMsg "none" CheckSSInitialOutputMsg on UnderspecifiedInitializationDetection "Classic" MergeDetectMultiDrivingBlocksExec "none" CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "TryResolveAllWithWarning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" TimeAdjustmentMsg "none" MaxConsecutiveZCsMsg "error" 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" 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" InitInArrayFormatMsg "warning" StrictBusMsg "Warning" BusNameAdapt "WarnAndRepair" NonBusSignalsTreatedAsBus "none" LoggingUnavailableSignals "error" BlockIODiagnostic "none" SFUnusedDataAndEventsDiag "warning" SFUnexpectedBacktrackingDiag "warning" SFInvalidInputDataAccessInChartInitDiag "warning" SFNoUnconditionalDefaultTransitionDiag "warning" SFTransitionOutsideNaturalParentDiag "warning" } Simulink.HardwareCC { $ObjectID 6 Version "1.10.0" Array { Type "Cell" Dimension 2 Cell "ProdHWDeviceType" Cell "ProdEqTarget" PropName "DisabledProps" } ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 16 ProdBitPerLong 32 ProdBitPerFloat 32 ProdBitPerDouble 64 ProdBitPerPointer 32 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 "32-bit Generic" TargetUnknown off ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.10.0" 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.10.0" 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.10.0" 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 on SaveLog off RTWVerbose off 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 on LaunchReport on TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off IncludeERTFirstTime off GenerateTraceInfo off GenerateTraceReport off GenerateTraceReportSl off GenerateTraceReportSf off GenerateTraceReportEml off GenerateCodeInfo off GenerateSLWebview off RTWCompilerOptimization "Off" CheckMdlBeforeBuild "Off" CustomRebuildMode "OnUpdate" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 10 Version "1.10.0" ForceParamTrailComments on GenerateComments on IgnoreCustomStorageClasses off IgnoreTestpoints off IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc on SFDataObjDesc off MATLABFcnDesc off IncDataTypeInIds off MangleLength 1 CustomSymbolStrGlobalVar "rt$N$M" CustomSymbolStrType "$N$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$N$M$F" CustomSymbolStrFcnArg "rt$I$N$M" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$N$M" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc on InsertPolySpaceComments off SimulinkBlockComments on MATLABSourceComments off EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off UseSimReservedNames off } Simulink.STFCustomTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 11 Version "1.10.0" Array { Type "Cell" Dimension 6 Cell "GenerateSampleERTMain" Cell "MatFileLogging" Cell "SupportNonInlinedSFcns" Cell "UtilityFuncGeneration" Cell "IncludeMdlTerminateFcn" Cell "ModelReferenceCompliant" PropName "DisabledProps" } TargetFcnLib "ansi_tfl_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" TargetFunctionLibrary "ANSI_C" UtilityFuncGeneration "Auto" ERTMultiwordTypeDef "System defined" ERTCodeCoverageTool "None" ERTMultiwordLength 256 MultiwordLength 2048 GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on ParMdlRefBuildCompliant off CompOptLevelCompliant off IncludeMdlTerminateFcn off GeneratePreprocessorConditionals "Use local settings" CombineOutputUpdateFcns on CombineSignalStateStructs off SuppressErrorStatus on ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners on SupportAbsoluteTime off LogVarNameModifier "rt_" MatFileLogging off MultiInstanceERTCode off SupportNonFinite off SupportComplex off PurelyIntegerCode off SupportContinuousTime off SupportNonInlinedSFcns off SupportVariableSizeSignals off EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off CPPClassGenCompliant on AutosarCompliant off SystemTargetFile "dspic.tlc" DialogCategory 0 Array { Type "Handle" Dimension 1 Simulink.ERTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 12 Version "1.10.0" 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_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" TargetFunctionLibrary "ANSI_C" UtilityFuncGeneration "Auto" ERTMultiwordTypeDef "System defined" ERTCodeCoverageTool "None" ERTMultiwordLength 256 MultiwordLength 2048 GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on ParMdlRefBuildCompliant off CompOptLevelCompliant off IncludeMdlTerminateFcn off GeneratePreprocessorConditionals "Use local settings" CombineOutputUpdateFcns on CombineSignalStateStructs off SuppressErrorStatus on ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners on SupportAbsoluteTime off LogVarNameModifier "rt_" MatFileLogging off MultiInstanceERTCode off SupportNonFinite off SupportComplex off PurelyIntegerCode off SupportContinuousTime off SupportNonInlinedSFcns off SupportVariableSizeSignals off EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off CPPClassGenCompliant on AutosarCompliant off GenerateErtSFunction off CreateSILPILBlock "None" GenerateASAP2 off ExtMode off ExtModeTransport 0 ExtModeStaticAlloc off ExtModeStaticAllocSize 1000000 ExtModeTesting off ExtModeMexFile "ext_serial_win32_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" CoverageDialogOpen "off" ModuleNamingRule "Unspecified" 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 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\\R2010b\\bin\\win32\\gmake" } CustomProperty { DataType "string" Name "OPTIM_GCC" Value "-mcpu=33fJ128GP710 -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~1\\MICROC~1\\MPLABC~2\\support\\dsPIC33F\\gld\\p33fJ128GP710.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\\dsPIC33F\\li" "bp33fJ128GP710-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 "33fJ128GP710" } CustomProperty { DataType "string" Name "GCCPATH" Value "''" } } PropName "Components" } } PropName "Components" } Name "Configuration" ExtraOptions "-aGenerateTraceInfo=0 -aIgnoreTestpoints=0 " CurrentDlgPage "Optimization" ConfigPrmDlgPosition " [ 840, 485, 1720, 1115 ] " } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on BlockRotation 0 BlockMirror off } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" UseDisplayTextAsClickCallback off } LineDefaults { FontName "Arial" FontSize 9 FontWeight "normal" FontAngle "normal" } BlockParameterDefaults { Block { BlockType 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" 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 EnablePort StatesWhenEnabling "held" PropagateVarSize "Only when enabling" ShowOutputPort off ZeroCross on } Block { BlockType Inport Port "1" 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 Product Inputs "2" Multiplication "Element-wise(.*)" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType RateTransition Integrity on Deterministic on X0 "0" OutPortSampleTimeOpt "Specify" OutPortSampleTimeMultiple "1" OutPortSampleTime "-1" } Block { BlockType Sin SineType "Time based" TimeSource "Use simulation time" Amplitude "1" Bias "0" Frequency "1" Phase "0" Samples "10" Offset "0" SampleTime "-1" VectorParams1D on } 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" Variant off GeneratePreprocessorConditionals off } Block { BlockType Switch Criteria "u2 >= Threshold" Threshold "0" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Inherit via internal rule" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on ZeroCross on SampleTime "-1" AllowDiffInputSizes off } Block { BlockType UnitDelay X0 "0" InputProcessing "Inherited" SampleTime "1" StateMustResolveToSignalObject off RTWStateStorageClass "Auto" } } System { Name "FlexBoard_Blinking_Led" Location [1080, 314, 1848, 953] 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" SIDHighWatermark "45" Block { BlockType Reference Name "0.5Hz" SID "1" Ports [0, 1] Position [35, 210, 65, 240] LibraryVersion "1.225" SourceBlock "simulink/Sources/Counter\nFree-Running" SourceType "Counter Free-Running" 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" GeneratePreprocessorConditionals off NumBits "1" tsamp ".25" } Block { BlockType Reference Name "Blinking Orange Led @ 0.5Hz" SID "2" Tag "dsPIC_Digital_Output" Ports [1] Position [260, 202, 385, 248] Priority "5" LibraryVersion "1.1140" SourceBlock "dsPICdrivers/Digital I//O/Digital Output Write" SourceType "" PORT "A" Pin "[0]" Simultaneous off OrderingInOutPopup "None" } Block { BlockType Reference Name "Calculus Time Step" SID "3" Tag "dsPIC_CalculusTimeStep" Ports [0, 1] Position [230, 435, 355, 475] LibraryVersion "1.1140" SourceBlock "dsPICdrivers/OTHERS/Calculus Time Step" SourceType "Calculation Time" SampleTime "-1" PR1chk off } Block { BlockType Reference Name "Configure Model \nfor dsPIC" SID "4" Ports [] Position [28, 15, 140, 71] BackgroundColor "yellow" DropShadow on LibraryVersion "1.1140" SourceBlock "dsPICdrivers/Simulink Configuration/Configure Model \nfor dsPIC" SourceType "" } Block { BlockType DataStoreMemory Name "Data Store\nMemory1" SID "5" Position [320, 15, 384, 41] DataStoreName "Variable62" ReadBeforeWriteMsg "warning" WriteAfterWriteMsg "warning" WriteAfterReadMsg "warning" OutDataTypeStr "uint8" } Block { BlockType DataStoreMemory Name "Data Store\nMemory2" SID "6" Position [250, 15, 314, 41] DataStoreName "Variable61" ReadBeforeWriteMsg "warning" WriteAfterWriteMsg "warning" WriteAfterReadMsg "warning" InitialValue "1" OutDataTypeStr "uint8" } Block { BlockType DataStoreMemory Name "Data Store\nMemory3" SID "7" Position [180, 15, 244, 41] DataStoreName "Variable60" ReadBeforeWriteMsg "warning" WriteAfterWriteMsg "warning" WriteAfterReadMsg "warning" InitialValue "255" OutDataTypeStr "uint8" } Block { BlockType DataStoreRead Name "Data Store\nRead1" SID "8" Position [235, 368, 310, 402] DataStoreName "Variable61" SampleTime ".01" } Block { BlockType DataStoreRead Name "Data Store\nRead2" SID "9" Position [390, 468, 465, 502] DataStoreName "Variable62" SampleTime ".01" } Block { BlockType DataStoreRead Name "Data Store\nRead4" SID "10" Position [20, 398, 95, 432] DataStoreName "Variable60" SampleTime ".01" } Block { BlockType DataTypeConversion Name "Data Type Conversion1" SID "11" Position [130, 208, 200, 242] OutDataTypeStr "boolean" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type Conversion2" SID "12" Position [125, 403, 175, 427] ShowName off OutDataTypeStr "double" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType DataTypeConversion Name "Data Type Conversion3" SID "13" Position [310, 308, 360, 332] ShowName off OutDataTypeStr "int16" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "DocBlock" SID "14" Ports [] Position [532, 55, 572, 94] BackgroundColor "[0.501961, 1.000000, 0.501961]" ShowName off AttributesFormatString "Clock to open web page\\nabout this model" UserDataPersistent on OpenFcn "stat = web('http://www.kerhuel.eu/wiki/Flex_Board_Blinking_Led#5', '-browser')" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents on MaskType "WWW Link" MaskDisplay "plot([.8 0 0 1 1 .8 .8 1],[1 1 0 0 .8 1 .8 .8]);\ntext(.5,.6,'http://','horizontalalignment'," "'center');\ntext(.95,.05,'Link','verticalalignment','bottom','horizontalalignment','right');" MaskIconFrame off MaskIconOpaque on MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskCapabilities "slmaskedcaps(gcbh)" System { Name "DocBlock" Location [480, 85, 980, 386] 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 SubSystem Name "EmptySubsystem" SID "15" Ports [] Position [115, 50, 145, 80] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "EmptySubsystem" Location [146, 180, 902, 673] 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 "Master" SID "16" Tag "dsPIC_MASTER" Ports [] Position [34, 110, 134, 160] BackgroundColor "lightBlue" DropShadow on Priority "1" LibraryVersion "1.1140" List { ListType RTWdata NumBusyPort "-1" } SourceBlock "dsPICdrivers/Master" SourceType "Master" TimeStepType "Timer1" picType "33fJ128GP710" fcy "9200000" Quartz_33f "8e6" PLLActive_33f on fcyDesired_33f "9.2e6" tmr1 "[1 18399 0]" tmr1Info "Time Step : 0.002 ; Error : 0% PR1=18399" tmr2345 "[0 0 0 0 0 0 0 0]" tmr2345cfg "[-1 -1 -1 -1 -1 -1 -1 -1]" IOautoConf on typePort "[ 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 " "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 " "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 "[ 65534 65535 65535 65535 65535 65535 65535 ]" ADPCFG "0" MasterBusyPort "None" MasterOverloadPort "None" FOSC "Quartz (XT - HS)" ClockSwitchMonitor "Both disabled" TempProtection_33f "TEMP_ON" FPBOR "" PWRT "32ms" MCLR "" ICD "ICS_PGD1" JTAGEN "JTAGEN_OFF" PowerSave off OverrideFcy off NewFcy "1e6" PR2345 "[65535 65535 65535 65535 65535 65535 65535 65535]" } Block { BlockType Product Name "Product" SID "17" Ports [2, 1] Position [225, 302, 255, 333] InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType RateTransition Name "Rate Transition" SID "18" Position [184, 345, 206, 375] BlockRotation 270 Integrity off Deterministic off } Block { BlockType RateTransition Name "Rate Transition1" SID "19" Position [360, 374, 385, 396] Integrity off Deterministic off } Block { BlockType RateTransition Name "Rate Transition2" SID "20" Position [484, 440, 506, 465] BlockRotation 270 Integrity off Deterministic off } Block { BlockType Reference Name "Rx Input2" SID "21" Tag "dsPIC_RX" Ports [0, 2] Position [420, 251, 490, 289] Priority "5" LibraryVersion "1.1140" SourceBlock "dsPICdrivers/Serial PORT/Rx Input" SourceType "Rx" UART "2" SampleTime ".01" BlockingFctChk off OutputDefault "0" IsPresentFlagChk on OrderingInOutPopup "None" } Block { BlockType Sin Name "Sine Wave" SID "22" Ports [0, 1] Position [30, 295, 60, 325] SineType "Sample based" Frequency "6" Samples "500" SampleTime ".002" } Block { BlockType Switch Name "Switch" SID "23" Position [425, 348, 460, 422] Criteria "u2 ~= 0" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Reference Name "TX Output Multiplexed\nfor Matlab / Labview1" SID "24" Tag "dsPIC_TX_Multiplexed" Ports [2] Position [535, 373, 685, 417] Priority "5" LibraryVersion "1.1140" 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 ]" CHANNELBLOCKED "[]" CHANNELBLOCKED_BITEWISE "0" Status "OK" } Block { BlockType Reference Name "UART Configuration" SID "25" Tag "dsPIC_config_UART" Ports [] Position [165, 112, 284, 161] BackgroundColor "lightBlue" Priority "2" LibraryVersion "1.1140" List { ListType RTWdata RxBufferSize "32" } SourceBlock "dsPICdrivers/Serial PORT/UART Configuration" SourceType "Configure UART" UART "2" proposed_BAUD "115200" BAUD "115200" ALT_TX_RX off InterruptTxWhen "When Transmit Buffer is empty" TXInterruptPri "1" TxBufferSize "32" TXEN on InterruptRxWhen "When Receive Buffer is 3/4 full (contain 3 characters)" RXInterruptPri "5" RxBufferSize "32" UxBRG "4" Info "UxBRG = 4 || Real Baud : 115000 || % error : -0.17361 || max 23 Bytes / Step" RealBaud "0" ERROR "-0.17361" BYTES_STEP "23" } Block { BlockType SubSystem Name "Variables" SID "26" Ports [1, 0, 1] Position [570, 239, 670, 281] TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Variables" Location [255, 531, 1088, 921] 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" SID "27" Position [110, 103, 140, 117] IconDisplay "Port number" } Block { BlockType EnablePort Name "Enable" SID "28" Ports [] Position [235, 20, 255, 40] } Block { BlockType Reference Name "Compare" SID "29" Ports [1, 1] Position [290, 125, 320, 155] BlockRotation 270 BlockMirror on NamePlacement "alternate" LibraryVersion "1.225" 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" GeneratePreprocessorConditionals off relop "==" const "60" LogicOutDataTypeMode "boolean" ZeroCross off } Block { BlockType Reference Name "Compare1" SID "30" Ports [1, 1] Position [470, 125, 500, 155] BlockRotation 270 BlockMirror on NamePlacement "alternate" LibraryVersion "1.225" 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" GeneratePreprocessorConditionals off relop "==" const "61" LogicOutDataTypeMode "boolean" ZeroCross off } Block { BlockType Reference Name "Compare2" SID "31" Ports [1, 1] Position [645, 125, 675, 155] BlockRotation 270 BlockMirror on NamePlacement "alternate" LibraryVersion "1.225" 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" GeneratePreprocessorConditionals off relop "==" const "62" LogicOutDataTypeMode "boolean" ZeroCross off } Block { BlockType SubSystem Name "Enabled\nSubsystem" SID "32" 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 [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID "33" Position [110, 103, 140, 117] IconDisplay "Port number" } Block { BlockType EnablePort Name "Enable" SID "34" Ports [] Position [235, 20, 255, 40] } Block { BlockType DataStoreWrite Name "Data Store\nWrite2" SID "35" Position [220, 83, 355, 137] DataStoreName "Variable60" } Line { SrcBlock "In1" SrcPort 1 DstBlock "Data Store\nWrite2" DstPort 1 } } } Block { BlockType SubSystem Name "Enabled\nSubsystem1" SID "36" 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 [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID "37" Position [110, 103, 140, 117] IconDisplay "Port number" } Block { BlockType EnablePort Name "Enable" SID "38" Ports [] Position [235, 20, 255, 40] } Block { BlockType DataStoreWrite Name "Data Store\nWrite2" SID "39" Position [220, 83, 355, 137] DataStoreName "Variable61" } Line { SrcBlock "In1" SrcPort 1 DstBlock "Data Store\nWrite2" DstPort 1 } } } Block { BlockType SubSystem Name "Enabled\nSubsystem2" SID "40" 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 [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID "41" Position [110, 103, 140, 117] IconDisplay "Port number" } Block { BlockType EnablePort Name "Enable" SID "42" Ports [] Position [235, 20, 255, 40] } Block { BlockType DataStoreWrite Name "Data Store\nWrite2" SID "43" Position [220, 83, 355, 137] DataStoreName "Variable62" } Line { SrcBlock "In1" SrcPort 1 DstBlock "Data Store\nWrite2" DstPort 1 } } } Block { BlockType UnitDelay Name "Unit Delay" SID "44" Position [195, 93, 230, 127] SampleTime "-1" } Line { SrcBlock "Compare2" SrcPort 1 DstBlock "Enabled\nSubsystem2" DstPort enable } Line { SrcBlock "In1" SrcPort 1 Points [15, 0] Branch { DstBlock "Unit Delay" DstPort 1 } Branch { Points [0, 115] Branch { Points [0, 65; 245, 0] Branch { Points [175, 0; 0, -60] DstBlock "Enabled\nSubsystem2" DstPort 1 } Branch { Points [0, -60] DstBlock "Enabled\nSubsystem1" DstPort 1 } } Branch { Points [0, 5] DstBlock "Enabled\nSubsystem" DstPort 1 } } } Line { SrcBlock "Unit Delay" SrcPort 1 Points [70, 0] Branch { Points [180, 0] Branch { DstBlock "Compare2" DstPort 1 } Branch { DstBlock "Compare1" DstPort 1 } } Branch { DstBlock "Compare" DstPort 1 } } Line { SrcBlock "Compare" SrcPort 1 DstBlock "Enabled\nSubsystem" DstPort enable } Line { SrcBlock "Compare1" SrcPort 1 DstBlock "Enabled\nSubsystem1" DstPort enable } } } Block { BlockType Reference Name "dbl-click to open\nGraphical interface" SID "45" Ports [] Position [320, 120, 398, 153] BackgroundColor "cyan" LibraryVersion "1.1140" SourceBlock "dsPICdrivers/Serial PORT/dbl-click to open\nGraphical interface" SourceType "" Nothing "0" } Line { SrcBlock "0.5Hz" SrcPort 1 DstBlock "Data Type Conversion1" DstPort 1 } Line { SrcBlock "Data Type Conversion1" SrcPort 1 DstBlock "Blinking Orange Led @ 0.5Hz" DstPort 1 } Line { SrcBlock "Rx Input2" SrcPort 1 DstBlock "Variables" DstPort 1 } Line { SrcBlock "Rx Input2" SrcPort 2 Points [50, 0; 0, -56] DstBlock "Variables" DstPort enable } Line { SrcBlock "Sine Wave" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Data Store\nRead4" SrcPort 1 DstBlock "Data Type Conversion2" DstPort 1 } Line { SrcBlock "Data Type Conversion2" SrcPort 1 Points [15, 0] DstBlock "Rate Transition" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Data Type Conversion3" DstPort 1 } Line { SrcBlock "Data Store\nRead1" SrcPort 1 DstBlock "Rate Transition1" DstPort 1 } Line { SrcBlock "Switch" SrcPort 1 DstBlock "TX Output Multiplexed\nfor Matlab / Labview1" DstPort 1 } Line { SrcBlock "Data Type Conversion3" SrcPort 1 Points [35, 0; 0, 40] DstBlock "Switch" DstPort 1 } Line { SrcBlock "Calculus Time Step" SrcPort 1 Points [30, 0; 0, -45] DstBlock "Switch" DstPort 3 } Line { SrcBlock "Data Store\nRead2" SrcPort 1 Points [25, 0] DstBlock "Rate Transition2" DstPort 1 } Line { SrcBlock "Rate Transition" SrcPort 1 Points [0, -15] DstBlock "Product" DstPort 2 } Line { SrcBlock "Rate Transition1" SrcPort 1 DstBlock "Switch" DstPort 2 } Line { SrcBlock "Rate Transition2" SrcPort 1 Points [0, -30] DstBlock "TX Output Multiplexed\nfor Matlab / Labview1" DstPort 2 } } }