Prelookup Index Search

This MotoHawk™ block behaves similarly to the native Simulink Prelookup Index Search block.

Block ID

motohawk_prelookup

Library

MotoHawk_lib/Lookup Tables

Description

This block is used to generate an index and interpolation fraction for use with a MotoHawk Lookups (1D and 1D Reference, 2D and 2D Reference

Breakpoint Data contains the table of breakpoint values to be searched. This data may be modified via a suitable instrumentation tool. Note that the data type of the breakpoint data determines the input port data type.

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 table of breakpoint values to be searched and modified. Data has the Name with the suffix 'IdxArr'. Note that the data type of the breakpoint data determines the input port data type.
Show ports Checkbox Check to expose the ports of the block. When unchecked the block will define the data, but the pre-lookup would be implemented via a reference block.
Breakpoint Data Type Drop-down list Select a data type from list, or select "Inherit from 'Table Data'" to set type as inferred from entry in Table Data field. Be sure to select a data type if there is possible ambiguity.
Storage Class
  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.
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 from instrumentation.
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 Alpha-numeric text, single-quote enclosed Sets the desired precision of the variable for use by suitable Instrumentation tools. For instance, if the variable has a value of 98.76543 and the precision is ‘1.3’, the value displayed would be 98.765.
Gain* Numeric Value Multiplier applied (default is 1) to the raw value used in calculation of the engineering value.
Offset* Numeric Value Constant added (default is 0) to the raw value calculations to result in the engineering value
Exponent* Numeric Value Exponent applied (default is 1) to the (raw value*gain) product used in calculating the engineering value.
Input VarDec Name (optional) Alpha-numeric text, single-quote enclosed Enter name of specific block to link, as a Lookup Table.
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.

*NOTE:  Engineering Value = (Raw Module Value*Gain)^Exp)+Offset.