Difference between revisions of "MotoHawk:Lookup Tables Overview"
(→Lookup Reference Blocks) |
(→Lookup Reference Blocks) |
||
| Line 53: | Line 53: | ||
== Lookup Reference Blocks == | == Lookup Reference Blocks == | ||
| + | |||
| + | The same look-up table can be used in several functions by using the Lookup Table Reference blocks (1D or 2D). Datastorage created by any other MotoHawk Data Definition may be referenced. | ||
| + | |||
| + | The reference blocks perform the same function as 'Non-reference' blocks, except they don't define any data, or create variables that can be viewed in MotoTune. | ||
| + | |||
| + | '''<big>MotoHawk Prelookup Reference Block</big>''' | ||
| + | |||
| + | [[Image:Prelookup_Reference.PNG]] | ||
| + | |||
| + | This block has the same operation as a MotoHawk Prelookup Block, except it doesn't define any data or create anything visible from MotoTune. | ||
| + | |||
| + | |||
| + | MotoHawk Interpolation 1D Reference | ||
| + | |||
| + | [[Image:Interpolation1D_Reference.PNG]] | ||
| + | |||
| + | This MotoHawk™ block performs the same operation as a MotoHawk Interpolation (1-D) block, but does not define any data or create any VarDecs visible from MotoTune. | ||
| + | |||
| + | |||
| + | MotoHawk Interpolation 2D Reference | ||
| + | |||
| + | [[Image:Interpolation2D_Reference.PNG]] | ||
| + | |||
| + | This MotoHawk™ block performs the same operation as a MotoHawk Interpolation (2-D) block, but does not define any data or create any VarDecs visible from MotoTune. | ||
Revision as of 21:37, 26 September 2012
Contents
MotoHawk Lookup Table Blocks
MotoHawk provides a library of lookup table blocks that provide functionality similar to the native Simulink lookup table blocks, but also allow for calibration in MotoTune. The blockset provides 1D and 2D maps, as well as adaptive tables. Pre-lookup and Interpolation tables can be used to split up the breakpoints and table data separately. Reference tables can be used to access a table defined by a data store (Data Storage Blockset) somewhere else in the model. Data for the lookup tables can be stored in Volatile or Non-Volatile storage.
1D and 2D Lookup Table Blocks
MotoHawk 1D Lookup Table
This MotoHawk™ block behaves similarly to the native Simulink Look-Up Table (1-D) block. This block performs 1-D linear interpolation of input values using the Breakpoint (x-axis) and Table Data (y-axis). End values of Table Data is used for input outside of the Breakpoint Data.
MotoHawk 2D Lookup Table
This block performs 2-D linear interpolation of input values using the Breakpoint (x) and 2-D matrix of Table data values to be searched.
Prelookup and Interpolation Blocks
The MotoHawk 1D and 2D Lookup Tables are comprised under the mask of Prelookup and Interpolation table as shown below:
MotoHawk Prelookup Table
This block is used to generate an index and interpolation fraction for use with a MotoHawk Lookup Table block.
MotoHawk Interpolation 1D
This MotoHawk™ block behaves similarly to the native Simulink Interpolation (1-D) using Prelookup block, with n=1.
This block performs a linear interpolation on an 1-D matrix, "Table Data," using precalculated indices and distance fractions provided by the PrelookUp block. End values of Table Data is used for input outside of the Breakpoint Data. This block is used with the MotoHawk Prelookup or MotoHawk Prelookup Reference block.
MotoHawk Interpolation 2D
This MotoHawk™ block behaves similarly to the native Simulink Interpolation (2-D) using Prelookup block, with n=2.
This block performs a linear interpolation on an 2-D matrix, "Table Data," using precalculated indices and distance fractions provided by the PrelookUp block. End values of Table Data is used for input outside of the Breakpoint Data. This block is used with the MotoHawk Prelookup or MotoHawk Prelookup Reference block.
Lookup Reference Blocks
The same look-up table can be used in several functions by using the Lookup Table Reference blocks (1D or 2D). Datastorage created by any other MotoHawk Data Definition may be referenced.
The reference blocks perform the same function as 'Non-reference' blocks, except they don't define any data, or create variables that can be viewed in MotoTune.
MotoHawk Prelookup Reference Block
This block has the same operation as a MotoHawk Prelookup Block, except it doesn't define any data or create anything visible from MotoTune.
MotoHawk Interpolation 1D Reference
This MotoHawk™ block performs the same operation as a MotoHawk Interpolation (1-D) block, but does not define any data or create any VarDecs visible from MotoTune.
MotoHawk Interpolation 2D Reference
This MotoHawk™ block performs the same operation as a MotoHawk Interpolation (2-D) block, but does not define any data or create any VarDecs visible from MotoTune.


