Inports
| |
x | Table index in x direction |
y | Table index in y direction |
Outports
| |
Out | Table output |
Mask Parameters | |
TableData | Look-up table data |
DimX | Number of data points in x-direction |
DimY | Number of data points in y-direction |
Two dimensional look-up table with selectable number of data points.
Table data must be an array of size DimX*DimY.
FiP: Input range is from -1 to 1
Float: Input range is from 0 to dimension-1. If input is out of range, output will be cut off (no extrapolation).
The table of the LookupTable2D block must contain DimX times DimY data points and they have to be arranged as
TableData = | [f(x1,y1),f(x2,y1),...f(xn-1,y1),f(xn,y1), | ||
f(x1,y2),f(x2,y2),...f(xn-1,y2),f(xn,y2), | |||
... | |||
f(x1,ym-1),f(x2,ym-1),...f(xn-1,ym-1),f(xn,ym-1), | |||
f(x1,ym),f(x2,ym),...f(xn-1,ym),f(xn,ym)] |
with n as selected DimX and m as selected DimY values.
For periodic signals, the last entries per dimension must be identical to the first entries in this dimension, see the example in the following figure.
For non-periodic signals there is no restriction regarding the last data points, see the example in the figure below.
FiP16 | 16 Bit Fixed Point Implementation |
FiP32 | 32 Bit Fixed Point Implementation |
Float32 | 32 Bit Floating Point Implementation |
Float64 | 64 Bit Floating Point Implementation |
16 Bit Fixed Point Implementation
Inports Data Type
| |
x | int16 |
y | int16 |
Outports Data Type
| |
Out | int16 |
32 Bit Fixed Point Implementation
Inports Data Type
| |
x | int32 |
y | int32 |
Outports Data Type
| |
Out | int32 |
32 Bit Floating Point Implementation
Inports Data Type
| |
x | float32 |
y | float32 |
Outports Data Type
| |
Out | float32 |
64 Bit Floating Point Implementation
Inports Data Type
| |
x | float64 |
y | float64 |
Outports Data Type
| |
Out | float64 |