MotoHawk:Blocks:Prelookup

From MotoHawk
Jump to navigationJump to search

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

Prelookup.PNG

This block is used to generate an index and interpolation fraction for use with a MotoHawk Lookup Table block.

Breakpoint Data contains the table of breakpoint values to be searched. This data may be modified via MotoTune. 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 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 table of breakpoint values to be searched and modified via MotoTune. Data has the name VarDec with the suffix 'IdxArr'. Note that the data type of the breakpoint data determines the input port data type.
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.
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 - no special characters, such as spaces, dashes, commas (underscore allowed).
Breakpoint Units Alpha-numeric text, single-quote enclosed Enter text to describe or label breakpoint 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.
Gain* Numeric Value Multiplier applied (Default is 1) to the raw value used in calculation of the engineering value as observed in MotoTune
Offset* Numeric Value Constant added (Default is 0) to the raw value calculations to result in the engineering value as observed in MotoTune
Exponent* Numeric Value Exponent applied (Default is 1) to the (raw value*gain) product used in calculating the engineering value as observed in MotoTune
Input VarDec Name (optional) Alpha-numeric text, single-quote enclosed Enter name of specific block to link, as a Lookup Table - 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.
  • NOTE: Engineering Value = (Raw Module Value*Gain)^Exp)+Offset.