Model { Name "Calib_02_UConn_Test" Version 8.1 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.428" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "windows-1252" PostLoadFcn ", if any(exist('dsrtsu_mdlpostloadfcn', 'file') == [2, 3, 6]), try dsrtsu_mdlpostloadfcn('Execute', " "bdroot); catch fprintf('Error in PostLoadFcn (dsrtsu_mdlpostloadfcn) for model \"%s\":\\n %s\\n', bdroot, lasterr); " "end, end, \n" SaveDefaultBlockParams on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" DataTypeOverrideAppliesTo "AllNumericTypes" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" FPTRunName "Run 1" MaxMDLFileLineLength 120 UserBdParams "DSRTSU_INTERNAL_RTI_VER;DSRTSU_INTERNAL_RTI_TYPE" Object { $PropName "BdWindowsInfo" $ObjectID 1 $ClassName "Simulink.BDWindowsInfo" Object { $PropName "WindowsInfo" $ObjectID 2 $ClassName "Simulink.WindowInfo" IsActive [1] Location [-8.0, 0.0, 1292.0, 1026.0] Object { $PropName "ModelBrowserInfo" $ObjectID 3 $ClassName "Simulink.ModelBrowserInfo" Visible [0] DockPosition "Left" Width [50] Height [50] Filter [9] } Object { $PropName "ExplorerBarInfo" $ObjectID 4 $ClassName "Simulink.ExplorerBarInfo" Visible [1] } Object { $PropName "EditorsInfo" $ObjectID 5 $ClassName "Simulink.EditorInfo" IsActive [1] ViewObjType "SimulinkSubsys" LoadSaveID "908" Extents [1242.0, 852.0] ZoomFactor [1.0] Offset [-3.25, 0.0] } } } DSRTSU_INTERNAL_RTI_VER "350" DSRTSU_INTERNAL_RTI_TYPE "rti1006" Created "Sun May 23 11:47:30 2010" Creator "celaptop" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "AHML" ModifiedDateFormat "%" LastModifiedDate "Tue Jun 24 19:36:24 2014" RTWModifiedTimeStamp 325539375 ModelVersionFormat "1.%" ConfigurationManager "None" SampleTimeColors on SampleTimeAnnotations on LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowDesignRanges off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowSignalResolutionIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off SimulationMode "external" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off Object { $PropName "DataLoggingOverride" $ObjectID 6 $ClassName "Simulink.SimulationData.ModelLoggingInfo" model_ "Calib_02_UConn_Test" Array { Type "Cell" Dimension 1 Cell "Calib_02_UConn_Test" PropName "logAsSpecifiedByModels_" } Array { Type "Cell" Dimension 1 Cell "" PropName "logAsSpecifiedByModelsSSIDs_" } } RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on CovForceBlockReductionOff on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on CovModelRefEnable "Off" CovExternalEMLEnable off ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse off ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 7 Version "1.13.0" Array { Type "Handle" Dimension 8 Simulink.SolverCC { $ObjectID 8 Version "1.13.0" StartTime "0.0" StopTime "simul.tend" AbsTol "auto" FixedStep "simul.dt_rtht" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ZcThreshold "auto" ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-3" SolverMode "Auto" EnableConcurrentExecution off ConcurrentTasks off Solver "ode4" SolverName "ode4" SolverJacobianMethodControl "auto" ShapePreserveControl "DisableAll" ZeroCrossControl "UseLocalSettings" ZeroCrossAlgorithm "Nonadaptive" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" InsertRTBMode "Whenever possible" } Simulink.DataIOCC { $ObjectID 9 Version "1.13.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveCompleteFinalSimState off SaveFormat "Array" SignalLoggingSaveFormat "ModelDataLogs" SaveOutput on SaveState off SignalLogging on DSMLogging on InspectSignalLogs off SaveTime on ReturnWorkspaceOutputs off StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" DSMLoggingName "dsmout" OutputOption "RefineOutputTimes" OutputTimes "[]" ReturnWorkspaceOutputsName "out" Refine "1" } Simulink.OptimizationCC { $ObjectID 10 Version "1.13.0" Array { Type "Cell" Dimension 8 Cell "BooleansAsBitfields" Cell "PassReuseOutputArgsAs" Cell "PassReuseOutputArgsThreshold" Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "OptimizeModelRefInitCode" Cell "NoFixptDivByZeroProtection" Cell "UseSpecifiedMinMax" PropName "DisabledProps" } BlockReduction off BooleanDataType on ConditionallyExecuteInputs on InlineParams off UseIntDivNetSlope off UseFloatMulNetSlope off UseSpecifiedMinMax off InlineInvariantSignals off OptimizeBlockIOStorage off BufferReuse off EnhancedBackFolding off StrengthReduction off ExpressionFolding off BooleansAsBitfields off BitfieldContainerType "uint_T" EnableMemcpy on MemcpyThreshold 64 PassReuseOutputArgsAs "Structure reference" ExpressionDepthLimit 2147483647 FoldNonRolledExpr on LocalBlockOutputs off RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero off NoFixptDivByZeroProtection off EfficientFloat2IntCast off EfficientMapNaN2IntZero on OptimizeModelRefInitCode off LifeSpan "inf" MaxStackSize "Inherit from target" BufferReusableBoundary on SimCompilerOptimization "Off" AccelVerboseBuild off ParallelExecutionInRapidAccelerator on } Simulink.DebuggingCC { $ObjectID 11 Version "1.13.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 "UseLocalSettings" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" FrameProcessingCompatibilityMsg "warning" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceMultiInstanceNormalModeStructChecksumCheck "error" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" SimStateInterfaceChecksumMismatchMsg "warning" SimStateOlderReleaseMsg "error" InitInArrayFormatMsg "warning" StrictBusMsg "Warning" BusNameAdapt "WarnAndRepair" NonBusSignalsTreatedAsBus "none" LoggingUnavailableSignals "error" BlockIODiagnostic "none" SFUnusedDataAndEventsDiag "warning" SFUnexpectedBacktrackingDiag "warning" SFInvalidInputDataAccessInChartInitDiag "warning" SFNoUnconditionalDefaultTransitionDiag "warning" SFTransitionOutsideNaturalParentDiag "warning" SFUnconditionalTransitionShadowingDiag "warning" SFUndirectedBroadcastEventsDiag "warning" SFTransitionActionBeforeConditionDiag "warning" } Simulink.HardwareCC { $ObjectID 12 Version "1.13.0" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdBitPerLongLong 64 ProdBitPerFloat 32 ProdBitPerDouble 64 ProdBitPerPointer 32 ProdLargestAtomicInteger "Char" ProdLargestAtomicFloat "None" ProdIntDivRoundTo "Zero" ProdEndianess "LittleEndian" ProdWordSize 32 ProdShiftRightIntArith on ProdLongLongMode off ProdHWDeviceType "Generic->32-bit x86 compatible" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetBitPerLongLong 64 TargetBitPerFloat 32 TargetBitPerDouble 64 TargetBitPerPointer 32 TargetLargestAtomicInteger "Char" TargetLargestAtomicFloat "None" TargetShiftRightIntArith on TargetLongLongMode off TargetIntDivRoundTo "Zero" TargetEndianess "LittleEndian" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Generic->Custom" TargetUnknown off ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 13 Version "1.13.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 14 Version "1.13.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 15 Version "1.13.0" Array { Type "Cell" Dimension 16 Cell "TargetLang" Cell "IncludeHyperlinkInReport" Cell "GenerateTraceInfo" Cell "GenerateTraceReport" Cell "GenerateTraceReportSl" Cell "GenerateTraceReportSf" Cell "GenerateTraceReportEml" Cell "GenerateCodeMetricsReport" Cell "PortableWordSizes" Cell "GenerateWebview" Cell "GenerateCodeReplacementReport" Cell "GenerateErtSFunction" Cell "CreateSILPILBlock" Cell "CodeExecutionProfiling" Cell "CodeProfilingSaveOptions" Cell "CodeProfilingInstrumentation" PropName "DisabledProps" } SystemTargetFile "xpctarget.tlc" GenCodeOnly off MakeCommand "make_rtw" GenerateMakefile on PackageGeneratedCodeAndArtifacts off TemplateMakefile "xpc_default_tmf" Description "xPC Target" GenerateReport off SaveLog off RTWVerbose off RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ProcessScript "xpctarget_make_rtw_hook" ConfigAtBuild off RTWUseLocalCustomCode off RTWUseSimCustomCode off IncludeHyperlinkInReport off LaunchReport off PortableWordSizes off GenerateErtSFunction off CreateSILPILBlock "None" CodeExecutionProfiling off CodeExecutionProfileVariable "executionProfile" CodeProfilingSaveOptions "SummaryOnly" CodeProfilingInstrumentation off SILDebugging off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off IncludeERTFirstTime off GenerateTraceInfo off GenerateTraceReport off GenerateTraceReportSl off GenerateTraceReportSf off GenerateTraceReportEml off GenerateCodeInfo off GenerateWebview off GenerateCodeMetricsReport off GenerateCodeReplacementReport off RTWCompilerOptimization "On" CheckMdlBeforeBuild "Off" CustomRebuildMode "OnUpdate" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 16 Version "1.13.0" Array { Type "Cell" Dimension 22 Cell "IgnoreCustomStorageClasses" Cell "IgnoreTestpoints" Cell "InsertBlockDesc" Cell "SFDataObjDesc" Cell "SimulinkDataObjDesc" Cell "DefineNamingRule" Cell "SignalNamingRule" Cell "ParamNamingRule" Cell "InlinedPrmAccess" Cell "CustomSymbolStr" Cell "CustomSymbolStrGlobalVar" Cell "CustomSymbolStrType" Cell "CustomSymbolStrField" Cell "CustomSymbolStrFcn" Cell "CustomSymbolStrFcnArg" Cell "CustomSymbolStrBlkIO" Cell "CustomSymbolStrTmpVar" Cell "CustomSymbolStrMacro" Cell "ReqsInCode" Cell "InsertPolySpaceComments" Cell "MATLABFcnDesc" Cell "InternalIdentifier" PropName "DisabledProps" } ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on IgnoreTestpoints off IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off OperatorAnnotations off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off MATLABFcnDesc off IncDataTypeInIds off MangleLength 1 CustomSymbolStrGlobalVar "$R$N$M" CustomSymbolStrType "$N$R$M_T" 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 InternalIdentifier "Shortened" InlinedPrmAccess "Literals" ReqsInCode off UseSimReservedNames off } xpctarget.xpcTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 17 Version "1.13.0" Array { Type "Cell" Dimension 16 Cell "GeneratePreprocessorConditionals" Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "GenerateTestInterfaces" Cell "ModelStepFunctionPrototypeControlCompliant" Cell "CPPClassGenCompliant" Cell "SupportNonInlinedSFcns" Cell "PurelyIntegerCode" Cell "PortableWordSizes" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "GenerateAllocFcn" PropName "DisabledProps" } TargetFcnLib "ansi_tfl_table_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" CodeReplacementLibrary "XPC_BLAS" UtilityFuncGeneration "Auto" ERTMultiwordTypeDef "System defined" ERTMultiwordLength 256 MultiwordLength 2048 GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on ParMdlRefBuildCompliant on CompOptLevelCompliant on ConcurrentExecutionCompliant on IncludeMdlTerminateFcn on GeneratePreprocessorConditionals "Disable all" CombineOutputUpdateFcns off CombineSignalStateStructs off SuppressErrorStatus off ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on SupportVariableSizeSignals off EnableShiftOperators on ParenthesesLevel "Nominal" MATLABClassNameForMDSCustomization "xpcAperiodicCustomization" ModelStepFunctionPrototypeControlCompliant off CPPClassGenCompliant off AutosarCompliant off GRTInterface on GenerateAllocFcn off RL32ModeModifier "Real-Time" ExtMode on ExtModeMexFile "ext_xpc" ExtModeIntrfLevel "Level2 - Open" ExtModeArmWhenConnect off RL32LogTETModifier on RL32LogBufSizeModifier "100000" xPCTaskExecutionProfile off xPCRL32EventNumber "5000" RL32IRQSourceModifier "Timer" xPCIRQSourceBoard "None/Other" xPCIOIRQSlot "-1" xpcDblBuff off xpcObjCom off xPCGenerateASAP2 off xPCGenerateXML off RL32ObjectName "tg3" xPCisDownloadable on xPCisDefaultEnv off xPCTargetPCEnvName "UConnTG1-C" xPCisModelTimeout on xPCModelTimeoutSecs "5" xPCLoadParamSetFile off xPCConcurrentTasks off xPCEnableSFAnimation off } PropName "Components" } } PropName "Components" } Name "Configuration" ExtraOptions "-aGenerateTraceInfo=0 -aIgnoreTestpoints=0 " CurrentDlgPage "Code Generation/xPC Target options" ConfigPrmDlgPosition [ 206, 121, 1075, 841 ] } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 7 } Object { $PropName "DataTransfer" $ObjectID 18 $ClassName "Simulink.GlobalDataTransfer" DefaultTransitionBetweenSyncTasks "Ensure deterministic transfer (maximum delay)" DefaultTransitionBetweenAsyncTasks "Ensure data integrity only" DefaultTransitionBetweenContTasks "Ensure deterministic transfer (minimum delay)" DefaultExtrapolationMethodBetweenContTasks "None" AutoInsertRateTranBlk [0] } ExplicitPartitioning off 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" } MaskDefaults { SelfModifiable "off" IconFrame "on" IconOpaque "on" RunInitForIconRedraw "off" IconRotate "none" PortRotate "default" IconUnits "autoscale" } MaskParameterDefaults { Evaluate "on" Tunable "on" NeverSave "off" Internal "off" ReadOnly "off" Enabled "on" Visible "on" ToolTip "on" } 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 Delay DelayLengthSource "Dialog" DelayLength "2" DelayLengthUpperLimit "100" InitialConditionSource "Dialog" InitialCondition "0.0" ExternalReset "None" PreventDirectFeedthrough off DiagnosticForOutOfRangeDelayLength "None" RemoveProtectionDelayLength off InputProcessing "Elements as channels (sample based)" UseCircularBuffer off SampleTime "-1" StateMustResolveToSignalObject off CodeGenStateStorageClass "Auto" } Block { BlockType Demux Outputs "4" DisplayOption "none" BusSelectionMode off } Block { BlockType FromFile FileName "untitled.mat" OutDataTypeStr "Inherit: auto" SampleTime "-1" ExtrapolationBeforeFirstDataPoint "Linear extrapolation" InterpolationWithinTimeRange "Linear interpolation" ExtrapolationAfterLastDataPoint "Linear extrapolation" ZeroCross off } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ParamMin "[]" ParamMax "[]" ParamDataTypeStr "Inherit: Same as input" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Same as input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Inport Port "1" OutputFunctionCall off OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: auto" LockScale off BusOutputAsStruct off PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchInputForFeedbackSignals off Interpolate on } Block { BlockType MultiPortSwitch DataPortOrder "One-based contiguous" Inputs "3" DataPortIndices "{1,2,3}" DataPortForDefault "Last data port" DiagnosticForDefault "Error" zeroidx off InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Inherit via internal rule" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" AllowDiffInputSizes off } Block { BlockType Mux Inputs "4" DisplayOption "none" UseBusObject off BusObject "BusObject" NonVirtualBus off } Block { BlockType Outport Port "1" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: auto" LockScale off BusOutputAsStruct off PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" SignalType "auto" SamplingMode "auto" SourceOfInitialOutputValue "Dialog" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType S-Function FunctionName "system" SFunctionModules "''" PortCounts "[]" SFunctionDeploymentMode off } Block { BlockType Saturate UpperLimitSource "Dialog" UpperLimit "0.5" LowerLimitSource "Dialog" LowerLimit "-0.5" LinearizeAsGain on ZeroCross on SampleTime "-1" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Same as input" LockScale off RndMeth "Floor" } Block { BlockType Selector NumberOfDimensions "1" IndexMode "One-based" InputPortWidth "-1" SampleTime "-1" } Block { BlockType Signum ZeroCross on SampleTime "-1" } Block { BlockType StateSpace A "1" B "1" C "1" D "1" X0 "0" AbsoluteTolerance "auto" ContinuousStateAttributes "''" Realization "auto" } Block { BlockType SubSystem ShowPortLabels "FromPortIcon" Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit off CheckFcnCallInpInsideContextMsg off SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" FunctionInterfaceSpec "void_void" RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimViewingDevice off DataTypeOverride "UseLocalSettings" DataTypeOverrideAppliesTo "AllNumericTypes" MinMaxOverflowLogging "UseLocalSettings" SFBlockType "NONE" Variant off GeneratePreprocessorConditionals off } Block { BlockType Sum IconShape "rectangular" Inputs "++" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on AccumDataTypeStr "Inherit: Inherit via internal rule" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Terminator } Block { BlockType ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SampleTime "0" SaveFormat "Array" FixptAsFi off NumInputs "1" } Block { BlockType TransferFcn Numerator "[1]" Denominator "[1 2 1]" AbsoluteTolerance "auto" ContinuousStateAttributes "''" Realization "auto" } Block { BlockType Width OutDataTypeMode "Choose intrinsic data type" DataType "double" } Block { BlockType ZeroOrderHold SampleTime "1" } } System { Name "Calib_02_UConn_Test" Location [-8, 0, 1284, 1026] 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 "103" ReportName "simulink-default.rpt" SIDHighWatermark "1145" Block { BlockType Constant Name "Constant1" SID "1140" Position [280, 770, 310, 800] ZOrder 897 Value "0" } Block { BlockType Reference Name "Counter\nFree-Running1" SID "1141" Ports [0, 1] Position [235, 685, 265, 715] ZOrder 896 LibraryVersion "1.274" SourceBlock "simulink/Sources/Counter\nFree-Running" SourceType "Counter Free-Running" NumBits "16" tsamp "simul.dt_rtht" } Block { BlockType SubSystem Name "MATLAB Function" SID "1142" Ports [4, 1] Position [350, 545, 545, 640] ZOrder 895 LibraryVersion "1.32" ErrorFcn "Stateflow.Translate.translate" PermitHierarchicalResolution "ExplicitOnly" TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off SFBlockType "MATLAB Function" System { Name "MATLAB Function" Location [223, 338, 826, 833] 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" SIDHighWatermark "23" Block { BlockType Inport Name "arv_check" SID "1142::1" Position [20, 101, 40, 119] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "arv_signal" SID "1142::22" Position [20, 136, 40, 154] ZOrder 8 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "count_val" SID "1142::21" Position [20, 171, 40, 189] ZOrder 7 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "base_delay" SID "1142::23" Position [20, 206, 40, 224] ZOrder 9 Port "4" IconDisplay "Port number" } Block { BlockType Demux Name " Demux " SID "1142::19" Ports [1, 1] Position [270, 230, 320, 270] ZOrder 5 Outputs "1" } Block { BlockType S-Function Name " SFunction " SID "1142::18" Tag "Stateflow S-Function Calib_02_UConn_Test 2" Ports [4, 2] Position [180, 102, 230, 203] ZOrder 4 FunctionName "sf_sfun" PortCounts "[4 2]" EnableBusSupport on Port { PortNumber 2 Name "delay_est" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Terminator Name " Terminator " SID "1142::20" Position [460, 241, 480, 259] ZOrder 6 } Block { BlockType Outport Name "delay_est" SID "1142::5" Position [460, 101, 480, 119] ZOrder -5 IconDisplay "Port number" } Line { SrcBlock "arv_check" SrcPort 1 Points [120, 0] DstBlock " SFunction " DstPort 1 } Line { SrcBlock "arv_signal" SrcPort 1 DstBlock " SFunction " DstPort 2 } Line { SrcBlock "count_val" SrcPort 1 DstBlock " SFunction " DstPort 3 } Line { SrcBlock "base_delay" SrcPort 1 DstBlock " SFunction " DstPort 4 } Line { Name "delay_est" Labels [0, 0] SrcBlock " SFunction " SrcPort 2 DstBlock "delay_est" DstPort 1 } Line { SrcBlock " Demux " SrcPort 1 DstBlock " Terminator " DstPort 1 } Line { SrcBlock " SFunction " SrcPort 1 DstBlock " Demux " DstPort 1 } } } Block { BlockType Mux Name "Mux" SID "1139" Ports [3, 1] Position [515, 256, 520, 324] ZOrder 880 ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Reference Name "Network Configuration " SID "798" Ports [] Position [308, 17, 434, 75] ZOrder 851 BackgroundColor "lightBlue" LibraryVersion "1.54" SourceBlock "xpciplib/Network Configuration " SourceType "xpcnwconfig" IpAddress "137.99.6.7" SubnetMask "255.255.255.0" Gateway "137.99.6.1" EthDrv "Intel 8255x" PciBus "4" PciSlot "1" } Block { BlockType Reference Name "Pack1" SID "905" Ports [3, 1] Position [585, 133, 665, 207] ZOrder 876 LibraryVersion "1.1724" SourceBlock "xpclib/UDP/Pack" SourceType "xpcany2byte" datatypes "{'double','double','double'}" byteAlign "1" } Block { BlockType Reference Name "Receive force" SID "799" Ports [0, 2] Position [20, 160, 60, 220] ZOrder 877 BackgroundColor "orange" LibraryVersion "1.20" LinkData { BlockName "Buffer " DialogParameters { BufferSize "10" } } SourceBlock "xpcrtudplib/Receive " SourceType "receive" Receive1 "128.46.160.53" Receive2 "25001" Receive3 "8" Receive4 "simul.dt_rtht" } Block { BlockType Reference Name "Scope (xPC) 4" SID "1143" Ports [1] Position [685, 565, 775, 625] ZOrder 898 LibraryVersion "1.1724" SourceBlock "xpclib/Misc./Scope (xPC) " SourceType "xpcscopeblock" scopeno "1" scopetype "File" autostart on viewmode "Graphical redraw" formatstr "'%15.6f'" grid on ylimits "[0,0]" nosamples "simul.tend/simul.dt_rtht+1" noprepostsamples "0" interleave "1" triggermode "FreeRun" triggersignal "1" trigsignalfromport off triggerlevel "0.0" triggerslope "Either" triggerscope "1" triggersample "0" filename "tg2_ch4.dat" mode "Lazy" writesize "512" autorestart off dynamicfilemode off maxwritefilesize "512*1024^2" } Block { BlockType Reference Name "Send " SID "801" Ports [2] Position [870, 150, 910, 210] ZOrder 878 BackgroundColor "orange" LibraryVersion "1.20" SourceBlock "xpcrtudplib/Send " SourceType "send" Send1 "128.46.160.53" Send2 "25003" Send3 "10003" Send4 "simul.dt_rtht" } Block { BlockType SubSystem Name "SubStructure" SID "908" Ports [1, 3] Position [350, 132, 445, 208] ZOrder 870 MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "SubStructure" Location [-8, 0, 1284, 1026] 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 "100" Block { BlockType Inport Name "Force" SID "909" Position [65, 253, 95, 267] ZOrder 62 IconDisplay "Port number" } Block { BlockType SubSystem Name "(modified BangBang)" SID "910" Ports [1, 2] Position [525, 617, 570, 653] ZOrder 77 BlockMirror on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "(modified BangBang)" Location [-8, 0, 1688, 1026] 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 "125" Block { BlockType Inport Name "ys" SID "911" Position [840, 253, 870, 267] ZOrder 9 BlockMirror on IconDisplay "Port number" } Block { BlockType Constant Name "Constant1" SID "912" Position [590, 265, 610, 285] ZOrder 6 BlockMirror on ShowName off Value "-1" } Block { BlockType Gain Name "Gain1" SID "913" Position [280, 263, 350, 297] ZOrder 18 BlockMirror on ShowName off Gain "Umax" } Block { BlockType StateSpace Name "LQE estimator" SID "914" Position [635, 115, 740, 155] ZOrder 4 BlockMirror on A "Ac" B "Bc" C "Cce" D "Dce" } Block { BlockType StateSpace Name "LQG Linear \nController" SID "915" Position [655, 325, 760, 365] ZOrder 27 BlockMirror on A "Ac" B "Bc" C "Cc" D "Dc" } Block { BlockType Product Name "Product1" SID "916" Ports [2, 1] Position [545, 252, 575, 283] ZOrder 7 BlockMirror on ShowName off } Block { BlockType Product Name "Product2" SID "917" Ports [2, 1] Position [465, 262, 495, 293] ZOrder 10 BlockMirror on ShowName off } Block { BlockType Saturate Name "Saturation1" SID "918" Ports [1, 1] Position [230, 265, 260, 295] ZOrder 17 BlockMirror on ShowName off InputPortMap "u0" UpperLimit "Umax" LowerLimit "Umin" } Block { BlockType Selector Name "Select\nMeasured Forces1" SID "919" Ports [1, 1] Position [865, 369, 905, 391] ZOrder 28 BlockMirror on InputPortWidth "snsrsize" IndexOptions "Index vector (dialog)" Indices "Of" OutputSizes "1" } Block { BlockType Selector Name "Select\nestimate velocity" SID "920" Ports [1, 1] Position [635, 247, 675, 273] ZOrder 20 BlockMirror on InputPortWidth "estsize" IndexOptions "Index vector (dialog)" Indices "ov1" OutputSizes "1" } Block { BlockType Signum Name "Sign of\n-(v+vg)Eifi" SID "921" Position [395, 264, 430, 296] ZOrder 13 BlockMirror on } Block { BlockType TransferFcn Name "Transfer Fcn" SID "922" Position [950, 132, 1010, 168] ZOrder 11 BlockMirror on Numerator "[39.5]" Denominator "[39.5 8.89 1]" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold1" SID "923" Position [155, 265, 185, 295] ZOrder 16 BlockMirror on SampleTime "simul.dt_rtht" } Block { BlockType Selector Name "acceleration" SID "924" Ports [1, 1] Position [1035, 131, 1075, 169] ZOrder 12 BlockMirror on InputPortWidth "snsrsize" IndexOptions "Index vector (dialog)" Indices "nflr" OutputSizes "1" } Block { BlockType ToWorkspace Name "control outputs\nto workspace1" SID "925" Ports [1] Position [495, 125, 535, 145] ZOrder 19 BlockMirror on VariableName "resp_est" MaxDataPoints "inf" SampleTime "-1" } Block { BlockType ToWorkspace Name "desired control force" SID "926" Ports [1] Position [570, 440, 610, 460] ZOrder 24 BlockMirror on VariableName "fdes1" MaxDataPoints "inf" SampleTime "-1" } Block { BlockType Outport Name "u" SID "927" Position [105, 273, 135, 287] ZOrder 14 BlockMirror on IconDisplay "Port number" InitialOutput "0" } Block { BlockType Outport Name "fdes" SID "928" Position [560, 403, 590, 417] ZOrder 29 BlockMirror on Port "2" IconDisplay "Port number" InitialOutput "0" } Line { SrcBlock "Constant1" SrcPort 1 DstBlock "Product1" DstPort 2 } Line { SrcBlock "ys" SrcPort 1 Points [-39, 0] Branch { Points [0, 85] DstBlock "LQG Linear \nController" DstPort 1 } Branch { Points [0, -125] DstBlock "LQE estimator" DstPort 1 } } Line { SrcBlock "acceleration" SrcPort 1 DstBlock "Transfer Fcn" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 DstBlock "Product2" DstPort 1 } Line { SrcBlock "Product2" SrcPort 1 DstBlock "Sign of\n-(v+vg)Eifi" DstPort 1 } Line { SrcBlock "Sign of\n-(v+vg)Eifi" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Zero-Order\nHold1" SrcPort 1 DstBlock "u" DstPort 1 } Line { SrcBlock "Saturation1" SrcPort 1 DstBlock "Zero-Order\nHold1" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Saturation1" DstPort 1 } Line { SrcBlock "LQE estimator" SrcPort 1 Points [-32, 0] Branch { DstBlock "control outputs\nto workspace1" DstPort 1 } Branch { Points [0, 72; 126, 0; 0, 53] DstBlock "Select\nestimate velocity" DstPort 1 } } Line { SrcBlock "Select\nestimate velocity" SrcPort 1 DstBlock "Product1" DstPort 1 } Line { SrcBlock "LQG Linear \nController" SrcPort 1 Points [-28, 0] Branch { Points [0, 65] Branch { DstBlock "fdes" DstPort 1 } Branch { Points [0, 40] DstBlock "desired control force" DstPort 1 } } Branch { Points [-101, 0; 0, -60] DstBlock "Product2" DstPort 2 } } } } Block { BlockType SubSystem Name "(modified BangBang)1" SID "929" Ports [1, 2] Position [525, 702, 570, 738] ZOrder 87 BlockMirror on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "(modified BangBang)1" Location [-8, 0, 1688, 1026] 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 "125" Block { BlockType Inport Name "ys" SID "930" Position [840, 253, 870, 267] ZOrder 9 BlockMirror on IconDisplay "Port number" } Block { BlockType Constant Name "Constant1" SID "931" Position [590, 265, 610, 285] ZOrder 6 BlockMirror on ShowName off Value "-1" } Block { BlockType Gain Name "Gain1" SID "932" Position [280, 263, 350, 297] ZOrder 18 BlockMirror on ShowName off Gain "Umax" } Block { BlockType StateSpace Name "LQE estimator" SID "933" Position [1085, 320, 1190, 360] ZOrder 31 BlockMirror on A "Ac" B "Bc" C "Cce" D "Dce" } Block { BlockType StateSpace Name "LQG Linear \nController" SID "934" Position [1025, 390, 1130, 430] ZOrder 30 BlockMirror on A "Ac" B "Bc" C "Cc" D "Dc" } Block { BlockType Product Name "Product1" SID "935" Ports [2, 1] Position [545, 252, 575, 283] ZOrder 7 BlockMirror on ShowName off } Block { BlockType Product Name "Product2" SID "936" Ports [2, 1] Position [465, 262, 495, 293] ZOrder 10 BlockMirror on ShowName off } Block { BlockType Saturate Name "Saturation1" SID "937" Ports [1, 1] Position [230, 265, 260, 295] ZOrder 17 BlockMirror on ShowName off InputPortMap "u0" UpperLimit "Umax" LowerLimit "Umin" } Block { BlockType Selector Name "Select\nMeasured Forces1" SID "938" Ports [1, 1] Position [715, 334, 755, 356] ZOrder 28 BlockMirror on InputPortWidth "snsrsize" IndexOptions "Index vector (dialog)" Indices "Of" OutputSizes "1" } Block { BlockType Selector Name "Select\nestimate velocity" SID "939" Ports [1, 1] Position [945, 457, 985, 483] ZOrder 32 BlockMirror on InputPortWidth "6" IndexOptions "Index vector (dialog)" Indices "[1]" OutputSizes "1" } Block { BlockType Signum Name "Sign of\n-(v+vg)Eifi" SID "940" Position [395, 264, 430, 296] ZOrder 13 BlockMirror on } Block { BlockType TransferFcn Name "Transfer Fcn" SID "941" Position [615, 117, 675, 153] ZOrder 11 BlockMirror on Numerator "[39.5]" Denominator "[39.5 8.89 1]" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold1" SID "942" Position [155, 265, 185, 295] ZOrder 16 BlockMirror on SampleTime "simul.dt_rtht" } Block { BlockType Selector Name "acceleration" SID "943" Ports [1, 1] Position [700, 116, 740, 154] ZOrder 12 BlockMirror on InputPortWidth "snsrsize" IndexOptions "Index vector (dialog)" Indices "nflr" OutputSizes "1" } Block { BlockType ToWorkspace Name "desired control force" SID "944" Ports [1] Position [570, 440, 610, 460] ZOrder 24 BlockMirror on VariableName "fdes1" MaxDataPoints "inf" SampleTime "-1" } Block { BlockType Outport Name "u" SID "945" Position [105, 273, 135, 287] ZOrder 14 BlockMirror on IconDisplay "Port number" InitialOutput "0" } Block { BlockType Outport Name "fdes" SID "946" Position [560, 403, 590, 417] ZOrder 29 BlockMirror on Port "2" IconDisplay "Port number" InitialOutput "0" } Line { SrcBlock "Constant1" SrcPort 1 DstBlock "Product1" DstPort 2 } Line { SrcBlock "ys" SrcPort 1 Points [-39, 0] Branch { Points [0, -125] DstBlock "acceleration" DstPort 1 } Branch { Points [0, 85] DstBlock "Select\nMeasured Forces1" DstPort 1 } } Line { SrcBlock "acceleration" SrcPort 1 DstBlock "Transfer Fcn" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 DstBlock "Product2" DstPort 1 } Line { SrcBlock "Product2" SrcPort 1 DstBlock "Sign of\n-(v+vg)Eifi" DstPort 1 } Line { SrcBlock "Sign of\n-(v+vg)Eifi" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Zero-Order\nHold1" SrcPort 1 DstBlock "u" DstPort 1 } Line { SrcBlock "Saturation1" SrcPort 1 DstBlock "Zero-Order\nHold1" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Saturation1" DstPort 1 } Line { SrcBlock "Transfer Fcn" SrcPort 1 Points [-20, 0] DstBlock "Product1" DstPort 1 } Line { SrcBlock "Select\nMeasured Forces1" SrcPort 1 Points [-88, 0] Branch { Points [0, 65] Branch { DstBlock "fdes" DstPort 1 } Branch { Points [0, 40] DstBlock "desired control force" DstPort 1 } } Branch { Points [-101, 0; 0, -60] DstBlock "Product2" DstPort 2 } } } } Block { BlockType StateSpace Name "2 story structure" SID "947" Position [490, 227, 550, 263] ZOrder 70 NamePlacement "alternate" A "AA" B "BB" C "CC" D "DD" } Block { BlockType SubSystem Name "Clipped Optimal \n(BFCM)1" SID "948" Ports [1, 2] Position [525, 532, 570, 568] ZOrder 71 BlockMirror on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Clipped Optimal \n(BFCM)1" Location [-8, 0, 1688, 1026] 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 "80" Block { BlockType Inport Name "ys" SID "949" Position [705, 68, 735, 82] ZOrder -1 BlockMirror on IconDisplay "Port number" } Block { BlockType Constant Name "Constant" SID "950" Position [410, 160, 430, 180] ZOrder -2 BlockMirror on ShowName off } Block { BlockType Gain Name "Gain" SID "951" Position [190, 93, 260, 127] ZOrder -3 BlockMirror on ShowName off Gain "Umax/2" } Block { BlockType StateSpace Name "LQG Linear \nController" SID "952" Position [545, 55, 650, 95] ZOrder -4 BlockMirror on A "Ac" B "Bc" C "Cc" D "Dc" } Block { BlockType Gain Name "Matrix\nGain" SID "953" Position [350, 155, 380, 185] ZOrder -5 BlockMirror on ShowName off Multiplication "Matrix(K*u)" } Block { BlockType Product Name "Product" SID "954" Ports [2, 1] Position [410, 82, 440, 113] ZOrder -6 BlockMirror on ShowName off } Block { BlockType Saturate Name "Saturation" SID "955" Ports [1, 1] Position [145, 95, 175, 125] ZOrder -7 BlockMirror on ShowName off InputPortMap "u0" UpperLimit "Umax" LowerLimit "Umin" } Block { BlockType Selector Name "Select\nMeasured Forces" SID "956" Ports [1, 1] Position [580, 142, 620, 168] ZOrder -8 BlockMirror on InputPortWidth "snsrsize" IndexOptions "Index vector (dialog)" Indices "Of" OutputSizes "1" } Block { BlockType Signum Name "Sign of\n(Fdes-Fmeas)Fmeas" SID "957" Position [350, 84, 385, 116] ZOrder -9 BlockMirror on } Block { BlockType Sum Name "Sum" SID "958" Ports [2, 1] Position [475, 64, 490, 111] ZOrder -10 BlockMirror on NamePlacement "alternate" ShowName off Inputs "+-" } Block { BlockType Sum Name "Sum " SID "959" Ports [2, 1] Position [280, 91, 295, 124] ZOrder -11 BlockMirror on ShowName off } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold" SID "960" Position [80, 95, 110, 125] ZOrder -12 BlockMirror on SampleTime "simul.dt_rtht" } Block { BlockType ToWorkspace Name "desired force\nto workspace" SID "961" Ports [1] Position [500, 25, 530, 45] ZOrder -13 BlockRotation 270 NamePlacement "alternate" VariableName "fdes" MaxDataPoints "inf" SampleTime "-1" } Block { BlockType Outport Name "u" SID "962" Position [30, 103, 60, 117] ZOrder -15 BlockMirror on IconDisplay "Port number" InitialOutput "0" } Block { BlockType Outport Name "fdes" SID "963" Position [370, 43, 400, 57] ZOrder -16 BlockMirror on Port "2" IconDisplay "Port number" InitialOutput "0" } Line { SrcBlock "Zero-Order\nHold" SrcPort 1 DstBlock "u" DstPort 1 } Line { SrcBlock "Saturation" SrcPort 1 DstBlock "Zero-Order\nHold" DstPort 1 } Line { SrcBlock "Sum " SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Matrix\nGain" SrcPort 1 Points [-35, 0] DstBlock "Sum " DstPort 2 } Line { SrcBlock "Sign of\n(Fdes-Fmeas)Fmeas" SrcPort 1 DstBlock "Sum " DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Matrix\nGain" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Sign of\n(Fdes-Fmeas)Fmeas" DstPort 1 } Line { SrcBlock "Select\nMeasured Forces" SrcPort 1 Points [-50, 0] Branch { Points [-65, 0; 0, -50] DstBlock "Product" DstPort 2 } Branch { Points [0, -55] DstBlock "Sum" DstPort 2 } } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Saturation" DstPort 1 } Line { SrcBlock "LQG Linear \nController" SrcPort 1 Points [-25, 0] Branch { Points [-5, 0] Branch { Points [0, -25] DstBlock "fdes" DstPort 1 } Branch { DstBlock "Sum" DstPort 1 } } Branch { DstBlock "desired force\nto workspace" DstPort 1 } } Line { SrcBlock "ys" SrcPort 1 Points [-20, 0] Branch { DstBlock "LQG Linear \nController" DstPort 1 } Branch { Points [0, 80] DstBlock "Select\nMeasured Forces" DstPort 1 } } Annotation { SID "964" Position [659, 67] ZOrder -1 } } } Block { BlockType SubSystem Name "Command Inputs" SID "965" Ports [0, 3] Position [65, 154, 165, 216] ZOrder 83 MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Command Inputs" Location [-8, 0, 1684, 1026] 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 "175" Block { BlockType FromFile Name "El Centro" SID "966" Position [160, 227, 225, 243] ZOrder 78 FileName "elcentro.mat" } Block { BlockType Gain Name "Gain" SID "967" Position [295, 220, 325, 250] ZOrder 77 Gain "GA_gain" } Block { BlockType Gain Name "Gain1" SID "968" Position [330, 305, 360, 335] ZOrder 83 Gain "0.35" } Block { BlockType Gain Name "Gain2" SID "969" Position [280, 140, 310, 170] ZOrder 80 Gain "0.10" } Block { BlockType FromFile Name "kobe\n" SID "970" Position [160, 147, 225, 163] ZOrder 79 FileName "kobe.mat" } Block { BlockType FromFile Name "kobe\n1" SID "971" Position [210, 312, 275, 328] ZOrder 82 FileName "kobe.mat" } Block { BlockType Outport Name "kobe" SID "972" Position [375, 148, 405, 162] ZOrder -8 IconDisplay "Port number" } Block { BlockType Outport Name "el centro" SID "973" Position [375, 228, 405, 242] ZOrder -10 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "kobe1" SID "974" Position [425, 313, 455, 327] ZOrder 81 Port "3" IconDisplay "Port number" } Line { SrcBlock "Gain" SrcPort 1 DstBlock "el centro" DstPort 1 } Line { SrcBlock "El Centro" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "kobe\n" SrcPort 1 DstBlock "Gain2" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 DstBlock "kobe" DstPort 1 } Line { SrcBlock "kobe\n1" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "kobe1" DstPort 1 } } } Block { BlockType Constant Name "Constant" SID "975" Position [435, 494, 505, 516] ZOrder 67 BlockMirror on ShowName off Value "siminput.Umax" } Block { BlockType Constant Name "Constant1" SID "976" Position [330, 476, 405, 494] ZOrder 66 BlockMirror on ShowName off Value "siminput.Umin" } Block { BlockType Constant Name "Constant2" SID "977" Position [375, 444, 475, 466] ZOrder 68 BlockMirror on ShowName off Value "siminput.sw_mr" } Block { BlockType Delay Name "Delay" SID "978" Ports [1, 1] Position [390, 208, 425, 242] ZOrder 93 InputPortMap "u0" DelayLength "simul.pre_delay " SampleTime "simul.dt_rtht" } Block { BlockType Gain Name "Gain1" SID "979" Position [605, 278, 630, 302] ZOrder 81 NamePlacement "alternate" Gain "mm2cm" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType MultiPortSwitch Name "Multiport\nSwitch1" SID "980" Ports [6, 1] Position [260, 449, 315, 581] ZOrder 89 BlockMirror on Inputs "5" InputSameDT off SaturateOnIntegerOverflow off SampleTime "simul.dt_rtht" } Block { BlockType MultiPortSwitch Name "Multiport\nSwitch2" SID "981" Ports [4, 1] Position [250, 120, 280, 225] ZOrder 85 InputSameDT off SaturateOnIntegerOverflow off SampleTime "simul.dt_rtht" } Block { BlockType Mux Name "Mux" SID "982" Ports [3, 1] Position [480, 561, 485, 599] ZOrder 80 BlockMirror on ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Reference Name "Received Data1" SID "983" Ports [1] Position [360, 562, 435, 598] ZOrder 64 BlockMirror on NamePlacement "alternate" LibraryVersion "1.1724" SourceBlock "xpclib/Misc./Scope (xPC) " SourceType "xpcscopeblock" scopeno "8" scopetype "File" autostart on viewmode "Graphical redraw" formatstr "'%15.6f'" grid on ylimits "[0,0]" nosamples "simul.tend/simul.dt_rtht+1" noprepostsamples "0" interleave "1" triggermode "FreeRun" triggersignal "1" trigsignalfromport off triggerlevel "0.0" triggerslope "Either" triggerscope "1" triggersample "0" filename "fd_resp4.dat" mode "Lazy" writesize "512" autorestart off dynamicfilemode off maxwritefilesize "512*1024^2" } Block { BlockType Reference Name "Received Data3" SID "984" Ports [1] Position [735, 215, 825, 275] ZOrder 53 LibraryVersion "1.1724" SourceBlock "xpclib/Misc./Scope (xPC) " SourceType "xpcscopeblock" scopeno "9" scopetype "File" autostart on viewmode "Graphical redraw" formatstr "'%15.6f'" grid on ylimits "[0,0]" nosamples "simul.tend/simul.dt_rtht+1" noprepostsamples "0" interleave "1" triggermode "FreeRun" triggersignal "1" trigsignalfromport off triggerlevel "0.0" triggerslope "Either" triggerscope "1" triggersample "0" filename "struct_3.dat" mode "Lazy" writesize "512" autorestart off dynamicfilemode off maxwritefilesize "512*1024^2" } Block { BlockType Reference Name "Received Data4" SID "985" Ports [1] Position [735, 110, 825, 170] ZOrder 52 LibraryVersion "1.1724" SourceBlock "xpclib/Misc./Scope (xPC) " SourceType "xpcscopeblock" scopeno "4" scopetype "Target" autostart on viewmode "Graphical rolling" formatstr "'%15.6f'" grid on ylimits "[0,0]" nosamples "simul.tend/simul.dt_rtht+1" noprepostsamples "0" interleave "1" triggermode "FreeRun" triggersignal "1" trigsignalfromport off triggerlevel "0.0" triggerslope "Either" triggerscope "1" triggersample "0" filename "tg1_sq4.dat" mode "Lazy" writesize "512" autorestart off dynamicfilemode off maxwritefilesize "512*1024^2" } Block { BlockType SubSystem Name "Sensors" SID "986" Ports [2, 1] Position [650, 529, 700, 571] ZOrder 51 BlockMirror on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Sensors" Location [-8, 0, 1684, 1026] 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 "ym" SID "987" Position [285, 47, 315, 63] ZOrder -1 BlockMirror on IconDisplay "Port number" } Block { BlockType Inport Name "fm1" SID "988" Position [285, 112, 315, 128] ZOrder -2 BlockMirror on Port "2" IconDisplay "Port number" } Block { BlockType Mux Name "Mux" SID "989" Ports [2, 1] Position [220, 72, 255, 108] ZOrder -3 BlockMirror on Inputs "2" } Block { BlockType StateSpace Name "Sensor\nGains" SID "990" Position [130, 80, 175, 100] ZOrder -4 BlockMirror on NamePlacement "alternate" A "[]" B "[]" C "[]" D "K" Object { $PropName "MaskObject" $ObjectID 19 $ClassName "Simulink.Mask" Type "Matrix Gain" Description "Matrix Gain." Help "Multiplies input vector by entered matrix to produce output vector (y=Au)." Initialization " " Display "disp('K')" Object { $PropName "Parameters" $ObjectID 20 $ClassName "Simulink.MaskParameter" Type "edit" Name "K" Prompt "Gain matrix:" Value "snsr" } } } Block { BlockType Outport Name "ys" SID "991" Position [55, 82, 85, 98] ZOrder -5 BlockMirror on IconDisplay "Port number" InitialOutput "0" } Line { SrcBlock "Sensor\nGains" SrcPort 1 DstBlock "ys" DstPort 1 } Line { SrcBlock "ym" SrcPort 1 Points [-10, 0] DstBlock "Mux" DstPort 1 } Line { SrcBlock "fm1" SrcPort 1 Points [-10, 0] DstBlock "Mux" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Sensor\nGains" DstPort 1 } } } Block { BlockType Selector Name "connector\nresponse" SID "992" Ports [1, 1] Position [510, 328, 545, 352] ZOrder 73 BlockMirror on NamePlacement "alternate" InputPortWidth "outsize" IndexOptions "Index vector (dialog)" Indices "Oc1" OutputSizes "1" } Block { BlockType Selector Name "connector\nresponse1" SID "1144" Ports [1, 1] Position [475, 383, 510, 407] ZOrder 90 BlockMirror on NamePlacement "alternate" InputPortWidth "outsize" IndexOptions "Index vector (dialog)" Indices "Oc2" OutputSizes "1" } Block { BlockType Mux Name "input" SID "993" Ports [2, 1] Position [455, 206, 460, 279] ZOrder 46 Inputs "2" DisplayOption "bar" } Block { BlockType Selector Name "measured\nresponse" SID "994" Ports [1, 1] Position [699, 310, 741, 335] ZOrder 72 BlockRotation 270 BlockMirror on NamePlacement "alternate" InputPortWidth "outsize" IndexOptions "Index vector (dialog)" Indices "Om" OutputSizes "1" } Block { BlockType Constant Name "switch constant" SID "995" Position [20, 110, 70, 140] ZOrder 82 Value "simul.sw" } Block { BlockType Outport Name "d of 1st Floor" SID "996" Position [455, 333, 485, 347] ZOrder 59 BlockMirror on NamePlacement "alternate" IconDisplay "Port number" } Block { BlockType Outport Name "velocity" SID "997" Position [375, 388, 405, 402] ZOrder 91 BlockMirror on NamePlacement "alternate" Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Command Voltage1" SID "1145" Position [205, 508, 235, 522] ZOrder 92 BlockMirror on NamePlacement "alternate" Port "3" IconDisplay "Port number" } Line { SrcBlock "measured\nresponse" SrcPort 1 Points [0, 200] DstBlock "Sensors" DstPort 1 } Line { SrcBlock "connector\nresponse" SrcPort 1 DstBlock "d of 1st Floor" DstPort 1 } Line { SrcBlock "Sensors" SrcPort 1 Points [-28, 0] Branch { Points [0, 85] Branch { Points [0, 85] DstBlock "(modified BangBang)1" DstPort 1 } Branch { DstBlock "(modified BangBang)" DstPort 1 } } Branch { DstBlock "Clipped Optimal \n(BFCM)1" DstPort 1 } } Line { SrcBlock "Force" SrcPort 1 Points [75, 0] Branch { Points [0, 513; 613, 0; 0, -213] DstBlock "Sensors" DstPort 2 } Branch { DstBlock "input" DstPort 2 } } Line { SrcBlock "input" SrcPort 1 DstBlock "2 story structure" DstPort 1 } Line { SrcBlock "Multiport\nSwitch1" SrcPort 1 DstBlock "Command Voltage1" DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Multiport\nSwitch1" DstPort 3 } Line { SrcBlock "2 story structure" SrcPort 1 Points [15, 0] Branch { Points [0, 45] Branch { DstBlock "Gain1" DstPort 1 } Branch { Points [0, 50] Branch { Points [0, 55] DstBlock "connector\nresponse1" DstPort 1 } Branch { DstBlock "connector\nresponse" DstPort 1 } } } Branch { Points [0, -105] DstBlock "Received Data4" DstPort 1 } Branch { DstBlock "Received Data3" DstPort 1 } } Line { SrcBlock "Constant2" SrcPort 1 Points [-40, 0] DstBlock "Multiport\nSwitch1" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 DstBlock "Multiport\nSwitch1" DstPort 2 } Line { SrcBlock "(modified BangBang)" SrcPort 1 Points [-178, 0; 0, -80] DstBlock "Multiport\nSwitch1" DstPort 5 } Line { SrcBlock "Clipped Optimal \n(BFCM)1" SrcPort 1 Points [-99, 0; 0, -15] DstBlock "Multiport\nSwitch1" DstPort 4 } Line { SrcBlock "(modified BangBang)" SrcPort 2 Points [-14, 0; 0, -65] DstBlock "Mux" DstPort 2 } Line { SrcBlock "Clipped Optimal \n(BFCM)1" SrcPort 2 Points [-12, 0; 0, 10] DstBlock "Mux" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Received Data1" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 Points [85, 0] DstBlock "measured\nresponse" DstPort 1 } Line { SrcBlock "switch constant" SrcPort 1 Points [160, 0] DstBlock "Multiport\nSwitch2" DstPort 1 } Line { SrcBlock "Command Inputs" SrcPort 1 Points [65, 0] DstBlock "Multiport\nSwitch2" DstPort 2 } Line { SrcBlock "Command Inputs" SrcPort 2 DstBlock "Multiport\nSwitch2" DstPort 3 } Line { SrcBlock "Multiport\nSwitch2" SrcPort 1 Points [82, 0; 0, 50] DstBlock "Delay" DstPort 1 } Line { SrcBlock "Command Inputs" SrcPort 3 Points [37, 0; 0, 5] DstBlock "Multiport\nSwitch2" DstPort 4 } Line { SrcBlock "(modified BangBang)1" SrcPort 2 Points [-20, 0] DstBlock "Mux" DstPort 3 } Line { SrcBlock "(modified BangBang)1" SrcPort 1 Points [-192, 0; 0, -145] DstBlock "Multiport\nSwitch1" DstPort 6 } Line { SrcBlock "connector\nresponse1" SrcPort 1 DstBlock "velocity" DstPort 1 } Line { SrcBlock "Delay" SrcPort 1 DstBlock "input" DstPort 1 } Annotation { SID "998" Position [572, 246] ZOrder -1 } } } Block { BlockType Terminator Name "Terminator2" SID "999" Position [140, 225, 160, 245] ZOrder 874 } Block { BlockType Reference Name "Unpack1" SID "1000" Ports [1, 1] Position [140, 158, 205, 192] ZOrder 869 LibraryVersion "1.1724" SourceBlock "xpclib/UDP/Unpack" SourceType "xpcbyte2any" dimensions "{[1]}" datatypes "{'double'}" byteAlign "1" } Block { BlockType Width Name "Width3" SID "1001" Position [790, 180, 820, 210] ZOrder 872 } Block { BlockType Reference Name "save_data1" SID "1002" Ports [1] Position [605, 271, 665, 309] ZOrder 875 LibraryVersion "1.1724" SourceBlock "xpclib/Misc./Scope (xPC) " SourceType "xpcscopeblock" scopeno "2" scopetype "File" autostart on viewmode "Graphical redraw" formatstr "'%15.6f'" grid on ylimits "[0,0]" nosamples "simul.tend/simul.dt_rtht+1" noprepostsamples "0" interleave "1" triggermode "FreeRun" triggersignal "1" trigsignalfromport off triggerlevel "0.0" triggerslope "Either" triggerscope "1" triggersample "0" filename "Receive.dat" mode "Lazy" writesize "512" autorestart off dynamicfilemode off maxwritefilesize "512*1024^2" } Line { SrcBlock "Width3" SrcPort 1 DstBlock "Send " DstPort 2 } Line { SrcBlock "Receive force" SrcPort 1 DstBlock "Unpack1" DstPort 1 } Line { SrcBlock "Pack1" SrcPort 1 Points [32, 0] Branch { Points [0, 25] DstBlock "Width3" DstPort 1 } Branch { Points [153, 0] DstBlock "Send " DstPort 1 } } Line { SrcBlock "SubStructure" SrcPort 1 DstBlock "Pack1" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "save_data1" DstPort 1 } Line { SrcBlock "Receive force" SrcPort 2 Points [43, 0; 0, 30] Branch { DstBlock "Terminator2" DstPort 1 } Branch { Points [0, 75; 102, 0] Branch { Points [0, 245] DstBlock "MATLAB Function" DstPort 1 } Branch { DstBlock "Mux" DstPort 3 } } } Line { SrcBlock "Unpack1" SrcPort 1 Points [72, 0] Branch { Points [0, 115; 2, 0] Branch { Points [0, 290] DstBlock "MATLAB Function" DstPort 2 } Branch { DstBlock "Mux" DstPort 2 } } Branch { Points [0, -5] DstBlock "SubStructure" DstPort 1 } } Line { SrcBlock "Counter\nFree-Running1" SrcPort 1 Points [37, 0; 0, -95] DstBlock "MATLAB Function" DstPort 3 } Line { SrcBlock "Constant1" SrcPort 1 Points [15, 0; 0, -155] DstBlock "MATLAB Function" DstPort 4 } Line { SrcBlock "MATLAB Function" SrcPort 1 DstBlock "Scope (xPC) 4" DstPort 1 } Line { SrcBlock "SubStructure" SrcPort 2 DstBlock "Pack1" DstPort 2 } Line { SrcBlock "SubStructure" SrcPort 3 Points [30, 0] Branch { Points [0, 75] DstBlock "Mux" DstPort 1 } Branch { DstBlock "Pack1" DstPort 3 } } } } # Finite State Machines # # Stateflow Version 7.6 (R2013a) dated Jan 19 2013, 14:32:03 # # Stateflow { machine { id 1 name "Calib_02_UConn_Test" created "23-May-2010 12:03:00" isLibrary 0 firstTarget 12 sfVersion 76014001.0015 } chart { id 2 name "MATLAB Function" windowPosition [357.331 483.407 167 391] viewLimits [0 156.75 0 153.75] screen [1 1 1280 1024 1.041050272174191] treeNode [0 3 0 0] firstTransition 10 firstJunction 9 viewObj 2 machine 1 ssIdHighWaterMark 8 decomposition CLUSTER_CHART type EML_CHART firstData 4 chartFileNumber 2 disableImplicitCasting 1 eml { name "initial_delay_estimator" } } 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 ssIdNumber 1 type FUNC_STATE decomposition CLUSTER_STATE eml { isEML 1 script "% this function receives the following:\n% arrival check from signal from udp output port\n% arri" "ving signal that is looped back\n% count_val that is a counter counting since the start of the simulation\n% out" "pus estimated delay\n\nfunction delay_est = initial_delay_estimator(arv_check, arv_signal, count_val, base_delay" ")\n%#codegen\n\npersistent arv_flag % to make sure flag is persistent\npersistent const_td % to make sure initia" "l time delay is constant\n\n% initialization\nif isempty(arv_flag)\n arv_flag = 0;\nend\n\n% initialization\ni" "f isempty(const_td)\n const_td = 0;\nend\n\nif arv_flag == 0\n if ( (arv_check ~= 0) && (arv_signal ~= 0) )" " % check if arv_signal is giving 1 and if the arriving loopback signal is not zero\n arv_flag = 1;\n " " delay_est = double(count_val-1)-base_delay;\n const_td = double(count_val-1)-base_delay;\n else\n " " delay_est = 0;\n end\nelse\n delay_est = const_td;\nend\n\n" editorLayout "100 M4x1[10 5 700 500]" } } data { id 4 ssIdNumber 4 name "arv_check" linkNode [2 0 5] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE } complexity SF_COMPLEX_INHERITED } dataType "Inherit: Same as Simulink" } data { id 5 ssIdNumber 7 name "arv_signal" linkNode [2 4 6] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } complexity SF_COMPLEX_INHERITED frame SF_FRAME_INHERITED } dataType "Inherit: Same as Simulink" } data { id 6 ssIdNumber 5 name "delay_est" linkNode [2 5 7] scope OUTPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE } complexity SF_COMPLEX_INHERITED frame SF_FRAME_NO } dataType "Inherit: Same as Simulink" } data { id 7 ssIdNumber 6 name "count_val" linkNode [2 6 8] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } complexity SF_COMPLEX_INHERITED frame SF_FRAME_INHERITED } dataType "Inherit: Same as Simulink" } data { id 8 ssIdNumber 8 name "base_delay" linkNode [2 7 0] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } complexity SF_COMPLEX_INHERITED frame SF_FRAME_INHERITED } dataType "Inherit: Same as Simulink" } junction { id 9 position [23.5747 49.5747 7] chart 2 linkNode [2 0 0] subviewer 2 ssIdNumber 3 type CONNECTIVE_JUNCTION } transition { id 10 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 9 intersection [1 0 -1 0 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 slide { sticky BOTH_STICK } executionOrder 1 ssIdNumber 2 } instance { id 11 name "MATLAB Function" machine 1 chart 2 } target { id 12 name "sfun" description "Default Simulink S-Function Target." machine 1 linkNode [1 0 13] } target { id 13 name "rtw" machine 1 linkNode [1 12 0] } }