Model { Name "SD_Datalogger" Version 7.6 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.130" 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 "Mon Apr 25 08:40:16 2011" Creator "konstantin.avdashche" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "ij8977" ModifiedDateFormat "%" LastModifiedDate "Wed Aug 17 13:30:39 2011" RTWModifiedTimeStamp 235488092 ModelVersionFormat "1.%" ConfigurationManager "None" SampleTimeColors off SampleTimeAnnotations off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes 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 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.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.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 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.10.0" BlockReduction on BooleanDataType on ConditionallyExecuteInputs on InlineParams off UseIntDivNetSlope off UseSpecifiedMinMax off InlineInvariantSignals off 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 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 } 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 "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" 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 "ErrorLevel1" 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 32 ProdBitPerLong 32 ProdBitPerFloat 32 ProdBitPerDouble 64 ProdBitPerPointer 32 ProdLargestAtomicInteger "Char" ProdLargestAtomicFloat "None" ProdIntDivRoundTo "Undefined" ProdEndianess "Unspecified" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "32-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.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 "pic32.tlc" GenCodeOnly off MakeCommand "make_CreateMPLAB" GenerateMakefile on TemplateMakefile "pic32_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 "pic32_make_rtw_hook" ConfigAtBuild off RTWUseLocalCustomCode off RTWUseSimCustomCode off CustomHeaderCode "\n" CustomInclude "\"C:\\Users\\ij8977\\Documents\\MatlabWork\\SD_Datalogging\"\n\"C:\\Users\\ij8977\\Documents\\Mat" "labWork\\Microchip\"\n\"C:\\Users\\ij8977\\Documents\\MatlabWork\\Microchip\\Include\\MDD File System\"" CustomSource "\"C:\\Users\\ij8977\\Documents\\MatlabWork\\SD_Datalogging\\CustomSD.c\"\n\"C:\\Users\\ij8977\\Doc" "uments\\MatlabWork\\SD_Datalogging\\SD-SPI.c\"\n\"C:\\Users\\ij8977\\Documents\\MatlabWork\\SD_Datalogging\\FSIO.c\"" IncludeHyperlinkInReport off LaunchReport off 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 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.10.0" 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" 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 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 "pic32.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_table_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 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" GenerateASAP2 off ExtMode off ExtModeTransport 0 ExtModeStaticAlloc off ExtModeStaticAllocSize 1000000 ExtModeTesting off ExtModeMexFile "noextcomm" ExtModeIntrfLevel "Level1" InlinedParameterPlacement "NonHierarchical" TargetOS "BareBoardExample" MultiInstanceErrorCode "Error" RateGroupingCode on RootIOFormat "Individual arguments" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off ERTSrcFileBannerTemplate "dsPIC_code_template.cgt" ERTHdrFileBannerTemplate "dsPIC_code_template.cgt" ERTDataSrcFileTemplate "dsPIC_code_template.cgt" ERTDataHdrFileTemplate "dsPIC_code_template.cgt" ERTCustomFileTemplate "dsPIC_main.tlc" 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~1\\bin\\win32\\gmake" } CustomProperty { DataType "string" Name "OPTIM_GCC" Value "-mprocessor=32MX460F512L -O3 -fschedule-insns -fschedule-insns2 " " -fno-short-double" } CustomProperty { DataType "string" Name "LDFLAGS" Value "-t --report-mem -cref" } CustomProperty { DataType "string" Name "LDLIBPIC" Value " C:\\PROGRA~1\\MICROC~1\\mplabc32\\v2.00\\pic32mx\\lib\\speed\\libc.a C:\\PROGRA~1\\MICROC~1\\mplabc32\\v2." "00\\pic32mx\\lib\\speed\\libmchp_peripheral_32MX460F512L.a C:\\PROGRA~1\\MICROC~1\\mplabc32\\v2.00\\pic32mx\\lib\\sp" "eed\\libm.a C:\\PROGRA~1\\MICROC~1\\mplabc32\\v2.00\\pic32mx\\lib\\speed\\libm.a" } CustomProperty { DataType "string" Name "PIC_INCLUDES" Value " -IC:\\PROGRA~1\\MICROC~1\\mplabc32\\v2.00\\pic32mx\\include -IC:\\PROGRA~1\\MICROC~1\\mplabc32\\v2.00\\pic" "32mx\\include\\PERIPH~1" } CustomProperty { DataType "string" Name "PIC_REF" Value "32MX460F512L" } CustomProperty { DataType "string" Name "GCCPATH" Value "''" } } PropName "Components" } } PropName "Components" } Name "Configuration" ExtraOptions "-aGenerateTraceInfo=0 -aIgnoreTestpoints=0 " CurrentDlgPage "Real-Time Workshop" ConfigPrmDlgPosition " [ 429, 103, 1831, 886 ] " } 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 DataTypeConversion OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Inherit via back propagation" LockScale off ConvertRealWorld "Real World Value (RWV)" RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType DiscretePulseGenerator PulseType "Sample based" TimeSource "Use simulation time" Amplitude "1" Period "2" PulseWidth "1" PhaseDelay "0" SampleTime "1" VectorParams1D 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 Logic Operator "AND" Inputs "2" IconShape "rectangular" AllPortsSameDT on OutDataTypeStr "Inherit: Logical (see Configuration Parameters: Optimization)" SampleTime "-1" } Block { BlockType Memory X0 "0" InheritSampleTime off LinearizeMemory off LinearizeAsDelay off StateMustResolveToSignalObject off RTWStateStorageClass "Auto" } 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 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 TriggerPort TriggerType "rising" StatesWhenEnabling "inherit" PropagateVarSize "During execution" ShowOutputPort off OutputDataType "auto" SampleTimeType "triggered" SampleTime "1" ZeroCross on PortDimensions "-1" TriggerSignalSampleTime "-1" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: auto" Interpolate on } } System { Name "SD_Datalogger" Location [277, 104, 1147, 853] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "169" ReportName "simulink-default.rpt" SIDHighWatermark "77" Block { BlockType Reference Name "ADC Input" SID "56" Tag "dsPIC_ADC" Ports [0, 1] Position [40, 314, 135, 346] Priority "5" LibraryVersion "3.44" List { ListType RTWdata DMAChannel "0" } SourceBlock "dsPICdrivers/Peripheral I//O/ADC Input" SourceType "dsPIC : ADC10" ADC_TYPE "10 bits" ADC_MODE "Continuous sampling & get last channel value" NbrSampleStep "1" VoltRefpopup "AVdd - AVss" OutFormatBitspopup "0000 00dd dddd dddd : Integer" InterruptPriority "6" ANCHANNELS "[0]" MaxName "ANmax = 1023" Rin "1e2" ADCS "12" SAMC "1" Temperature "25" DMAChannel "0" SampleTime "-1" Status "OK | Tsmp=1.625e-007 | T/Channel=2.113e-006 | Tall=2.113e-006" SSRC "auto convert" } Block { BlockType Reference Name "Button1" SID "26" Tag "dsPIC_Digital_Input" Ports [0, 1] Position [30, 276, 140, 294] LibraryVersion "3.44" SourceBlock "dsPICdrivers/Digital I//O/Digital Input" SourceType "" PORT "A" Pin "[6]" SampleTime "-1" OrderingInOutPopup "None" } Block { BlockType Reference Name "Card Detect" SID "28" Tag "dsPIC_Digital_Input" Ports [0, 1] Position [20, 151, 120, 169] LibraryVersion "3.44" SourceBlock "dsPICdrivers/Digital I//O/Digital Input" SourceType "" PORT "D" Pin "[4]" SampleTime "-1" OrderingInOutPopup "None" } Block { BlockType Reference Name "Compare\nTo Zero" SID "51" Ports [1, 1] Position [250, 233, 280, 247] ShowName off LibraryVersion "1.225" SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Zero" SourceType "Compare To Zero" 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 "==" LogicOutDataTypeMode "uint8" ZeroCross on } Block { BlockType Reference Name "Configuration" SID "1" Ports [] Position [135, 15, 235, 65] BackgroundColor "lightBlue" DropShadow on LibraryVersion "3.44" 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" GeneratePreprocessorConditionals off double64 on } Block { BlockType Reference Name "Configure Model \nfor dsPIC" SID "3" Ports [] Position [255, 14, 367, 70] ForegroundColor "blue" BackgroundColor "yellow" LibraryVersion "3.44" SourceBlock "dsPICdrivers/Simulink Configuration/Configure Model \nfor dsPIC" SourceType "" } Block { BlockType Constant Name "Constant" SID "49" Position [35, 101, 55, 119] OutDataTypeStr "Inherit: Inherit via back propagation" } Block { BlockType Reference Name "Digital Output Write" SID "47" Tag "dsPIC_Digital_Output" Ports [1] Position [160, 97, 275, 123] Priority "5" LibraryVersion "3.44" SourceBlock "dsPICdrivers/Digital I//O/Digital Output Write" SourceType "" PORT "F" Pin "[2]" Simultaneous off OrderingInOutPopup "None" } Block { BlockType SubSystem Name "FSinit" SID "33" Ports [1] Position [135, 150, 175, 170] LibraryVersion "1.216" TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "FSinit" Location [517, 518, 890, 707] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Card_in" SID "45" Position [20, 33, 50, 47] IconDisplay "Port number" } Block { BlockType Constant Name "Constant" SID "46" Position [275, 23, 295, 37] BlockMirror on ShowName off Value "0" } Block { BlockType Reference Name "Edge\nDetector" SID "37" Ports [1, 1] Position [75, 28, 110, 52] LibraryVersion "1.223" UserDataPersistent on UserData "DataTag0" SourceBlock "dspswit3/Edge\nDetector" SourceType "Edge Detector" 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 InputProcessing "Inherited (this choice will be removed - see release notes)" } Block { BlockType SubSystem Name "FSinit" SID "38" Ports [0, 1, 0, 1] Position [145, 120, 190, 160] LibraryVersion "1.216" TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "FSinit" Location [108, 393, 365, 547] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType TriggerPort Name "Trigger" SID "39" Ports [] Position [80, 20, 100, 40] StatesWhenEnabling "held" } Block { BlockType Reference Name "C Function Call" SID "40" Tag "dsPIC_dsPIC_CFunctionCall" Ports [0, 1] Position [30, 68, 160, 122] LibraryVersion "3.44" List { ListType RTWdata isFctUpdate "1" FctDeclaration "extern uint8_T FS_init_loop();" FctCall "%y1 = FS_init_loop();" fctName "FS_init_loop" INPUT_SIZE "0" OUTPUT_SIZE "1" NBR_INPUT "0" NBR_OUTPUT "1" isFctStart "0" FctStart_Declaration "inline extern void Init_onlyOnce();" FctStart_Call "Init_onlyOnce();" FctStart_Name "Init_onlyOnce" isFctInit "0" FctInit_Declaration "inline extern void FSinit();" FctInit_Call "FSinit();" FctInit_Name "FSinit" } SourceBlock "dsPICdrivers/OTHERS/C Function Call" SourceType "C Function Call" FctUpdate "Output Function" fctName "'FS_init_loop'" INPUT_SIZE "0" INPUT1 "--" INPUT2 "--" INPUT3 "--" OUTPUT_SIZE "1" OUTPUT1 "uint8" SampleTime "-1" InputType "[ ]" OutputType "[ 2 ]" FctDeclaration "extern uint8_T FS_init_loop();" FctCall "%y1 = FS_init_loop();" OrderingInOutPopup "None" FctStart "None" FctStart_Name "Init_onlyOnce" FctStart_Declaration "inline extern void Init_onlyOnce();" FctStart_Call "Init_onlyOnce();" FctInit "None" FctInit_Name "FSinit" FctInit_Declaration "inline extern void FSinit();" FctInit_Call "FSinit();" } Block { BlockType Outport Name "Valid" SID "41" Position [180, 88, 210, 102] IconDisplay "Port number" } Line { SrcBlock "C Function Call" SrcPort 1 DstBlock "Valid" DstPort 1 } } } Block { BlockType Logic Name "Logical\nOperator" SID "42" Ports [2, 1] Position [147, 70, 178, 100] BlockRotation 270 BlockMirror on NamePlacement "alternate" ShowName off Operator "OR" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Memory Name "Memory" SID "75" Position [210, 125, 240, 155] } Block { BlockType DiscretePulseGenerator Name "Pulse\nGenerator" SID "43" Ports [0, 1] Position [275, 48, 300, 72] BlockMirror on ShowName off PulseWidth "2" SampleTime "-1" } Block { BlockType Switch Name "Switch" SID "44" Position [200, 25, 235, 65] BlockMirror on Criteria "u2 > Threshold" InputSameDT off SaturateOnIntegerOverflow off } Line { SrcBlock "Card_in" SrcPort 1 DstBlock "Edge\nDetector" DstPort 1 } Line { SrcBlock "Edge\nDetector" SrcPort 1 Points [40, 0] DstBlock "Logical\nOperator" DstPort 1 } Line { SrcBlock "Switch" SrcPort 1 Points [-25, 0] DstBlock "Logical\nOperator" DstPort 2 } Line { SrcBlock "Logical\nOperator" SrcPort 1 DstBlock "FSinit" DstPort trigger } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Switch" DstPort 1 } Line { SrcBlock "Pulse\nGenerator" SrcPort 1 DstBlock "Switch" DstPort 3 } Line { SrcBlock "FSinit" SrcPort 1 DstBlock "Memory" DstPort 1 } Line { SrcBlock "Memory" SrcPort 1 Points [15, 0; 0, -95] DstBlock "Switch" DstPort 2 } } } Block { BlockType SubSystem Name "File_oper" SID "5" Ports [3] Position [295, 189, 360, 251] LibraryVersion "1.216" TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "File_oper" Location [655, 397, 1153, 697] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "FSopen-trig" SID "6" Position [30, 23, 60, 37] IconDisplay "Port number" } Block { BlockType Inport Name "Filename" SID "9" Position [30, 83, 60, 97] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "FSClose-trig" SID "8" Position [30, 143, 60, 157] Port "3" IconDisplay "Port number" } Block { BlockType DataTypeConversion Name "Data Type Conversion" SID "74" Position [240, 81, 285, 99] ShowName off OutDataTypeStr "boolean" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "Digital Output Write" SID "54" Tag "dsPIC_Digital_Output" Ports [1] Position [330, 77, 445, 103] Priority "5" LibraryVersion "3.44" SourceBlock "dsPICdrivers/Digital I//O/Digital Output Write" SourceType "" PORT "B" Pin "[10]" Simultaneous off OrderingInOutPopup "None" } Block { BlockType SubSystem Name "FSclose" SID "14" Ports [0, 0, 0, 1] Position [134, 138, 168, 163] BlockRotation 270 BlockMirror on LibraryVersion "1.216" TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "FSclose" Location [108, 412, 247, 539] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType TriggerPort Name "Trigger" SID "17" Ports [] Position [40, 15, 60, 35] StatesWhenEnabling "held" } Block { BlockType Reference Name "C Function Call" SID "55" Tag "dsPIC_dsPIC_CFunctionCall" Ports [] Position [15, 63, 97, 101] LibraryVersion "3.44" List { ListType RTWdata isFctUpdate "1" FctDeclaration "extern void FSclose();" FctCall "FSclose();" fctName "FSclose" INPUT_SIZE "1" OUTPUT_SIZE "1" NBR_INPUT "0" NBR_OUTPUT "0" isFctStart "0" FctStart_Declaration "inline extern void Init_onlyOnce();" FctStart_Call "Init_onlyOnce();" FctStart_Name "Init_onlyOnce" isFctInit "0" FctInit_Declaration "inline extern void Init_Reset();" FctInit_Call "Init_Reset();" FctInit_Name "Init_Reset" } SourceBlock "dsPICdrivers/OTHERS/C Function Call" SourceType "C Function Call" FctUpdate "Output Function" fctName "'FSclose'" INPUT_SIZE "1" INPUT1 "--" INPUT2 "--" INPUT3 "--" OUTPUT_SIZE "1" OUTPUT1 "--" SampleTime "-1" InputType "[ ]" OutputType "[ ]" FctDeclaration "extern void FSclose();" FctCall "FSclose();" OrderingInOutPopup "None" FctStart "None" FctStart_Name "Init_onlyOnce" FctStart_Declaration "inline extern void Init_onlyOnce();" FctStart_Call "Init_onlyOnce();" FctInit "None" FctInit_Name "Init_Reset" FctInit_Declaration "inline extern void Init_Reset();" FctInit_Call "Init_Reset();" } } } Block { BlockType SubSystem Name "FSopen" SID "10" Ports [1, 1, 0, 1] Position [115, 75, 195, 105] LibraryVersion "1.216" TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "FSopen" Location [76, 448, 411, 650] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "name" SID "11" Position [30, 88, 60, 102] IconDisplay "Port number" } Block { BlockType TriggerPort Name "Trigger" SID "13" Ports [] Position [145, 15, 165, 35] StatesWhenEnabling "held" } Block { BlockType Reference Name "C Function Call" SID "52" Tag "dsPIC_dsPIC_CFunctionCall" Ports [1, 1] Position [95, 68, 225, 122] LibraryVersion "3.44" List { ListType RTWdata isFctUpdate "1" FctDeclaration "extern int16_T FSopen(uint8_T* u1);" FctCall "%y1 = FSopen(*%u1);" fctName "FSopen" INPUT_SIZE "10" OUTPUT_SIZE "1" NBR_INPUT "1" NBR_OUTPUT "1" isFctStart "0" FctStart_Declaration "inline extern void Init_onlyOnce();" FctStart_Call "Init_onlyOnce();" FctStart_Name "Init_onlyOnce" isFctInit "0" FctInit_Declaration "inline extern void Init_Reset();" FctInit_Call "Init_Reset();" FctInit_Name "Init_Reset" } SourceBlock "dsPICdrivers/OTHERS/C Function Call" SourceType "C Function Call" FctUpdate "Output Function" fctName "'FSopen'" INPUT_SIZE "10" INPUT1 "uint8" INPUT2 "--" INPUT3 "--" OUTPUT_SIZE "1" OUTPUT1 "int16" SampleTime "-1" InputType "[ 2 ]" OutputType "[ 3 ]" FctDeclaration "extern int16_T FSopen(uint8_T* u1);" FctCall "%y1 = FSopen(*%u1);" OrderingInOutPopup "None" FctStart "None" FctStart_Name "Init_onlyOnce" FctStart_Declaration "inline extern void Init_onlyOnce();" FctStart_Call "Init_onlyOnce();" FctInit "None" FctInit_Name "Init_Reset" FctInit_Declaration "inline extern void Init_Reset();" FctInit_Call "Init_Reset();" } Block { BlockType Outport Name "Open" SID "53" Position [265, 88, 295, 102] IconDisplay "Port number" } Line { SrcBlock "name" SrcPort 1 DstBlock "C Function Call" DstPort 1 } Line { SrcBlock "C Function Call" SrcPort 1 DstBlock "Open" DstPort 1 } } } Line { SrcBlock "Filename" SrcPort 1 DstBlock "FSopen" DstPort 1 } Line { SrcBlock "FSopen-trig" SrcPort 1 Points [90, 0] DstBlock "FSopen" DstPort trigger } Line { SrcBlock "FSopen" SrcPort 1 DstBlock "Data Type Conversion" DstPort 1 } Line { SrcBlock "FSClose-trig" SrcPort 1 DstBlock "FSclose" DstPort trigger } Line { SrcBlock "Data Type Conversion" SrcPort 1 DstBlock "Digital Output Write" DstPort 1 } } } Block { BlockType Reference Name "Generate Code" SID "4" Ports [] Position [395, 14, 507, 70] ForegroundColor "blue" BackgroundColor "yellow" DropShadow on LibraryVersion "3.44" SourceBlock "dsPICdrivers/Simulink Configuration/Generate Code" SourceType "" } Block { BlockType Reference Name "Master" SID "2" Tag "dsPIC_MASTER" Ports [] Position [14, 15, 114, 65] BackgroundColor "lightBlue" DropShadow on Priority "1" LibraryVersion "3.44" List { ListType RTWdata NumBusyPort "-1" } SourceBlock "dsPICdrivers/Master" SourceType "Master" TimeStepType "Timer1" picType "32MX460F512L" fcy "40000000" Quartz_33f "8e6" PLLActive_33f on fcyDesired_33f "40e6" tmr1 "[1 39999 0]" tmr1Info "Time Step : 0.001 ; Error : 0% PR1=39999" tmr2345 "[0 0 0 0]" tmr2345cfg "[-1 -1 -1 -1]" IOautoConf on typePort "[ 0 0 0 0 0 0 9 0 0 0 0 0 0 0 0 0 8 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" " 9 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 0 0 0 0 0 9 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 64511 65535 65535 65535 65531 65535 ]" ADPCFG "1024" MasterBusyPort "None" MasterOverloadPort "None" FOSC "Quartz (XT - HS)" ClockSwitchMonitor "Both disabled" 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]" } Block { BlockType Constant Name "String.TXT" SID "18" Position [180, 213, 250, 227] Value "[83,116,114,105,110,103,46,84,88,84]" OutDataTypeStr "uint8" } Block { BlockType Reference Name "Toggle" SID "50" Tag "dsPIC_Digital_Input" Ports [0, 1] Position [25, 206, 135, 224] LibraryVersion "3.44" SourceBlock "dsPICdrivers/Digital I//O/Digital Input" SourceType "" PORT "F" Pin "[8]" SampleTime "-1" OrderingInOutPopup "None" } Block { BlockType SubSystem Name "Write to file" SID "58" Ports [1, 0, 0, 1] Position [290, 320, 420, 340] LibraryVersion "1.216" TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Write to file" Location [427, 417, 631, 540] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "AN_0\nValue" SID "60" Position [15, 68, 45, 82] IconDisplay "Port number" } Block { BlockType TriggerPort Name "Trigger" SID "71" Ports [] Position [65, 15, 85, 35] StatesWhenEnabling "held" } Block { BlockType Reference Name "C Function Call" SID "72" Tag "dsPIC_dsPIC_CFunctionCall" Ports [1] Position [85, 60, 175, 90] LibraryVersion "3.44" List { ListType RTWdata isFctUpdate "1" FctDeclaration "extern void FSprint(uint16_T u1);" FctCall "FSprint(%u1);" fctName "FSprint" INPUT_SIZE "1" OUTPUT_SIZE "1" NBR_INPUT "1" NBR_OUTPUT "0" isFctStart "0" FctStart_Declaration "inline extern void Init_onlyOnce();" FctStart_Call "Init_onlyOnce();" FctStart_Name "Init_onlyOnce" isFctInit "0" FctInit_Declaration "inline extern void Init_Reset();" FctInit_Call "Init_Reset();" FctInit_Name "Init_Reset" } SourceBlock "dsPICdrivers/OTHERS/C Function Call" SourceType "C Function Call" FctUpdate "Output Function" fctName "'FSprint'" INPUT_SIZE "1" INPUT1 "uint16" INPUT2 "--" INPUT3 "--" OUTPUT_SIZE "1" OUTPUT1 "--" SampleTime "-1" InputType "[ 4 ]" OutputType "[ ]" FctDeclaration "extern void FSprint(uint16_T u1);" FctCall "FSprint(%u1);" OrderingInOutPopup "None" FctStart "None" FctStart_Name "Init_onlyOnce" FctStart_Declaration "inline extern void Init_onlyOnce();" FctStart_Call "Init_onlyOnce();" FctInit "None" FctInit_Name "Init_Reset" FctInit_Declaration "inline extern void Init_Reset();" FctInit_Call "Init_Reset();" } Line { SrcBlock "AN_0\nValue" SrcPort 1 DstBlock "C Function Call" DstPort 1 } } } Line { SrcBlock "String.TXT" SrcPort 1 DstBlock "File_oper" DstPort 2 } Line { SrcBlock "Card Detect" SrcPort 1 DstBlock "FSinit" DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Digital Output Write" DstPort 1 } Line { SrcBlock "Compare\nTo Zero" SrcPort 1 DstBlock "File_oper" DstPort 3 } Line { SrcBlock "Toggle" SrcPort 1 Points [10, 0] Branch { Points [0, 25] DstBlock "Compare\nTo Zero" DstPort 1 } Branch { Points [0, -15] DstBlock "File_oper" DstPort 1 } } Line { SrcBlock "ADC Input" SrcPort 1 DstBlock "Write to file" DstPort 1 } Line { SrcBlock "Button1" SrcPort 1 Points [210, 0] DstBlock "Write to file" DstPort trigger } } } MatData { NumRecords 1 DataRecord { Tag DataTag0 Data " %)30 . B 8 ( @ % \" $ ! 0 % 0 $P $ 3 :&%S26" "YH97)I=&5D3W!T:6]N #@ # & \" D\" !0 @ ! 0 $ @ ! $ " } }