MotoHawk:Blocks:Fixed Point Prelookup
From MotoHawk
Jump to navigationJump to searchContents
Fixed-Point Prelookup Index Search (16-Bit)
This MotoHawk™ block behaves similarly to the native Simulink Prelookup Index Search block.
Block ID
Fixed Point Prelookup
Library
MotoHawk_lib/Fixed Point Blocks
Description
This block behaves similarly to the native Simulink PreLook-Up Index Search block. Use it to generate an index and interpolation fraction for use with a MotoHawk Look-Up Table (1-D) or MotoHawk Look-Up Table (2-D) block. Note that the generated VarDecs will be the entered 'Name' with suffixes 'Idx' and 'IdxArr', and one with the suffix 'In' if no explicit 'Input 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 MotoTune, for block. No special characters, such as spaces, dashes, commas (underscore allowed). The output will have the suffix 'Idx' and the 1-D Breakpoint table will have the suffix 'IdxArr'. |
Breakpoint Data | Define data to be used | Define the data and type implied, such as an array - [1 2 3 4] - (or select type in Breakpoint Data Type), or possibly use valid MatLab expression. |
Breakpoint B Scale | Numeric | Supply applicable numeric value for "B" scale used. |
Storage Class | Select storage method. | |
Constant | 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.. |
Breakpoint 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. |
Input VarDec Name (optional) | Alpha-numeric text, single-quote enclosed | Name a source to link to the block input to link by VarDec name. |
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. |