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 Fixed Point Values and B Numbers.

Block Parameters

Parameter Field Values Comments/Description
Name Alpha-numeric text, single-quote enclosed Name of the variable. Should be unique and C-legal (no special characters such as spaces, dashes or 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.
Volatile Values can change at runtime - will not be saved over powerup cycles.
NonVolatile Values can change at runtime - will be saved over powerup cycles.
Fixed NonVolatile Values can change at runtime - will be saved over powerup cycles.
Fixed NonVolatile data allows for greater flexibility by permitting the addition of new data items whilst retaining existing data during an application upgrade.
Read Access Level 0-8 Sets security level 1 lowest, 8 highest, for user access to read value. A setting of zero indicates unsecured access is allowed.
Write Access Level 0-8 Sets security level 1 lowest, 8 highest, for user access to write value. A setting of zero indicates unsecured access is allowed.
Use uploaded calibration values Checkbox (enable) Enable/disable to use or ignore uploaded values (see Use Uploaded Calibration Values).
Help Text Alpha-numeric text, single-quote enclosed Enter text to describe block usage per needs - no special characters, such as spaces, dashes, commas (underscore allowed).
Breakpoint Units Alpha-numeric text, single-quote enclosed Engineering units of the breakpoints.
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 when viewed by instrumentation tools 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. 
Instrumentation Group Alpha-numeric text, single-quote enclosed Defines the folder name and hierarchy to be used by a suitable instrumentation tool. Use "|" character between folder names to delineate subfolder structure.