Fixed-Point Interpolation (2-D)

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

Block ID

Fixed Point Interpolation 2D

Library

MotoHawk_lib/Fixed Point Blocks

Description

Use in combination with the MotoHawk Prelookup block. Note that the generated variables will be the entered Name with suffix 'Tbl', and one with the 'Name' if no explicit 'Output 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 Base name of the variable. Should be unique and C-legal (no special characters, such as spaces, dashes or commas (underscore allowed).
Table Data Numeric Format for Table data - Matlab expression can be used. Example: membrane(11)
Table Data B scale Numeric B value Supply applicable value for "B" - larger B values increase value range and reduce resolution of output values.
Number of Bits Drop down Selects 16 or 32 bits
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 power-up cycles.
Adaptive - NonVolatile Values can change at runtime (using Adapt Table block) - will be saved over power-up cycles.
Adaptive - Fixed NonVolatile Values can change at runtime (using Adapt Table block) - 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.
Specify Memory Region Check box (enable) Selects that the data will be placed in region specified by Memory Region Name. This option is only available if the target and selected storage class support memory regions. The default memory region is used when this option is not available or unchecked.
Memory Region Name Alpha-numeric text, single-quote enclosed Name of the Memory Region in which to place the data. This option is only available when Specify Memory Region is checked.
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.
Units Alpha-numeric text, single-quote enclosed Label text that describes the units of the data as appropriate for the 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 to eb displayed by an instrumentation tool by entering a value '1.x' where "x" is the number of decimal places requested. Default is two decimal places.
Row Pre-Lookup Name (optional) Alpha-numeric text, single-quote enclosed List name of associated Pre-Lookup Table Row. 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.
Column Pre-Lookup Name (optional) Alpha-numeric text, single-quote enclosed List name of associated Pre-Lookup Table Column. 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).
Instrumentation Group Alpha-numeric text, single-quote enclosed Determines Folder name and hierarchy to be used by an instrumentation tool. Use "|" character between folder names to delineate subfolder structure.