Skip to content

Lookup Table (2D)

Symbol

Description

Lookup Table (2D)

The Lookup Table (2D) control model generates output values based on a grid of input values (X, Y) and corresponding output values defined in a Table matrix. The dimensions of the Table are determined by the lengths of X and Y vectors, resulting in a matrix of dimensions M x N.

The Table matrix consists of M x N combinations of X and Y input pairs, where each combination corresponds to a specific output value. Ensure that the values in the X and Y vectors are strictly increasing to maintain consistent interpolation results.

For input values (X, Y) falling between defined grid points, the output is calculated using bilinear interpolation. This approach ensures smooth transitions between specified output values across the grid.

When the input values (X, Y) are outside the bounds of the defined grid, bilinear extrapolation is employed to compute the output value. This maintains a consistent behavior of the control model for out-of-bounds inputs.

Important

The Lookup Table (2D) control model also supports importing grid data from a .csv file. To do this, select the "Load From File..." option and choose the desired .csv file containing the grid data.

Library

Control > Table

Pins

Name Description
InX Input X
InY Input Y
Out Output

Parameters

Name Description
XValues Vector of input values (X)
YValues Vector of input values (Y)
Table Matrix of output values LUT(X,Y)
SamplingTime -none or 0: No sampling. The system will be solved in the Newton loop (default).
-auto: Inherit the sampling time of its source device.
-Sampling Period: defined in seconds.