Model { Name "base_controller" Version 7.3 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.8" 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" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" UserBdParams "DSRTSU_INTERNAL_RTI_VER;DSRTSU_INTERNAL_RTI_TYPE" DSRTSU_INTERNAL_RTI_VER "340" DSRTSU_INTERNAL_RTI_TYPE "rti1104" Created "Mon Jan 11 00:15:10 2010" Creator "ecslogon" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "ecslogon" ModifiedDateFormat "%" LastModifiedDate "Wed May 04 16:04:22 2011" RTWModifiedTimeStamp 0 ModelVersionFormat "1.%" ConfigurationManager "None" SampleTimeColors off SampleTimeAnnotations off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowSignalResolutionIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off SimulationMode "normal" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on CovModelRefEnable "Off" CovExternalEMLEnable off ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse off ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.6.0" Array { Type "Handle" Dimension 9 Simulink.SolverCC { $ObjectID 2 Version "1.6.0" StartTime "0.0" StopTime "Inf" AbsTol "auto" FixedStep "0.001" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ZcThreshold "auto" ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-3" SolverMode "Auto" Solver "ode1" SolverName "ode1" ShapePreserveControl "DisableAll" ZeroCrossControl "UseLocalSettings" ZeroCrossAlgorithm "Nonadaptive" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" InsertRTBMode "Whenever possible" SignalSizeVariationType "Allow only fixed size" } Simulink.DataIOCC { $ObjectID 3 Version "1.6.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveCompleteFinalSimState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on InspectSignalLogs off SaveTime on StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Version "1.6.0" Array { Type "Cell" Dimension 6 Cell "PassReuseOutputArgsAs" Cell "PassReuseOutputArgsThreshold" Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "OptimizeModelRefInitCode" Cell "NoFixptDivByZeroProtection" PropName "DisabledProps" } BlockReduction off BooleanDataType on ConditionallyExecuteInputs on InlineParams off InlineInvariantSignals off OptimizeBlockIOStorage off BufferReuse off EnhancedBackFolding off StrengthReduction off EnforceIntegerDowncast on ExpressionFolding off 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" BufferReusableBoundary on SimCompilerOptimization "Off" AccelVerboseBuild off } Simulink.DebuggingCC { $ObjectID 5 Version "1.6.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" 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" 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" UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" StrictBusMsg "Warning" LoggingUnavailableSignals "error" BlockIODiagnostic "none" } Simulink.HardwareCC { $ObjectID 6 Version "1.6.0" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdIntDivRoundTo "Zero" ProdEndianess "BigEndian" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "Specified" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Zero" TargetEndianess "BigEndian" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Specified" TargetUnknown off ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.6.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.SFSimCC { $ObjectID 8 Version "1.6.0" SFSimEnableDebug on SFSimOverflowDetection on SFSimEcho on SimBlas on SimUseLocalCustomCode off SimBuildMode "sf_incremental_build" } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 9 Version "1.6.0" Array { Type "Cell" Dimension 6 Cell "IncludeHyperlinkInReport" Cell "GenerateTraceInfo" Cell "GenerateTraceReport" Cell "GenerateTraceReportSl" Cell "GenerateTraceReportSf" Cell "GenerateTraceReportEml" PropName "DisabledProps" } SystemTargetFile "rti1104.tlc" GenCodeOnly off MakeCommand "make_rti" GenerateMakefile on TemplateMakefile "rti1104.tmf" Description "dSPACE DS1104 Hardware Platform" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ProcessScript "rti1104_make_rtw_hook" ConfigAtBuild off RTWUseLocalCustomCode off RTWUseSimCustomCode off IncludeHyperlinkInReport off LaunchReport off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off IncludeERTFirstTime off GenerateTraceInfo off GenerateTraceReport off GenerateTraceReportSl off GenerateTraceReportSf off GenerateTraceReportEml off GenerateCodeInfo off RTWCompilerOptimization "Off" CheckMdlBeforeBuild "Off" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 10 Version "1.6.0" Array { Type "Cell" Dimension 17 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 "CustomSymbolStrBlkIO" Cell "CustomSymbolStrTmpVar" Cell "CustomSymbolStrMacro" PropName "DisabledProps" } ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on IgnoreTestpoints off IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off MangleLength 1 CustomSymbolStrGlobalVar "$R$N$M" CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off UseSimReservedNames off } Simulink.STFCustomTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 11 Version "1.6.0" Array { Type "Cell" Dimension 20 Cell "TimeScaleFactor" Cell "CCompilerEffectiveOptimizationOpts" Cell "CCompilerOptimizationOpts" Cell "BoardName" Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "GenerateTestInterfaces" Cell "ModelStepFunctionPrototypeControlCompliant" Cell "CPPClassGenCompliant" Cell "MultiInstanceERTCode" Cell "PurelyIntegerCode" Cell "SupportNonFinite" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" Cell "PortableWordSizes" PropName "DisabledProps" } TargetFcnLib "ansi_tfl_table_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" TargetFunctionLibrary "ANSI_C" UtilityFuncGeneration "Auto" ERTMultiwordTypeDef "System defined" ERTMultiwordLength 256 MultiwordLength 2048 GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on ParMdlRefBuildCompliant off CompOptLevelCompliant off IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging off MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off CPPClassGenCompliant off AutosarCompliant off SystemTargetFile "rti1104.tlc" DialogCategory 0 Array { Type "Handle" Dimension 1 Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 12 Version "1.6.0" Array { Type "Cell" Dimension 16 Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "GenerateTestInterfaces" Cell "ModelStepFunctionPrototypeControlCompliant" Cell "CPPClassGenCompliant" Cell "MultiInstanceERTCode" Cell "PurelyIntegerCode" Cell "SupportNonFinite" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" Cell "PortableWordSizes" PropName "DisabledProps" } TargetFcnLib "ansi_tfl_table_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" TargetFunctionLibrary "ANSI_C" UtilityFuncGeneration "Auto" ERTMultiwordTypeDef "System defined" ERTMultiwordLength 256 MultiwordLength 2048 GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on ParMdlRefBuildCompliant off CompOptLevelCompliant off IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging off MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off CPPClassGenCompliant off AutosarCompliant off UseMalloc off ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "noextcomm" ExtModeIntrfLevel "Level1" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off GenerateASAP2 off } PropName "Components" } CustomProperty { DataType "RTWOptions_EnumType_C__dSPACE_matlab_rti1104_tlc_rti1104_1InitialSimState" EnumStrPairs { Value 0 String "RUN" Value 1 String "PAUSE" Value 2 String "STOP" } Name "InitialSimState" Value "RUN" } CustomProperty { DataType "RTWOptions_EnumType_C__dSPACE_matlab_rti1104_tlc_rti1104_1ExecutionMode" EnumStrPairs { Value 0 String "real-time" Value 1 String "time-scaled" Value 2 String "as fast as possible" } Name "ExecutionMode" Value "real-time" } CustomProperty { DataType "string" Name "ExecutionModeNonUI" Value "RTSIM" } CustomProperty { DataType "string" Name "TimeScaleFactor" Value "1.0" } CustomProperty { DataType "string" Name "TimeScaleFactorNonUI" Value "OPTION_DISABLED" } CustomProperty { DataType "RTWOptions_EnumType_C__dSPACE_matlab_rti1104_tlc_rti1104_1AssertionMode" EnumStrPairs { Value 0 String "OFF" Value 1 String "WARN" Value 2 String "STOP" } Name "AssertionMode" Value "OFF" } CustomProperty { DataType "slbool" Name "TAStimulusEngineEnable" Value off } CustomProperty { DataType "RTWOptions_EnumType_C__dSPACE_matlab_rti1104_tlc_rti1104_1CCompilerOptimizationOptsPopup_" EnumStrPairs { Value 0 String "Default" Value 1 String "None" Value 2 String "User-defined" } Name "CCompilerOptimizationOptsPopup_" Value "Default" } CustomProperty { DataType "string" Name "CCompilerEffectiveOptimizationOpts" Value "-Ot -Oi -Or -Ox -D_INLINE" } CustomProperty { DataType "string" Name "CCompilerOptimizationOptsNonUI" Value "USE_DEFAULT" } CustomProperty { DataType "slbool" Name "LoadAfterBuild" Value on } CustomProperty { DataType "slbool" Name "LoadToFlash" Value off } CustomProperty { DataType "string" Name "LoadApplNonUI" Value "ON" } CustomProperty { DataType "RTWOptions_EnumType_C__dSPACE_matlab_rti1104_tlc_rti1104_1PlatformSelectionPopup" EnumStrPairs { Value 0 String "Auto" Value 1 String "User-defined (bus)" } Name "PlatformSelectionPopup" Value "Auto" } CustomProperty { DataType "string" Name "BoardNameNonUI" Value "OPTION_DISABLED" } CustomProperty { DataType "slbool" Name "TRCOnlyGlobals" Value off } CustomProperty { DataType "slbool" Name "TRCMaskParameters" Value off } CustomProperty { DataType "slbool" Name "TRCGenerateLabels" Value on } CustomProperty { DataType "slbool" Name "TRCGenerateVirtualBlocks" Value on } CustomProperty { DataType "slbool" Name "TRCGenerateStates" Value off } CustomProperty { DataType "slbool" Name "TRCGenerateDerivatives" Value off } CustomProperty { DataType "slbool" Name "TRCApplySubsystemPermissions" Value off } CustomProperty { DataType "slbool" Name "TRCGenerateParamValues" Value off } CustomProperty { DataType "slbool" Name "TRCIsOmitVdOn" Value off } } PropName "Components" } } hdlcoderui.hdlcc { $ObjectID 13 Version "1.6.0" Description "HDL Coder custom configuration component" Name "HDL Coder" Array { Type "Cell" Dimension 1 Cell "" PropName "HDLConfigFile" } HDLCActiveTab "0" } PropName "Components" } Name "Configuration" ExtraOptions "-aGenerateTraceInfo=0 -aIgnoreTestpoints=0 " CurrentDlgPage "Solver" ConfigPrmDlgPosition " [ 200, 197, 1080, 827 ] " } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on BlockRotation 0 BlockMirror off } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" UseDisplayTextAsClickCallback off } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } BlockParameterDefaults { Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ParamMin "[]" ParamMax "[]" ParameterDataTypeMode "Same as input" ParameterDataType "fixdt(1,16,0)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "[]" ParamDataTypeStr "Inherit: Same as input" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType SubSystem ShowPortLabels "FromPortIcon" Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit off CheckFcnCallInpInsideContextMsg off SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on AccumDataTypeStr "Inherit: Inherit via internal rule" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Terminator } Block { BlockType ZeroOrderHold SampleTime "1" } } System { Name "base_controller" Location [581, 248, 1524, 873] 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" ReportName "simulink-default.rpt" Block { BlockType Sum Name "Add" Ports [2, 1] Position [420, 207, 450, 238] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Closed Loop" Position [315, 215, 345, 245] ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "fixdt(1, 16)" ParameterScaling "2^0" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "DS1104ADC_C5" Ports [0, 1] Position [40, 101, 130, 139] SourceBlock "rtilib1104/DS1104 MASTER PPC/DS1104ADC_C5" SourceType "RTI" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ChannelNo "5" TriggerMode "0" Reserved1 "[]" Reserved2 "[]" Reserved3 "[]" Reserved4 "[]" DialogFcn "gui1104adc" UnitName "{ 'DS1104ADC_C' }" UnitValues "{ 5 }" DSProperties "struct('RTI',struct('Version',uint32(1),'BlockType',struct('isSLSource',uint8(1),'isSLSink'," "uint8(0),'isHWSource',uint8(1),'isHWSink',uint8(0),'isSetup',uint8(0),'isInline',uint8(1),'isNonInline',uint8(0)" ",'isInterrupt',uint8(0),'isChannelwise',uint8(1)),'IOBoardType','DS1104MASTER','UnitType','ADC','Identifier','AD" "C','DialogType','ML','BlockSet','NONE','SlaveProcessor','NONE'))" } Block { BlockType Reference Name "DS1104DAC_C1" Ports [1] Position [850, 207, 940, 243] SourceBlock "rtilib1104/DS1104 MASTER PPC/DS1104DAC_C1" SourceType "RTI" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ChannelNo "1" InitValue "0" TermMode "0" TermValue "0" Reserved1 "[]" Reserved2 "[]" Reserved3 "[]" Reserved4 "[]" DialogFcn "gui1104dac" UnitName "{ 'DS1104DAC_C'}" UnitValues "{ 1 }" DSProperties "struct('RTI',struct('Version',uint32(1),'BlockType',struct('isSLSource',uint8(0),'isSLSink'," "uint8(1),'isHWSource',uint8(0),'isHWSink',uint8(1),'isSetup',uint8(0),'isInline',uint8(1),'isNonInline',uint8(0)" ",'isInterrupt',uint8(0),'isChannelwise',uint8(1)),'IOBoardType','DS1104MASTER','UnitType','DAC','Identifier','DA" "C','DialogType','ML','BlockSet','NONE','SlaveProcessor','NONE'))" } Block { BlockType Reference Name "DS1104ENC_POS_C1" Ports [0, 2] Position [40, 246, 130, 284] SourceBlock "rtilib1104/DS1104 MASTER PPC/DS1104ENC_POS_C1" SourceType "RTI" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ChannelNo "1" PosValue "0" Reserved1 "[]" Reserved2 "[]" Reserved3 "[]" Reserved4 "[]" DialogFcn "gui1104enc_pos" UnitName "{'DS1104ENC_POS_C'}" UnitValues "{ 1 }" DSProperties "struct('RTI',struct('Version',uint32(1),'BlockType',struct('isSLSource',uint8(1),'isSLSink'," "uint8(0),'isHWSource',uint8(1),'isHWSink',uint8(0),'isSetup',uint8(0),'isInline',uint8(1),'isNonInline',uint8(0)" ",'isInterrupt',uint8(0),'isChannelwise',uint8(1)),'IOBoardType','DS1104MASTER','UnitType','ENC','Identifier','EN" "CPOSCH','DialogType','ML','BlockSet','NONE','SlaveProcessor','NONE'))" } Block { BlockType Reference Name "DS1104ENC_SETUP" Ports [] Position [40, 361, 130, 399] SourceBlock "rtilib1104/DS1104 MASTER PPC/DS1104ENC_SETUP" SourceType "RTI" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SignalType "[0 0]" Reserved1 "[]" Reserved2 "[]" Reserved3 "[]" Reserved4 "[]" DialogFcn "gui1104enc_setup" UnitName "{'DS1104ENC_SETUP'}" UnitValues "{ [] }" DSProperties "struct('RTI',struct('Version',uint32(1),'BlockType',struct('isSLSource',uint8(0),'isSLSink'," "uint8(0),'isHWSource',uint8(0),'isHWSink',uint8(0),'isSetup',uint8(0),'isInline',uint8(1),'isNonInline',uint8(0)" ",'isInterrupt',uint8(0),'isChannelwise',uint8(0)),'IOBoardType','DS1104MASTER','UnitType','ENC','Identifier','EN" "CSETUP','DialogType','ML','BlockSet','NONE','SlaveProcessor','NONE'))" } Block { BlockType Reference Name "DS1104ENC_SET_POS_C1" Ports [0, 0, 0, 1] Position [420, 73, 511, 109] SourceBlock "rtilib1104/DS1104 MASTER PPC/DS1104ENC_SET_POS_C1" SourceType "RTI" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ChannelNo "1" PosValue "0" Reserved1 "[]" Reserved2 "[]" Reserved3 "[]" Reserved4 "[]" DialogFcn "gui1104enc_set_pos" UnitName "{'DS1104ENC_SET_POS_C'}" UnitValues "{ 1 }" DSProperties "struct('RTI',struct('Version',uint32(1),'BlockType',struct('isSLSource',uint8(0),'isSLSink'," "uint8(1),'isHWSource',uint8(0),'isHWSink',uint8(1),'isSetup',uint8(0),'isInline',uint8(1),'isNonInline',uint8(0)" ",'isInterrupt',uint8(0),'isChannelwise',uint8(1)),'IOBoardType','DS1104MASTER','UnitType','ENC','Identifier','EN" "CRESET','DialogType','ML','BlockSet','NONE','SlaveProcessor','NONE'))" } Block { BlockType Gain Name "Encoder Reset" Position [210, 40, 240, 70] Gain "0" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "fixdt(1, 16)" ParameterScaling "2^0" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Hardware\nAdjustment\nGain" Position [210, 240, 240, 270] Gain "0.0018" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "fixdt(1, 16)" ParameterScaling "2^0" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "On/Off" Position [205, 135, 235, 165] Gain "0" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "fixdt(1, 16)" ParameterScaling "2^0" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Output\nGain" Position [640, 210, 670, 240] ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "fixdt(1, 16)" ParameterScaling "2^0" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Proportional\nGain" Position [535, 210, 565, 240] ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "fixdt(1, 16)" ParameterScaling "2^0" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "RTI Data" Tag "struct('RTIDataServer',struct('RTIDataServerVs','2','RTIModelDescription','struct(''main'',''base_co" "ntroller'',''sub'','''',''isMp'',0)'))" Ports [] Position [15, 15, 66, 27] ForegroundColor "[0.501961, 0.501961, 0.501961]" BackgroundColor "[0.752941, 0.752941, 0.752941]" DropShadow on ShowName off CopyFcn "if exist('rtidc'), try, rtidc('DataHostBlockClbCopy', gcbh); catch, disp(['Warning: ''CopyFcn''" " for RTI Data block failed: ' lasterr]); end, end, " DeleteFcn "if exist('rtidc'), try, rtidc('DataHostBlockClbDelete', gcbh); catch, disp(['Warning: ''Delet" "eFcn'' for RTI Data block failed: ' lasterr]); end, end, " LoadFcn "if exist('rtidc'), try, rtidc('DataHostBlockClbLoad', gcbh); catch, disp(['Warning: ''LoadFcn''" " for RTI Data block failed: ' lasterr]); end, end, " ModelCloseFcn "if exist('rtidc'), try, rtidc('DataHostBlockClbModelClose', gcbh); catch, disp(['Warning: " "''ModelCloseFcn'' for RTI Data block failed: ' lasterr]); end, end, " PreSaveFcn "if exist('rtidc'), try, rtidc('DataHostBlockClbPreSave', gcbh); catch, disp(['Warning: ''PreS" "aveFcn'' for RTI Data block failed: ' lasterr]); end, end, " PostSaveFcn "if exist('rtidc'), try, rtidc('DataHostBlockClbPostSave', gcbh); catch, disp(['Warning: ''Po" "stSaveFcn'' for RTI Data block failed: ' lasterr]); end, end, " NameChangeFcn "if exist('rtidc'), try, rtidc('DataHostBlockClbNameChange', gcbh); catch, disp(['Warning: " "''NameChangeFcn'' for RTI Data block failed: ' lasterr]); end, end, " MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "RTI_DATA_HOST" MaskDescription "RTI Data Block.\nThis block is used by RTI to store internal model-dependent data.\nPleas" "e keep this block on the root level of the model. Deleting this block will result in data loss.\n\nNEVER DELETE " "OR COPY THIS BLOCK!" MaskHelp "RTI Data Block.\nThis block is used by RTI to store internal model-dependent data.\nPlease keep" " this block on the root level of the model. Deleting this block will result in data loss.\n\nNEVER DELETE OR COP" "Y THIS BLOCK!" MaskDisplay "text(0.5, 0.5, 'RTI Data', 'HorizontalAlignment', 'center');\nplot([1 0]);" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "normalized" System { Name "RTI Data" Location [450, 250, 640, 300] 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 SubSystem Name "RTI Data Store" Tag "struct('private',struct('version',struct('dsVer',uint32(2),'dsVerCreation',uint32(2),'RTI',struct('ver','6" ".3','type','RTI1104')),'access',struct('type','Model','isPerm',1,'created',['07-Apr-2010 19:50:44'],'modified',['04" "-May-2011 16:04:22'],'location','')),'public',struct('main',struct('data',[]),'sub',struct('name',{{'base_controlle" "r'}},'data',{{struct('TH',struct('thTaskInfo',struct('taskType',{'TIMER','HWINT','TMRINT','SWINT'},'tasksNumOf',{1," "0,0,0},'srcIds',{{'TIMERA'},{},{},{}},'taskNames',{{['Timer Task 1']},{},{},{}})),'th_tc',struct('dataType','TASK'," "'taskGroupId','','taskGroupList',{{}},'taskSchedulingPolicy','FCFS','taskType','TIMER','blkh',-1,'srcId','TIMERA','" "srcSgnName',['Timer A interrupt'],'srcCpuName','','taskName',['Timer Task 1 [0.001] s'],'taskNameDisplayExt','','s" "mplTime',0.001,'smplTimeOffs',0,'hasFixedPriority',0,'priority',1,'hasFixedOvc',0,'ovcType',1,'ovcMax',1),'tc_th',s" "truct('dataType','TASK','taskGroupId','','taskGroupList',{{}},'taskSchedulingPolicy','FCFS','taskType','TIMER','blk" "h',-1,'srcId','TIMERA','srcSgnName',['Timer A interrupt'],'srcCpuName','','taskName',['Timer Task 1 [0.001] s'],'t" "askNameDisplayExt','','smplTime',0.001,'smplTimeOffs',0,'hasFixedPriority',0,'priority',1,'hasFixedOvc',0,'ovcType'" ",1,'ovcMax',1))}})))" Ports [] Position [146, 15, 181, 28] ForegroundColor "white" ShowName off MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "RTI_DATA_STORE" MaskDescription "RTI Data Store Block. This block is used by RTI to store internal model dependent data. Deleting" " this block will result in data loss.\n\nNEVER DELETE, COPY, OR MODIFY THIS BLOCK!" MaskHelp "RTI Data Store Block. This block is used by RTI to store internal model dependent data. Deleting this " "block will result in data loss.\n\nNEVER DELETE, COPY, OR MODIFY THIS BLOCK!" MaskDisplay "text(0.5, 0.5, ' ', 'HorizontalAlignment', 'center');" MaskIconFrame off MaskIconOpaque on MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "normalized" System { Name "RTI Data Store" Location [450, 250, 640, 300] 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 SubSystem Name "RTI Data Store" Ports [] Position [146, 15, 181, 28] ForegroundColor "white" ShowName off MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "RTI_DATA_STORE" MaskDescription "RTI Data Store Block. This block is used by RTI to store internal model dependent data. " "Deleting this block will result in data loss.\n\nNEVER DELETE, COPY, OR MODIFY THIS BLOCK!" MaskHelp "RTI Data Store Block. This block is used by RTI to store internal model dependent data. Deleti" "ng this block will result in data loss.\n\nNEVER DELETE, COPY, OR MODIFY THIS BLOCK!" MaskDisplay "text(0.5, 0.5, ' ', 'HorizontalAlignment', 'center');" MaskIconFrame off MaskIconOpaque on MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "normalized" System { Name "RTI Data Store" Location [450, 250, 640, 300] 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 SubSystem Name "RTI Data Store" Ports [] Position [146, 15, 181, 28] ForegroundColor "white" ShowName off MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "RTI_DATA_STORE" MaskDescription "RTI Data Store Block. This block is used by RTI to store internal model dependent data. Deletin" "g this block will result in data loss.\n\nNEVER DELETE, COPY, OR MODIFY THIS BLOCK!" MaskHelp "RTI Data Store Block. This block is used by RTI to store internal model dependent data. Deleting this" " block will result in data loss.\n\nNEVER DELETE, COPY, OR MODIFY THIS BLOCK!" MaskDisplay "text(0.5, 0.5, ' ', 'HorizontalAlignment', 'center');" MaskIconFrame off MaskIconOpaque on MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "normalized" System { Name "RTI Data Store" Location [450, 250, 640, 300] 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 SubSystem Name "RTI Data Store" Ports [] Position [146, 15, 181, 28] ForegroundColor "white" ShowName off MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "RTI_DATA_STORE" MaskDescription "RTI Data Store Block. This block is used by RTI to store internal model dependent data. Del" "eting this block will result in data loss.\n\nNEVER DELETE, COPY, OR MODIFY THIS BLOCK!" MaskHelp "RTI Data Store Block. This block is used by RTI to store internal model dependent data. Deleting " "this block will result in data loss.\n\nNEVER DELETE, COPY, OR MODIFY THIS BLOCK!" MaskDisplay "text(0.5, 0.5, ' ', 'HorizontalAlignment', 'center');" MaskIconFrame off MaskIconOpaque on MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "normalized" System { Name "RTI Data Store" Location [450, 250, 640, 300] 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 Terminator Name "Terminator" Position [220, 315, 240, 335] } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold" Position [740, 210, 775, 240] SampleTime "0.001" } Line { SrcBlock "DS1104ENC_POS_C1" SrcPort 1 DstBlock "Hardware\nAdjustment\nGain" DstPort 1 } Line { SrcBlock "DS1104ENC_POS_C1" SrcPort 2 Points [35, 0; 0, 50] DstBlock "Terminator" DstPort 1 } Line { SrcBlock "DS1104ADC_C5" SrcPort 1 Points [30, 0] Branch { Points [0, -65] DstBlock "Encoder Reset" DstPort 1 } Branch { Points [0, 30] DstBlock "On/Off" DstPort 1 } } Line { SrcBlock "Encoder Reset" SrcPort 1 Points [220, 0] DstBlock "DS1104ENC_SET_POS_C1" DstPort trigger } Line { SrcBlock "Hardware\nAdjustment\nGain" SrcPort 1 Points [25, 0; 0, -25] DstBlock "Closed Loop" DstPort 1 } Line { SrcBlock "On/Off" SrcPort 1 Points [165, 0] DstBlock "Add" DstPort 1 } Line { SrcBlock "Closed Loop" SrcPort 1 DstBlock "Add" DstPort 2 } Line { SrcBlock "Add" SrcPort 1 DstBlock "Proportional\nGain" DstPort 1 } Line { SrcBlock "Proportional\nGain" SrcPort 1 DstBlock "Output\nGain" DstPort 1 } Line { SrcBlock "Output\nGain" SrcPort 1 DstBlock "Zero-Order\nHold" DstPort 1 } Line { SrcBlock "Zero-Order\nHold" SrcPort 1 DstBlock "DS1104DAC_C1" DstPort 1 } } }