MotoHawk:Blocks:Fixed Point Interpolation1D

From MotoHawk
Jump to navigationJump to search

Fixed-Point Interpolation (1-D) (16-Bit)

This MotoHawk™ block behaves similarly to the native Simulink Interpolation (1-D) using Prelookup block. Use in combination with the MotoHawk Prelookup block.

Block ID

Fixed Point Interpolation 1D

Library

MotoHawk_lib/Fixed Point Blocks

Description

Fixed Point Interpolation1D.PNG

Use the block in combination with the [PrelookupIndexSearch.html MotoHawk Prelookup] block. Note that the generated VarDecs will be the entered 'Name' with suffix 'Tbl', and one with the 'Name' if no explicit 'Output Name' is supplied. For more information, see [../MotoHawk_topics/BScaleFixed.html Fixed Point Values and B Numbers].

Block Parameters

Parameter Field Values Comments/Description
Name Alpha-numeric text, single-quote enclosed Name as displayed in block, MotoTune, for block. No special characters, such as spaces, dashes, commas (underscore allowed).
Table Data Numeric Format for Table data - Matlab expression can be used. Example: mod(sin([1:50]),2)
Table Data B scale Numeric (B value) Supply applicable value for "B" - larger B values increase value range and reduce resolution of output values.
Storage and Accessibility Select storage method.
NonAdaptive Values do not change at runtime, except via calibration.
Adaptive - Volatile Values can change at runtime (using Adapt Table block) - will not be saved over powerup cycles.
Adaptive - NonVolatile Values can change at runtime (using Adapt Table block) - will be saved over powerup cycles.
Read Access Level 1-4 Sets security level 1 lowest, 4 highest, for user access to read value
Write Access Level 1-4 Sets security level 1 lowest, 4 highest, for user access to write value
Use uploaded calibration values from MotoTune Checkbox enable Enable/disable to use or ignore uploaded values from MotoTune.
Help Text Alpha-numeric text, single-quote enclosed Enter text to describe block usage per needs.
Table Units Alpha-numeric text, single-quote enclosed Enter text to describe or label units or data for clarification in MotoTune, as appropriate per application.
Minimum Value Numeric Value Sets lower end of allowable range for value. This can be used to prevent a user from entering an out of range number when calibrating.
Maximum Value Numeric Value Sets higher end of allowable range for value. This can be used to prevent a user from entering an out of bounds range when calibrating.
Precision Numeric value, single-quote enclosed Set the precision of the variable as displayed in MotoTune, by entering a value '1.x' where "x" is the number of decimal places requested. Default is two decimal places.
Pre-Lookup Name (optional) Alpha-numeric text, single-quote enclosed List name of associated Pre-Lookup Table. No special characters, such as spaces, dashes, commas (underscore allowed). If the Prelookup block for the input cannot be directly routed to this block for any reason, explicitly entering the name of the Prelookup block will allow the VarDec to be found. This is sometimes a problem when using a Data Store to pass the output of the Prelookup index to this block, for example. An empty string in this field will let the code-generator determine the name of the Prelookup that is directly attached.
Output Name (optional) Alpha-numeric text, single-quote enclosed List name of block output for clarity. If left blank, a VarDec will be generated called Name. If non-empty, a downstream Probe must be provided called Output Name, which allows customization of the output VarDec. An error will result if the VarDec does not exist. No special characters, such as spaces, dashes, commas (underscore allowed).
MotoTune Group String Alpha-numeric text, single-quote enclosed Determines Folder name and hierarchy as displayed in MotoTune. Use "|" character between folder names to delineate subfolder structure.