# $Revision: 1.10 $ Model { Name "fxpdemo_approx" Version 5.0 SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines on ShowLineDimensions off ShowPortDataTypes on ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ExecutionOrder off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "d" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "MinMaxAndOverflow" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks on BrowserLookUnderMasks on InitFcn "if ~exist('xuneven') | ~exist('yuneven') | ~exist('" "xeven') | ~exist('yeven') | ~exist('xpow2') | ~exist('ypow2'), fxpdemo_approx" "_sin, end" Created "Tue Mar 20 10:29:29 2001" Creator "andyb" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "andyb" ModifiedDateFormat "%" LastModifiedDate "Wed May 22 12:14:10 2002" ModelVersionFormat "1.%" ConfigurationManager "none" SimParamPage "Solver" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 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 off TunableVars "xuneven,yeven,ypow2,yuneven" TunableVarsStorageClass "ExportedGlobal,ExportedGlobal,ExportedGlobal,Export" "edGlobal" TunableVarsTypeQualifier ",,," BufferReuse on RTWExpressionDepthLimit 5 SimulationMode "normal" Solver "FixedStepDiscrete" SolverMode "Auto" StartTime "0.0" StopTime "1" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "0.01" RelTol "1e-3" AbsTol "auto" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" LoadExternalInput off ExternalInput "[t, u]" LoadInitialState off InitialState "xInitial" SaveTime off TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput off OutputSaveName "yout" SaveFinalState off FinalStateName "xFinal" SaveFormat "Array" Decimation "1" LimitDataPoints on MaxDataPoints "1000" SignalLoggingName "sigsOut" ConsistencyChecking "none" ArrayBoundsChecking "none" AlgebraicLoopMsg "warning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" CheckForMatrixSingularity "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "warning" ParameterOverflowMsg "warning" ParameterPrecisionLossMsg "none" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SfunCompatibilityCheckMsg "none" RTWInlineParameters on BlockReductionOpt on BooleanDataType off ConditionallyExecuteInputs on ParameterPooling on OptimizeBlockIOStorage on ZeroCross on AssertionControl "UseLocalSettings" ProdHWDeviceType "Microprocessor" ProdHWWordLengths "8,16,32,32" RTWSystemTargetFile "grt.tlc" RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off RTWRetainRTWFile off TLCProfiler off TLCDebug off TLCCoverage off TLCAssertion off RTWOptions "-aEnforceIntegerDowncast=1 -aExtMode=0 -aExtModeTes" "ting=0 -aFoldNonRolledExpr=1 -aForceParamTrailComments=0 -aGenRTModel=1 -aGen" "erateComments=1 -aGenerateReport=0 -aIgnoreCustomStorageClasses=1 -aIncHierar" "chyInIds=0 -aInlineInvariantSignals=1 -aLocalBlockOutputs=1 -aLogVarNameModif" "ier=\"rt_\" -aRTWVerbose=1 -aRollThreshold=5 -aShowEliminatedStatements=1" BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Courier New" FontSize 9 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Constant Value "1" VectorParams1D on ShowAdditionalParam off OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ShowAdditionalParam off ParameterDataTypeMode "Same as input" ParameterDataType "sfix(16)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "2^0" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Lookup InputValues "[-4:5]" OutputValues " rand(1,10)-0.5" ShowAdditionalParam off LookUpMeth "Interpolation-Extrapolation" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType MultiPortSwitch Inputs "4" ShowAdditionalParam off zeroidx off InputSameDT on OutDataTypeMode "Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Outport Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Reference } Block { BlockType Scope Floating off ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType "S-Function" FunctionName "system" PortCounts "[]" SFunctionModules "''" } Block { BlockType SubSystem ShowPortLabels on Permissions "ReadWrite" RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Trigonometry Operator "sin" OutputSignalType "auto" } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Courier New" FontSize 14 FontWeight "bold" FontAngle "normal" } LineDefaults { FontName "Arial" FontSize 12 FontWeight "normal" FontAngle "normal" } System { Name "fxpdemo_approx" Location [25, 91, 562, 394] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Lookup Name "Even" Position [345, 160, 385, 200] AttributesFormatString "Sine Approx" InputValues "xeven" OutputValues "yeven" ShowAdditionalParam on LookUpMeth "Interpolation-Use End Values" OutDataTypeMode "Specify via dialog" OutScaling "2^-14" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "yEven" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "ExportedGlobal" DataLogging off DataLoggingNameMode "SignalName" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" } } Block { BlockType Gain Name "Gain" Position [235, 32, 295, 68] Gain "2*pi" } Block { BlockType Reference Name "Gateway Out" Ports [1, 1] Position [140, 30, 180, 70] SourceBlock "fixpt_lib_4/Data Type/Gateway Out" SourceType "Fixed-Point Gateway Out" OutRealWorld "Real World Value" OutBuiltInType "double" RndMeth "Floor" DoSatur off } Block { BlockType Lookup Name "Pow2" Position [345, 225, 385, 265] AttributesFormatString "Sine Approx" InputValues "xpow2" OutputValues "ypow2" ShowAdditionalParam on LookUpMeth "Interpolation-Use End Values" OutDataTypeMode "Specify via dialog" OutScaling "2^-14" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "yPow2" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "ExportedGlobal" DataLogging off DataLoggingNameMode "SignalName" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" } } Block { BlockType Reference Name "Repeating\nStair\nSequence" Ports [0, 1] Position [15, 30, 55, 70] SourceBlock "fixpt_lib_4/Sources/Repeating\nSequence\nStair" SourceType "Fixed-Point Repeating Sequence Stair" OutValues "linspace(0,0.25,100).'" tsamp "-1" OutputDataTypeScalingMode "Specify via dialog" OutDataType "ufix(16)" OutScaling "2^-14" LockScale off ConRadixGroup "Use Specified Scaling" Port { PortNumber 1 Name "uAngle" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "ExportedGlobal" DataLogging off DataLoggingNameMode "SignalName" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" } } Block { BlockType Scope Name "Scope" Ports [4] Position [480, 16, 510, 279] Location [548, 53, 906, 664] Open off NumInputPorts "4" List { ListType AxesTitles axes1 "%" axes2 "%" axes3 "%" axes4 "%" } TimeRange "1" YMin "0~0~0~0" YMax "1~1~1~1" DataFormat "StructureWithTime" } Block { BlockType Trigonometry Name "Sine Ideal" Ports [1, 1] Position [355, 35, 385, 65] Port { PortNumber 1 Name "yIdeal" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" DataLogging off DataLoggingNameMode "SignalName" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" } } Block { BlockType Lookup Name "Uneven" Position [345, 95, 385, 135] AttributesFormatString "Sine Approx" InputValues "xuneven" OutputValues "yuneven" ShowAdditionalParam on LookUpMeth "Interpolation-Use End Values" OutDataTypeMode "Specify via dialog" OutScaling "2^-14" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "yUneven" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "ExportedGlobal" DataLogging off DataLoggingNameMode "SignalName" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" } } Line { Name "uAngle" Labels [2, 1] SrcBlock "Repeating\nStair\nSequence" SrcPort 1 Points [0, 0; 55, 0] Branch { Points [0, 65; 185, 0] Branch { Points [0, 65] Branch { DstBlock "Even" DstPort 1 } Branch { Points [0, 65] DstBlock "Pow2" DstPort 1 } } Branch { DstBlock "Uneven" DstPort 1 } } Branch { Points [0, 0] DstBlock "Gateway Out" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sine Ideal" DstPort 1 } Line { SrcBlock "Gateway Out" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { Name "yIdeal" Labels [0, 0] SrcBlock "Sine Ideal" SrcPort 1 DstBlock "Scope" DstPort 1 } Line { Name "yUneven" Labels [0, 0] SrcBlock "Uneven" SrcPort 1 DstBlock "Scope" DstPort 2 } Line { Name "yEven" Labels [0, 0] SrcBlock "Even" SrcPort 1 DstBlock "Scope" DstPort 3 } Line { Name "yPow2" Labels [0, 0] SrcBlock "Pow2" SrcPort 1 DstBlock "Scope" DstPort 4 } } }