Model { Name "roboticarm" Version 6.3 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.22" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "windows-1252" SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Wed Feb 15 13:59:13 2006" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "LAB USER" ModifiedDateFormat "%" LastModifiedDate "Wed Feb 22 15:30:39 2006" ModelVersionFormat "1.%" ConfigurationManager "None" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF 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 StrictBusMsg "Warning" ProdHWDeviceType "32-bit Generic" ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.1.0" Array { Type "Handle" Dimension 7 Simulink.SolverCC { $ObjectID 2 Version "1.1.0" StartTime "0.0" StopTime "400" AbsTol "auto" FixedStep "dt" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" RelTol "1e-3" SolverMode "Auto" Solver "FixedStepDiscrete" SolverName "FixedStepDiscrete" ZeroCrossControl "UseLocalSettings" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" RateTranMode "Deterministic" } Simulink.DataIOCC { $ObjectID 3 Version "1.1.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on InspectSignalLogs off SaveTime on StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Array { Type "Cell" Dimension 5 Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "InitFltsAndDblsToZero" Cell "OptimizeModelRefInitCode" Cell "NoFixptDivByZeroProtection" PropName "DisabledProps" } Version "1.1.0" BlockReduction off BooleanDataType on ConditionallyExecuteInputs on InlineParams off InlineInvariantSignals off OptimizeBlockIOStorage off BufferReuse off EnforceIntegerDowncast on ExpressionFolding off FoldNonRolledExpr on LocalBlockOutputs off ParameterPooling on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero on NoFixptDivByZeroProtection off EfficientFloat2IntCast off OptimizeModelRefInitCode off LifeSpan "inf" BufferReusableBoundary on } Simulink.DebuggingCC { $ObjectID 5 Version "1.1.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "TryResolveAllWithWarning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" SolverPrmCheckMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" SigSpecEnsureSampleTimeMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" FcnCallInpInsideContextMsg "Use local settings" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" ModelReferenceSimTargetVerbose off UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" } Simulink.HardwareCC { $ObjectID 6 Version "1.1.0" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdIntDivRoundTo "Undefined" ProdEndianess "Unspecified" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "32-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Specified" TargetUnknown off ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.1.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 8 Array { Type "Cell" Dimension 1 Cell "IncludeHyperlinkInReport" PropName "DisabledProps" } Version "1.1.0" SystemTargetFile "xpctarget.tlc" GenCodeOnly off MakeCommand "make_rtw" TemplateMakefile "xpc_default_tmf" Description "xPC Target" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ProcessScript "xpctarget_make_rtw_hook" ConfigAtBuild off IncludeHyperlinkInReport off LaunchReport off TargetLang "C" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 9 Array { Type "Cell" Dimension 9 Cell "IgnoreCustomStorageClasses" Cell "InsertBlockDesc" Cell "SFDataObjDesc" Cell "SimulinkDataObjDesc" Cell "DefineNamingRule" Cell "SignalNamingRule" Cell "ParamNamingRule" Cell "InlinedPrmAccess" Cell "CustomSymbolStr" PropName "DisabledProps" } Version "1.1.0" ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off PrefixModelToSubsysFcnNames on CustomSymbolStr "$R$N$M" MangleLength 1 DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off } xpctarget.xpcTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 10 Array { Type "Cell" Dimension 12 Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "MultiInstanceERTCode" Cell "PurelyIntegerCode" Cell "SupportNonFinite" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" PropName "DisabledProps" } Version "1.1.0" TargetFcnLib "ansi_tfl_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off IsPILTarget off ModelReferenceCompliant on IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on RL32ModeModifier "Real-Time" ExtMode on ExtModeMexFile "ext_xpc" ExtModeArmWhenConnect off RL32LogTETModifier on RL32LogBufSizeModifier "100000" RL32IRQSourceModifier "Timer" xPCIRQSourceBoard "None/Other" xPCIOIRQSlot "-1" xpcDblBuff off xpcObjCom off xPCGenerateASAP2 off RL32ObjectName "tg" xPCisDownloadable on xPCisDefaultEnv on } PropName "Components" } } PropName "Components" } Name "Configuration" SimulationMode "external" CurrentDlgPage "Real-Time Workshop" } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "arial" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType ActionPort InitializeStates "held" ActionType "unset" } Block { BlockType DataStoreMemory ReadBeforeWriteMsg "none" WriteAfterWriteMsg "none" WriteAfterReadMsg "none" StateMustResolveToSignalObject off ShowAdditionalParam off DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" } Block { BlockType DataStoreRead } Block { BlockType DataStoreWrite } Block { BlockType Demux Outputs "4" DisplayOption "none" BusSelectionMode off } Block { BlockType If NumInputs "1" IfExpression "u1 > 0" ShowElse on ZeroCross on SampleTime "-1" } Block { BlockType Inport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchByCopyingInsideSignal off Interpolate on } Block { BlockType Mux Inputs "4" DisplayOption "none" UseBusObject off BusObject "BusObject" NonVirtualBus off } Block { BlockType Outport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType "S-Function" FunctionName "system" SFunctionModules "''" PortCounts "[]" } Block { BlockType SubSystem ShowPortLabels on Permissions "ReadWrite" PermitHierarchicalResolution "All" SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Terminator } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "arial" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "arial" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "roboticarm" Location [30, 147, 1225, 690] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Reference Name "Analog Inputs" Ports [0, 4] Position [15, 86, 125, 164] SourceBlock "xpcsensoraylib/A//D/Sensoray526 AD 1" SourceType "sensoray526-ain" channel "[1 2 3 4]" sampletime "dt" baseaddress1 "0x2c0" baseaddress2 "0" } Block { BlockType DataStoreMemory Name "Lower Arm" Position [30, 235, 62, 265] DataStoreName "V1" InitialValue "zeros(1,t/dt+1)" RTWStateStorageClass "Auto" VectorParams1D on ShowAdditionalParam off } Block { BlockType DataStoreMemory Name "Lower Arm C" Position [90, 235, 122, 265] DataStoreName "C1" InitialValue "1" RTWStateStorageClass "Auto" VectorParams1D on ShowAdditionalParam off } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [920, 105, 925, 165] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType SubSystem Name "Nothing Case On/On" Ports [0, 0, 0, 0, 0, 0, 0, 1] Position [580, 227, 650, 263] TreatAsAtomicUnit on MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "Nothing Case On/On" Location [365, 478, 867, 792] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType ActionPort Name "Action Port" Position [170, 15, 229, 43] ActionType "elseif" } } } Block { BlockType SubSystem Name "Read" Ports [2, 2, 0, 0, 0, 0, 0, 1] Position [795, 104, 875, 166] TreatAsAtomicUnit on MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "Read" Location [167, 409, 1111, 886] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [100, 133, 130, 147] IconDisplay "Port number" } Block { BlockType Inport Name "In2" Position [110, 288, 140, 302] Port "2" IconDisplay "Port number" } Block { BlockType ActionPort Name "Read Mode / Self Reset" Position [215, 15, 274, 43] InitializeStates "reset" ActionType "then" } Block { BlockType SubSystem Name "V1Store" Ports [1] Position [335, 117, 375, 163] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "V1Store" Location [439, 257, 1162, 603] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "V1" Position [180, 58, 210, 72] IconDisplay "Port number" } Block { BlockType DataStoreRead Name "Counter Read" Position [180, 105, 210, 135] DataStoreName "C1" SampleTime "dt" } Block { BlockType DataStoreWrite Name "Counter Write" Position [505, 140, 535, 170] DataStoreName "C1" SampleTime "-1" } Block { BlockType DataStoreRead Name "Data Store\nRead" Position [180, 160, 210, 190] DataStoreName "V1" SampleTime "dt" } Block { BlockType DataStoreWrite Name "Data Store\nWrite" Position [505, 65, 535, 95] DataStoreName "V1" SampleTime "-1" } Block { BlockType SubSystem Name "Sequential Store" Ports [3, 2] Position [355, 78, 450, 162] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off MaskType "Stateflow" MaskDescription "Embedded MATLAB block" MaskDisplay "disp('fcn');" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Sequential Store" Location [257, 457, 812, 717] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "Now" Position [20, 101, 40, 119] IconDisplay "Port number" } Block { BlockType Inport Name "Counter1" Position [20, 136, 40, 154] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "VectorOld" Position [20, 171, 40, 189] Port "3" IconDisplay "Port number" } Block { BlockType Demux Name " Demux " Ports [1, 1] Position [270, 180, 320, 220] Outputs "1" } Block { BlockType "S-Function" Name " SFunction " Tag "Stateflow S-Function roboticarm 1" Ports [3, 3] Position [180, 100, 230, 180] FunctionName "sf_sfun" PortCounts "[3 3]" Port { PortNumber 2 Name "VectorNew" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 3 Name "Counter2" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Terminator Name " Terminator " Position [460, 191, 480, 209] } Block { BlockType Outport Name "VectorNew" Position [460, 101, 480, 119] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Counter2" Position [460, 136, 480, 154] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock " SFunction " SrcPort 1 Points [0, 85] DstBlock " Demux " DstPort 1 } Line { SrcBlock " Demux " SrcPort 1 DstBlock " Terminator " DstPort 1 } Line { SrcBlock "Now" SrcPort 1 DstBlock " SFunction " DstPort 1 } Line { Name "VectorNew" Labels [0, 0] SrcBlock " SFunction " SrcPort 2 DstBlock "VectorNew" DstPort 1 } Line { SrcBlock "Counter1" SrcPort 1 Points [120, 0] DstBlock " SFunction " DstPort 2 } Line { SrcBlock "VectorOld" SrcPort 1 DstBlock " SFunction " DstPort 3 } Line { Name "Counter2" Labels [0, 0] SrcBlock " SFunction " SrcPort 3 DstBlock "Counter2" DstPort 1 } } } Line { SrcBlock "V1" SrcPort 1 Points [0, 25] DstBlock "Sequential Store" DstPort 1 } Line { SrcBlock "Counter Read" SrcPort 1 DstBlock "Sequential Store" DstPort 2 } Line { SrcBlock "Data Store\nRead" SrcPort 1 Points [0, -25] DstBlock "Sequential Store" DstPort 3 } Line { SrcBlock "Sequential Store" SrcPort 1 Points [15, 0; 0, -20] DstBlock "Data Store\nWrite" DstPort 1 } Line { SrcBlock "Sequential Store" SrcPort 2 Points [20, 0; 0, 15] DstBlock "Counter Write" DstPort 1 } } } Block { BlockType SubSystem Name "V2Store" Ports [1] Position [335, 271, 375, 319] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "V2Store" Location [620, 536, 1118, 836] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "V2" Position [90, 103, 120, 117] IconDisplay "Port number" } Block { BlockType DataStoreRead Name "Counter Read" Position [90, 145, 120, 175] DataStoreName "C2" SampleTime "dt" } Block { BlockType DataStoreWrite Name "Counter Write" Position [385, 180, 415, 210] DataStoreName "C2" SampleTime "-1" } Block { BlockType DataStoreRead Name "Data Store\nRead" Position [90, 210, 120, 240] DataStoreName "V2" SampleTime "dt" } Block { BlockType DataStoreWrite Name "Data Store\nWrite" Position [385, 110, 415, 140] DataStoreName "V2" SampleTime "-1" } Block { BlockType SubSystem Name "Sequential Store" Ports [3, 2] Position [235, 118, 330, 202] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off MaskType "Stateflow" MaskDescription "Embedded MATLAB block" MaskDisplay "disp('fcn');" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Sequential Store" Location [257, 457, 812, 717] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "Now" Position [20, 101, 40, 119] IconDisplay "Port number" } Block { BlockType Inport Name "Counter1" Position [20, 136, 40, 154] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "VectorOld" Position [20, 171, 40, 189] Port "3" IconDisplay "Port number" } Block { BlockType Demux Name " Demux " Ports [1, 1] Position [270, 180, 320, 220] Outputs "1" } Block { BlockType "S-Function" Name " SFunction " Tag "Stateflow S-Function roboticarm 3" Ports [3, 3] Position [180, 100, 230, 180] FunctionName "sf_sfun" PortCounts "[3 3]" Port { PortNumber 2 Name "VectorNew" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 3 Name "Counter2" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Terminator Name " Terminator " Position [460, 191, 480, 209] } Block { BlockType Outport Name "VectorNew" Position [460, 101, 480, 119] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Counter2" Position [460, 136, 480, 154] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock " SFunction " SrcPort 1 Points [0, 85] DstBlock " Demux " DstPort 1 } Line { SrcBlock " Demux " SrcPort 1 DstBlock " Terminator " DstPort 1 } Line { SrcBlock "Now" SrcPort 1 DstBlock " SFunction " DstPort 1 } Line { Name "VectorNew" Labels [0, 0] SrcBlock " SFunction " SrcPort 2 DstBlock "VectorNew" DstPort 1 } Line { SrcBlock "Counter1" SrcPort 1 Points [120, 0] DstBlock " SFunction " DstPort 2 } Line { SrcBlock "VectorOld" SrcPort 1 DstBlock " SFunction " DstPort 3 } Line { Name "Counter2" Labels [0, 0] SrcBlock " SFunction " SrcPort 3 DstBlock "Counter2" DstPort 1 } } } Line { SrcBlock "V2" SrcPort 1 Points [15, 0; 0, 20] DstBlock "Sequential Store" DstPort 1 } Line { SrcBlock "Counter Read" SrcPort 1 DstBlock "Sequential Store" DstPort 2 } Line { SrcBlock "Data Store\nRead" SrcPort 1 Points [15, 0; 0, -35] DstBlock "Sequential Store" DstPort 3 } Line { SrcBlock "Sequential Store" SrcPort 1 Points [15, 0; 0, -15] DstBlock "Data Store\nWrite" DstPort 1 } Line { SrcBlock "Sequential Store" SrcPort 2 Points [20, 0; 0, 15] DstBlock "Counter Write" DstPort 1 } } } Block { BlockType Outport Name "Pot1V1" Position [265, 178, 295, 192] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Pot2V1" Position [260, 333, 290, 347] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "In1" SrcPort 1 Points [80, 0] Branch { Points [0, 45] DstBlock "Pot1V1" DstPort 1 } Branch { DstBlock "V1Store" DstPort 1 } } Line { SrcBlock "In2" SrcPort 1 Points [70, 0] Branch { DstBlock "V2Store" DstPort 1 } Branch { Points [0, 45] DstBlock "Pot2V1" DstPort 1 } } } } Block { BlockType If Name "Read Write Com" Ports [2, 4] Position [285, 74, 475, 211] NumInputs "2" IfExpression "u1 > 3 & u2 < 3" ElseIfExpressions "u1 < 3 & u2 > 3, u1 < 3 & u2 < 3" } Block { BlockType SubSystem Name "Reset Case Off/Off" Ports [0, 0, 0, 0, 0, 0, 0, 1] Position [480, 227, 550, 263] TreatAsAtomicUnit on MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "Reset Case Off/Off" Location [660, 483, 1166, 849] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType ActionPort Name "Action Port" Position [170, 15, 229, 43] ActionType "else" } } } Block { BlockType Reference Name "Scope (xPC) " Ports [1] Position [945, 105, 1035, 165] SourceBlock "xpclib/Misc./Scope (xPC) " SourceType "xpcscopeblock" ShowPortLabels on scopeno "1" scopetype "Target" autostart on viewmode "Graphical redraw" formatstr "'%15.6f'" grid on ylimits "[0,0]" nosamples "250" noprepostsamples "0" interleave "1" triggermode "FreeRun" triggersignal "1" triggerlevel "0.0" triggerslope "Either" triggerscope "1" triggersample "0" filename "data.dat" mode "Lazy" writesize "512" autorestart off } Block { BlockType DataStoreMemory Name "Upper Arm" Position [155, 235, 187, 265] DataStoreName "V2" ReadBeforeWriteMsg "warning" WriteAfterWriteMsg "warning" WriteAfterReadMsg "warning" InitialValue "zeros(1,t/dt+1)" RTWStateStorageClass "Auto" VectorParams1D on ShowAdditionalParam off } Block { BlockType DataStoreMemory Name "Upper Arm C" Position [220, 235, 252, 265] DataStoreName "C2" ReadBeforeWriteMsg "warning" WriteAfterWriteMsg "warning" WriteAfterReadMsg "warning" InitialValue "1" RTWStateStorageClass "Auto" VectorParams1D on ShowAdditionalParam off } Block { BlockType SubSystem Name "Write" Ports [0, 0, 0, 0, 0, 0, 0, 1] Position [680, 227, 750, 263] TreatAsAtomicUnit on MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "Write" Location [388, 145, 1278, 843] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType ActionPort Name "Write Mode" Position [385, 30, 444, 58] InitializeStates "reset" ActionType "elseif" } Block { BlockType SubSystem Name "Calibration (1)" Ports [1, 1] Position [475, 162, 545, 208] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off MaskType "Stateflow" MaskDescription "Embedded MATLAB block" MaskDisplay "disp('cali');" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Calibration (1)" Location [257, 457, 812, 717] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "potv" Position [20, 101, 40, 119] IconDisplay "Port number" } Block { BlockType Demux Name " Demux " Ports [1, 1] Position [270, 160, 320, 200] Outputs "1" } Block { BlockType "S-Function" Name " SFunction " Tag "Stateflow S-Function roboticarm 5" Ports [1, 2] Position [180, 100, 230, 160] FunctionName "sf_sfun" PortCounts "[1 2]" Port { PortNumber 2 Name "AoutL" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Terminator Name " Terminator " Position [460, 171, 480, 189] } Block { BlockType Outport Name "AoutL" Position [460, 101, 480, 119] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock " SFunction " SrcPort 1 Points [0, 65] DstBlock " Demux " DstPort 1 } Line { SrcBlock " Demux " SrcPort 1 DstBlock " Terminator " DstPort 1 } Line { SrcBlock "potv" SrcPort 1 DstBlock " SFunction " DstPort 1 } Line { Name "AoutL" Labels [0, 0] SrcBlock " SFunction " SrcPort 2 DstBlock "AoutL" DstPort 1 } } } Block { BlockType SubSystem Name "Calibration (2)" Ports [1, 1] Position [475, 342, 545, 388] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off MaskType "Stateflow" MaskDescription "Embedded MATLAB block" MaskDisplay "disp('cali');" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Calibration (2)" Location [257, 457, 812, 717] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "potv" Position [20, 101, 40, 119] IconDisplay "Port number" } Block { BlockType Demux Name " Demux " Ports [1, 1] Position [270, 160, 320, 200] Outputs "1" } Block { BlockType "S-Function" Name " SFunction " Tag "Stateflow S-Function roboticarm 6" Ports [1, 2] Position [180, 100, 230, 160] FunctionName "sf_sfun" PortCounts "[1 2]" Port { PortNumber 2 Name "AoutU" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Terminator Name " Terminator " Position [460, 171, 480, 189] } Block { BlockType Outport Name "AoutU" Position [460, 101, 480, 119] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock " SFunction " SrcPort 1 Points [0, 65] DstBlock " Demux " DstPort 1 } Line { SrcBlock " Demux " SrcPort 1 DstBlock " Terminator " DstPort 1 } Line { SrcBlock "potv" SrcPort 1 DstBlock " SFunction " DstPort 1 } Line { Name "AoutU" Labels [0, 0] SrcBlock " SFunction " SrcPort 2 DstBlock "AoutU" DstPort 1 } } } Block { BlockType DataStoreMemory Name "Counter 1" Position [65, 150, 97, 180] DataStoreName "C" ReadBeforeWriteMsg "warning" WriteAfterWriteMsg "warning" WriteAfterReadMsg "warning" InitialValue "1" RTWStateStorageClass "Auto" VectorParams1D on ShowAdditionalParam off } Block { BlockType DataStoreRead Name "Counter 1 Read" Position [165, 145, 195, 175] DataStoreName "C" SampleTime "dt" } Block { BlockType DataStoreWrite Name "Counter 1 Write" Position [415, 165, 445, 195] DataStoreName "C" SampleTime "-1" } Block { BlockType DataStoreMemory Name "Counter 2" Position [65, 405, 97, 435] DataStoreName "CC" ReadBeforeWriteMsg "warning" WriteAfterWriteMsg "warning" WriteAfterReadMsg "warning" InitialValue "1" RTWStateStorageClass "Auto" VectorParams1D on ShowAdditionalParam off } Block { BlockType DataStoreRead Name "Counter 2 Read" Position [160, 420, 190, 450] DataStoreName "CC" SampleTime "dt" } Block { BlockType DataStoreWrite Name "Counter 2 Write" Position [420, 445, 450, 475] DataStoreName "CC" SampleTime "-1" } Block { BlockType DataStoreRead Name "Data Store\nRead" Position [165, 80, 195, 110] DataStoreName "V1" SampleTime "dt" } Block { BlockType DataStoreRead Name "Data Store\nRead2" Position [160, 350, 190, 380] DataStoreName "V2" SampleTime "dt" } Block { BlockType Reference Name "Delay (1)" Ports [1, 1] Position [605, 213, 640, 247] SourceBlock "simulink/Discrete/Integer Delay" SourceType "Integer Delay" vinit "0.0" samptime "-1" NumDelays "20" } Block { BlockType Reference Name "Delay (2)" Ports [1, 1] Position [605, 308, 640, 342] SourceBlock "simulink/Discrete/Integer Delay" SourceType "Integer Delay" vinit "0.0" samptime "-1" NumDelays "20" } Block { BlockType DataStoreRead Name "External Counter 1" Position [165, 215, 195, 245] DataStoreName "C1" SampleTime "dt" } Block { BlockType DataStoreRead Name "External Counter 2" Position [160, 495, 190, 525] DataStoreName "C1" SampleTime "dt" } Block { BlockType Reference Name "Sensoray526 DA " Ports [2] Position [670, 237, 775, 288] SourceBlock "xpcsensoraylib/D//A/Sensoray526 DA " SourceType "sensoray526-aout" channel "[1 2]" reset "[0]" initial "[0]" sampletime "-1" baseaddress1 "0x2c0" baseaddress2 "0" } Block { BlockType SubSystem Name "Sequential Extraction (1)" Ports [3, 2] Position [270, 118, 380, 202] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off MaskType "Stateflow" MaskDescription "Embedded MATLAB block" MaskDisplay "disp('extr');" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Sequential Extraction (1)" Location [257, 457, 812, 717] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "u" Position [20, 101, 40, 119] IconDisplay "Port number" } Block { BlockType Inport Name "counterin" Position [20, 136, 40, 154] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "c1" Position [20, 171, 40, 189] Port "3" IconDisplay "Port number" } Block { BlockType Demux Name " Demux " Ports [1, 1] Position [270, 205, 320, 245] Outputs "1" } Block { BlockType "S-Function" Name " SFunction " Tag "Stateflow S-Function roboticarm 2" Ports [3, 3] Position [180, 104, 230, 206] FunctionName "sf_sfun" PortCounts "[3 3]" Port { PortNumber 2 Name "y" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 3 Name "counterout" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Terminator Name " Terminator " Position [460, 216, 480, 234] } Block { BlockType Outport Name "y" Position [460, 101, 480, 119] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "counterout" Position [460, 136, 480, 154] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "counterin" SrcPort 1 Points [120, 0] DstBlock " SFunction " DstPort 2 } Line { SrcBlock "u" SrcPort 1 DstBlock " SFunction " DstPort 1 } Line { SrcBlock " Demux " SrcPort 1 DstBlock " Terminator " DstPort 1 } Line { SrcBlock " SFunction " SrcPort 1 Points [0, 105] DstBlock " Demux " DstPort 1 } Line { Name "y" Labels [0, 0] SrcBlock " SFunction " SrcPort 2 DstBlock "y" DstPort 1 } Line { Name "counterout" Labels [0, 0] SrcBlock " SFunction " SrcPort 3 DstBlock "counterout" DstPort 1 } Line { SrcBlock "c1" SrcPort 1 DstBlock " SFunction " DstPort 3 } } } Block { BlockType SubSystem Name "Sequential Extraction (2)" Ports [3, 2] Position [265, 387, 375, 483] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off MaskType "Stateflow" MaskDescription "Embedded MATLAB block" MaskDisplay "disp('extr');" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Sequential Extraction (2)" Location [257, 457, 812, 717] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "u" Position [20, 101, 40, 119] IconDisplay "Port number" } Block { BlockType Inport Name "counterin" Position [20, 136, 40, 154] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "c2" Position [20, 171, 40, 189] Port "3" IconDisplay "Port number" } Block { BlockType Demux Name " Demux " Ports [1, 1] Position [270, 205, 320, 245] Outputs "1" } Block { BlockType "S-Function" Name " SFunction " Tag "Stateflow S-Function roboticarm 4" Ports [3, 3] Position [180, 104, 230, 206] FunctionName "sf_sfun" PortCounts "[3 3]" Port { PortNumber 2 Name "y" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 3 Name "counterout" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Terminator Name " Terminator " Position [460, 216, 480, 234] } Block { BlockType Outport Name "y" Position [460, 101, 480, 119] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "counterout" Position [460, 136, 480, 154] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "counterin" SrcPort 1 Points [120, 0] DstBlock " SFunction " DstPort 2 } Line { SrcBlock "u" SrcPort 1 DstBlock " SFunction " DstPort 1 } Line { SrcBlock " Demux " SrcPort 1 DstBlock " Terminator " DstPort 1 } Line { SrcBlock " SFunction " SrcPort 1 Points [0, 105] DstBlock " Demux " DstPort 1 } Line { Name "y" Labels [0, 0] SrcBlock " SFunction " SrcPort 2 DstBlock "y" DstPort 1 } Line { Name "counterout" Labels [0, 0] SrcBlock " SFunction " SrcPort 3 DstBlock "counterout" DstPort 1 } Line { SrcBlock "c2" SrcPort 1 DstBlock " SFunction " DstPort 3 } } } Line { SrcBlock "Sequential Extraction (1)" SrcPort 2 DstBlock "Counter 1 Write" DstPort 1 } Line { SrcBlock "Data Store\nRead" SrcPort 1 Points [25, 0; 0, 35] DstBlock "Sequential Extraction (1)" DstPort 1 } Line { SrcBlock "Counter 1 Read" SrcPort 1 DstBlock "Sequential Extraction (1)" DstPort 2 } Line { SrcBlock "Data Store\nRead2" SrcPort 1 Points [20, 0; 0, 40] DstBlock "Sequential Extraction (2)" DstPort 1 } Line { SrcBlock "Counter 2 Read" SrcPort 1 DstBlock "Sequential Extraction (2)" DstPort 2 } Line { SrcBlock "Sequential Extraction (2)" SrcPort 2 DstBlock "Counter 2 Write" DstPort 1 } Line { SrcBlock "Sequential Extraction (1)" SrcPort 1 Points [75, 0] DstBlock "Calibration (1)" DstPort 1 } Line { SrcBlock "Sequential Extraction (2)" SrcPort 1 Points [40, 0; 0, -45] DstBlock "Calibration (2)" DstPort 1 } Line { SrcBlock "Calibration (1)" SrcPort 1 Points [20, 0; 0, 45] DstBlock "Delay (1)" DstPort 1 } Line { SrcBlock "Delay (1)" SrcPort 1 Points [10, 0] DstBlock "Sensoray526 DA " DstPort 1 } Line { SrcBlock "Calibration (2)" SrcPort 1 Points [10, 0; 0, -40] DstBlock "Delay (2)" DstPort 1 } Line { SrcBlock "Delay (2)" SrcPort 1 Points [5, 0; 0, -50] DstBlock "Sensoray526 DA " DstPort 2 } Line { SrcBlock "External Counter 1" SrcPort 1 Points [25, 0; 0, -40] DstBlock "Sequential Extraction (1)" DstPort 3 } Line { SrcBlock "External Counter 2" SrcPort 1 Points [25, 0; 0, -45] DstBlock "Sequential Extraction (2)" DstPort 3 } } } Line { SrcBlock "Analog Inputs" SrcPort 3 Points [80, 0; 0, -25] DstBlock "Read Write Com" DstPort 1 } Line { SrcBlock "Analog Inputs" SrcPort 4 Points [80, 0; 0, 25] DstBlock "Read Write Com" DstPort 2 } Line { SrcBlock "Read Write Com" SrcPort 4 Points [35, 0] DstBlock "Reset Case Off/Off" DstPort ifaction } Line { SrcBlock "Read Write Com" SrcPort 3 Points [135, 0] DstBlock "Nothing Case On/On" DstPort ifaction } Line { SrcBlock "Read Write Com" SrcPort 2 Points [235, 0] DstBlock "Write" DstPort ifaction } Line { SrcBlock "Analog Inputs" SrcPort 1 Points [20, 0; 0, -50; 615, 0; 0, 75] DstBlock "Read" DstPort 1 } Line { Labels [2, 0] SrcBlock "Analog Inputs" SrcPort 2 Points [35, 0; 0, -55; 580, 0; 0, 90] DstBlock "Read" DstPort 2 } Line { SrcBlock "Read" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Read" SrcPort 2 DstBlock "Mux" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Scope (xPC) " DstPort 1 } Line { SrcBlock "Read Write Com" SrcPort 1 Points [305, 0; 0, 1] DstBlock "Read" DstPort ifaction } Annotation { Name "read" Position [502, 87] UseDisplayTextAsClickCallback off } Annotation { Name "write" Position [504, 126] UseDisplayTextAsClickCallback off } Annotation { Name "nothing" Position [503, 162] UseDisplayTextAsClickCallback off } Annotation { Name "nothing" Position [503, 199] UseDisplayTextAsClickCallback off } Annotation { Name "pot1" Position [151, 95] UseDisplayTextAsClickCallback off } Annotation { Name "pot2" Position [153, 115] UseDisplayTextAsClickCallback off } Annotation { Name "Read" Position [238, 101] UseDisplayTextAsClickCallback off } Annotation { Name "Write" Position [234, 191] UseDisplayTextAsClickCallback off } Annotation { Name "global vars" Position [133, 205] UseDisplayTextAsClickCallback off } } } # Finite State Machines # # Stateflow Version 6.2 (R14SP2) dated Aug 4 2005, 10:13:39 # # Stateflow { machine { id 1 name "roboticarm" created "15-Feb-2006 14:12:09" isLibrary 0 firstTarget 56 sfVersion 62014000 } chart { id 2 name "Read/V1Store/Sequential Store" windowPosition [356.813 254.45 200.25 189.75] viewLimits [0 156.75 0 153.75] screen [1 1 1280 1024 1.333333333333333] treeNode [0 3 0 0] firstTransition 5 firstJunction 4 viewObj 2 machine 1 decomposition CLUSTER_CHART type EML_CHART firstData 6 chartFileNumber 1 disableImplicitCasting 1 eml { name "fcn" } } state { id 3 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 chart 2 treeNode [2 0 0 0] superState SUBCHART subviewer 2 type FUNC_STATE decomposition CLUSTER_STATE eml { isEML 1 script "function [VectorNew,Counter2] = fcn(Now,Counter1,VectorOld)" "\n" "% This block supports an embeddable subset of the MATLAB la" "nguage.\n" "% See the help menu for details. \n" "VectorOld(Counter1)=Now;\n" "VectorNew=VectorOld;\n" "Counter2=Counter1+1;" editorLayout "100 M4x1[355 546 671 364]" fimathString "fimath(...\n" "'RoundMode', 'floor',...\n" "'OverflowMode', 'wrap',...\n" "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..." "\n" "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n" "'CastBeforeSum', false)" treatIntsAsFixpt 0 } } junction { id 4 position [23.5747 49.5747 7] chart 2 linkNode [2 0 0] subviewer 2 type CONNECTIVE_JUNCTION } transition { id 5 labelString "{eML_blk_kernel();}" labelPosition [32.125 19.875 102.544 14.964] fontSize 12 src { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { id 4 intersection [7 0 -1 -1 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] chart 2 linkNode [2 0 0] dataLimits [21.175 25.975 14.625 42.575] subviewer 2 drawStyle SMART executionOrder 1 } data { id 6 name "Now" linkNode [2 0 7] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE } complexity SF_COMPLEX_INHERITED } dataType "inherited" fixptType { slope 1 baseType SF_INT16_TYPE } complexity SF_COMPLEX_INHERITED } data { id 7 name "VectorNew" linkNode [2 6 8] scope OUTPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE } complexity SF_COMPLEX_INHERITED } dataType "inherited" fixptType { slope 1 baseType SF_INT16_TYPE } complexity SF_COMPLEX_INHERITED } data { id 8 name "Counter1" linkNode [2 7 9] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } } dataType "inherited" } data { id 9 name "VectorOld" linkNode [2 8 10] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } } dataType "inherited" } data { id 10 name "Counter2" linkNode [2 9 0] scope OUTPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } } dataType "inherited" } instance { id 11 name "Read/V1Store/Sequential Store" machine 1 chart 2 } chart { id 12 name "Write/Sequential Extraction (1)" windowPosition [296.813 314.45 200.25 189.75] viewLimits [0 156.75 0 153.75] screen [1 1 1280 1024 1.333333333333333] treeNode [0 13 0 0] firstTransition 15 firstJunction 14 viewObj 12 machine 1 decomposition CLUSTER_CHART type EML_CHART firstData 16 chartFileNumber 2 disableImplicitCasting 1 eml { name "extr" } } state { id 13 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 chart 12 treeNode [12 0 0 0] superState SUBCHART subviewer 12 type FUNC_STATE decomposition CLUSTER_STATE eml { isEML 1 script "function [y,counterout] = extr(u,counterin,c1)\n" "% This block supports an embeddable subset of the MATLAB la" "nguage.\n" "% See the help menu for details. \n" "if counterin < c1\n" "\ty = u(counterin);\n" "else \n" " y = u(c1);\n" "end\n" "counterout=counterin+1;" editorLayout "100 M4x1[168 575 671 364]" fimathString "fimath(...\n" "'RoundMode', 'floor',...\n" "'OverflowMode', 'wrap',...\n" "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..." "\n" "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n" "'CastBeforeSum', false)" treatIntsAsFixpt 0 } } junction { id 14 position [23.5747 49.5747 7] chart 12 linkNode [12 0 0] subviewer 12 type CONNECTIVE_JUNCTION } transition { id 15 labelString "{eML_blk_kernel();}" labelPosition [32.125 19.875 102.544 14.964] fontSize 12 src { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { id 14 intersection [7 0 -1 -1 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] chart 12 linkNode [12 0 0] dataLimits [21.175 25.975 14.625 42.575] subviewer 12 drawStyle SMART executionOrder 1 } data { id 16 name "u" linkNode [12 0 17] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE } complexity SF_COMPLEX_INHERITED } dataType "inherited" fixptType { slope 1 baseType SF_INT16_TYPE } complexity SF_COMPLEX_INHERITED } data { id 17 name "y" linkNode [12 16 18] scope OUTPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE } complexity SF_COMPLEX_INHERITED } dataType "inherited" fixptType { slope 1 baseType SF_INT16_TYPE } complexity SF_COMPLEX_INHERITED } data { id 18 name "counterin" linkNode [12 17 19] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } } dataType "inherited" } data { id 19 name "counterout" linkNode [12 18 20] scope OUTPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } } dataType "inherited" } data { id 20 name "c1" linkNode [12 19 0] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } } dataType "inherited" } instance { id 21 name "Write/Sequential Extraction (1)" machine 1 chart 12 } chart { id 22 name "Read/V2Store/Sequential Store" windowPosition [371.813 239.45 200.25 189.75] viewLimits [0 156.75 0 153.75] screen [1 1 1280 1024 1.333333333333333] treeNode [0 23 0 0] firstTransition 25 firstJunction 24 viewObj 22 machine 1 decomposition CLUSTER_CHART type EML_CHART firstData 26 chartFileNumber 3 disableImplicitCasting 1 eml { name "fcn" } } state { id 23 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 chart 22 treeNode [22 0 0 0] superState SUBCHART subviewer 22 type FUNC_STATE decomposition CLUSTER_STATE eml { isEML 1 script "function [VectorNew,Counter2] = fcn(Now,Counter1,VectorOld)" "\n" "% This block supports an embeddable subset of the MATLAB la" "nguage.\n" "% See the help menu for details. \n" "VectorOld(Counter1)=Now;\n" "VectorNew=VectorOld;\n" "Counter2=Counter1+1;\n" "\n" "" editorLayout "100 M4x1[146 214 671 364]" fimathString "fimath(...\n" "'RoundMode', 'floor',...\n" "'OverflowMode', 'wrap',...\n" "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..." "\n" "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n" "'CastBeforeSum', false)" treatIntsAsFixpt 0 } } junction { id 24 position [23.5747 49.5747 7] chart 22 linkNode [22 0 0] subviewer 22 type CONNECTIVE_JUNCTION } transition { id 25 labelString "{eML_blk_kernel();}" labelPosition [32.125 19.875 102.544 14.964] fontSize 12 src { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { id 24 intersection [7 0 -1 -1 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] chart 22 linkNode [22 0 0] dataLimits [21.175 25.975 14.625 42.575] subviewer 22 drawStyle SMART executionOrder 1 } data { id 26 name "Now" linkNode [22 0 27] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE } complexity SF_COMPLEX_INHERITED } dataType "inherited" fixptType { slope 1 baseType SF_INT16_TYPE } complexity SF_COMPLEX_INHERITED } data { id 27 name "VectorNew" linkNode [22 26 28] scope OUTPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE } complexity SF_COMPLEX_INHERITED } dataType "inherited" fixptType { slope 1 baseType SF_INT16_TYPE } complexity SF_COMPLEX_INHERITED } data { id 28 name "Counter1" linkNode [22 27 29] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } } dataType "inherited" } data { id 29 name "VectorOld" linkNode [22 28 30] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } } dataType "inherited" } data { id 30 name "Counter2" linkNode [22 29 0] scope OUTPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } } dataType "inherited" } instance { id 31 name "Read/V2Store/Sequential Store" machine 1 chart 22 } chart { id 32 name "Write/Sequential Extraction (2)" windowPosition [296.813 314.45 200.25 189.75] viewLimits [0 156.75 0 153.75] screen [1 1 1280 1024 1.333333333333333] treeNode [0 33 0 0] firstTransition 35 firstJunction 34 viewObj 32 machine 1 decomposition CLUSTER_CHART type EML_CHART firstData 36 chartFileNumber 4 disableImplicitCasting 1 eml { name "extr" } } state { id 33 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 chart 32 treeNode [32 0 0 0] superState SUBCHART subviewer 32 type FUNC_STATE decomposition CLUSTER_STATE eml { isEML 1 script "function [y,counterout] = extr(u,counterin,c2)\n" "% This block supports an embeddable subset of the MATLAB la" "nguage.\n" "% See the help menu for details. \n" "if counterin < c2\n" "\ty = u(counterin);\n" "else \n" " y = u(c2);\n" "end\n" "counterout=counterin+1;" editorLayout "100 M4x1[15 237 671 364]" fimathString "fimath(...\n" "'RoundMode', 'floor',...\n" "'OverflowMode', 'wrap',...\n" "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..." "\n" "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n" "'CastBeforeSum', false)" treatIntsAsFixpt 0 } } junction { id 34 position [23.5747 49.5747 7] chart 32 linkNode [32 0 0] subviewer 32 type CONNECTIVE_JUNCTION } transition { id 35 labelString "{eML_blk_kernel();}" labelPosition [32.125 19.875 102.544 14.964] fontSize 12 src { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { id 34 intersection [7 0 -1 -1 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] chart 32 linkNode [32 0 0] dataLimits [21.175 25.975 14.625 42.575] subviewer 32 drawStyle SMART executionOrder 1 } data { id 36 name "u" linkNode [32 0 37] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE } complexity SF_COMPLEX_INHERITED } dataType "inherited" fixptType { slope 1 baseType SF_INT16_TYPE } complexity SF_COMPLEX_INHERITED } data { id 37 name "y" linkNode [32 36 38] scope OUTPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE } complexity SF_COMPLEX_INHERITED } dataType "inherited" fixptType { slope 1 baseType SF_INT16_TYPE } complexity SF_COMPLEX_INHERITED } data { id 38 name "counterin" linkNode [32 37 39] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } } dataType "inherited" } data { id 39 name "counterout" linkNode [32 38 40] scope OUTPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } } dataType "inherited" } data { id 40 name "c2" linkNode [32 39 0] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } } dataType "inherited" } instance { id 41 name "Write/Sequential Extraction (2)" machine 1 chart 32 } chart { id 42 name "Write/Calibration (1)" windowPosition [281.813 329.45 200.25 189.75] viewLimits [0 156.75 0 153.75] screen [1 1 1280 1024 1.333333333333333] treeNode [0 43 0 0] firstTransition 45 firstJunction 44 viewObj 42 machine 1 decomposition CLUSTER_CHART type EML_CHART firstData 46 chartFileNumber 5 disableImplicitCasting 1 eml { name "cali" } } state { id 43 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 chart 42 treeNode [42 0 0 0] superState SUBCHART subviewer 42 type FUNC_STATE decomposition CLUSTER_STATE eml { isEML 1 script "function AoutL = cali(potv)\n" "% This block supports an embeddable subset of the MATLAB la" "nguage.\n" "% See the help menu for details. \n" "AoutL = 0.15469 * potv ^ 2 + 0.073256 * potv - 4.3421;" editorLayout "100 M4x1[37 462 671 364]" fimathString "fimath(...\n" "'RoundMode', 'floor',...\n" "'OverflowMode', 'wrap',...\n" "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..." "\n" "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n" "'CastBeforeSum', false)" treatIntsAsFixpt 0 } } junction { id 44 position [23.5747 49.5747 7] chart 42 linkNode [42 0 0] subviewer 42 type CONNECTIVE_JUNCTION } transition { id 45 labelString "{eML_blk_kernel();}" labelPosition [32.125 19.875 102.544 14.964] fontSize 12 src { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { id 44 intersection [7 0 -1 -1 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] chart 42 linkNode [42 0 0] dataLimits [21.175 25.975 14.625 42.575] subviewer 42 drawStyle SMART executionOrder 1 } data { id 46 name "potv" linkNode [42 0 47] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE } complexity SF_COMPLEX_INHERITED } dataType "inherited" fixptType { slope 1 baseType SF_INT16_TYPE } complexity SF_COMPLEX_INHERITED } data { id 47 name "AoutL" linkNode [42 46 0] scope OUTPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE } complexity SF_COMPLEX_INHERITED } dataType "inherited" fixptType { slope 1 baseType SF_INT16_TYPE } complexity SF_COMPLEX_INHERITED } instance { id 48 name "Write/Calibration (1)" machine 1 chart 42 } chart { id 49 name "Write/Calibration (2)" windowPosition [281.813 329.45 200.25 189.75] viewLimits [0 156.75 0 153.75] screen [1 1 1280 1024 1.333333333333333] treeNode [0 50 0 0] firstTransition 52 firstJunction 51 viewObj 49 machine 1 decomposition CLUSTER_CHART type EML_CHART firstData 53 chartFileNumber 6 disableImplicitCasting 1 eml { name "cali" } } state { id 50 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 chart 49 treeNode [49 0 0 0] superState SUBCHART subviewer 49 type FUNC_STATE decomposition CLUSTER_STATE eml { isEML 1 script "function AoutU = cali(potv)\n" "% This block supports an embeddable subset of the MATLAB la" "nguage.\n" "% See the help menu for details. \n" "AoutU = 0.1386 * potv ^ 2 - 0.24238 * potv - 4.3624;" editorLayout "100 M4x1[121 167 671 364]" fimathString "fimath(...\n" "'RoundMode', 'floor',...\n" "'OverflowMode', 'wrap',...\n" "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..." "\n" "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n" "'CastBeforeSum', false)" treatIntsAsFixpt 0 } } junction { id 51 position [23.5747 49.5747 7] chart 49 linkNode [49 0 0] subviewer 49 type CONNECTIVE_JUNCTION } transition { id 52 labelString "{eML_blk_kernel();}" labelPosition [32.125 19.875 102.544 14.964] fontSize 12 src { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { id 51 intersection [7 0 -1 -1 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] chart 49 linkNode [49 0 0] dataLimits [21.175 25.975 14.625 42.575] subviewer 49 drawStyle SMART executionOrder 1 } data { id 53 name "potv" linkNode [49 0 54] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE } complexity SF_COMPLEX_INHERITED } dataType "inherited" fixptType { slope 1 baseType SF_INT16_TYPE } complexity SF_COMPLEX_INHERITED } data { id 54 name "AoutU" linkNode [49 53 0] scope OUTPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE } complexity SF_COMPLEX_INHERITED } dataType "inherited" fixptType { slope 1 baseType SF_INT16_TYPE } complexity SF_COMPLEX_INHERITED } instance { id 55 name "Write/Calibration (2)" machine 1 chart 49 } target { id 56 name "sfun" description "Default Simulink S-Function Target." machine 1 linkNode [1 0 57] } target { id 57 name "rtw" codeFlags " comments=1 statebitsets=1 databitsets=1 emitlogicalops=1 el" "seifdetection=1 constantfolding=1 redundantloadelimination=0" " preservenames=0 preservenameswithparent=0 exportcharts=0" machine 1 linkNode [1 56 0] } }