Returns the y value, located in a one-dimensional table, that corresponds to an x value you specify. Details Example
| Dialog Box Options |
| Block Diagram Inputs |
| Block Diagram Outputs |
| Parameter | Description |
|---|---|
| Polymorphic instance | Specifies whether this function is Scalar or Vector. The default value is Scalar. |
| Parameters | Lists all the parameters associated with this function. Select a parameter from this list to configure the parameter. When you select a parameter, the parameter and its associated Parameter source control appear in the Parameter Information section of the configuration dialog box. |
| Preview | Displays a graphical preview, if available, of the function output or configuration. |
| Parameter Information | Contains the parameters you can configure for this function. You must select a parameter from the Parameters list to make that parameter and its associated Parameter source control visible in the Parameter Information section of the configuration dialog box. |
| Parameter source | Specifies whether you configure this parameter using the Configuration Dialog Box or a Terminal on the simulation diagram. The default value is Configuration Dialog Box. If you select Terminal, LabVIEW displays an input for that parameter on the simulation diagram, and you can wire values to that input to configure this function programmatically. If you select Configuration Dialog Box, LabVIEW removes that input from the simulation diagram. You then must set the value for this parameter inside the configuration dialog box. |
| Method | Specifies the interpolation method the lookup table uses. You can choose from the following options:
If you do not select Interpolate/Extrapolate for Method and the given value is out of range, this function returns the value of the end point that is closest to the given value. |
| LUT X | Specifies the set of x values that correspond to the y data points in LUT Data. The elements of LUT X must be monotonically increasing or equal such that LUT X[i] ≥ LUT X[j] if i > j. |
| LUT Data | Specifies a one-dimensional table of y data points that correspond to the values you specify for the LUT X parameter. |
| Parameter | Description |
|---|---|
| Method | Specifies the interpolation method the lookup table uses. You can choose from the following options:
If you do not select Interpolate/Extrapolate for Method and the given value is out of range, this function returns the value of the end point that is closest to the given value. |
| LUT X | Specifies the set of x values that correspond to the y data points in LUT Data. The elements of LUT X must be monotonically increasing or equal such that LUT X[i] ≥ LUT X[j] if i > j. |
| LUT Data | Specifies a one-dimensional table of y data points that correspond to the values you specify for the LUT X parameter. |
| X Val | Specifies the x value to locate in the LUT Data table. |
| Parameter | Description |
|---|---|
| Result | Returns the y value in the LUT Data table that corresponds to the value you specify for the X Val parameter. If a direct match does not exist, this function operates according to the value you specify for the Method parameter. |
All input/output pairs of this function have direct feedthrough behavior.
Refer to the LUT 1D VI in the labview\examples\simulation\Getting Started\LUT directory for an example of using the Lookup Table 1D VI.