Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Lookup Table 3D Function

LabVIEW 2012 Control Design and Simulation Module Help

Edition Date: June 2012

Part Number: 371894G-01

»View Product Info

Owning Palette: Lookup Tables Functions

Requires: Control Design and Simulation Module

Returns the w value, located in a three-dimensional table, that corresponds to x, y, and z values you specify.

Details  Example

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs

Dialog Box Options

ParameterDescription
Polymorphic instanceSpecifies whether this function is Scalar or Vector. The default value is Scalar.
ParametersLists 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.
PreviewDisplays a graphical preview, if available, of the function output or configuration.
Parameter InformationContains 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 sourceSpecifies 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.
MethodSpecifies the interpolation method the lookup table uses. You can choose from the following options:
  • Interpolate/Extrapolate (Default)
  • Interpolate
  • Nearest
  • Below
  • Above
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 XSpecifies the set of x values that correspond to the row index of data points in the LUT Data table. The elements of LUT X must be monotonically increasing or equal such that LUT X[i] ≥ LUT X[j] if i > j.
LUT YSpecifies the set of y values that correspond to the column index of data points in the LUT Data table. The elements of LUT Y must be monotonically increasing or equal such that LUT Y[i] ≥ LUT Y[j] if i > j.
LUT ZSpecifies the set of z values that correspond to the page index of data points in the LUT Data table. The elements of LUT Z must be monotonically increasing or equal such that LUT Z[i] ≥ LUT Z[j] if i > j.
LUT DataSpecifies a three-dimensional table of x, y, and z data points that correspond to the values you specify for the LUT X, LUT Y, and LUT Z parameters.

Block Diagram Inputs

ParameterDescription
MethodSpecifies the interpolation method the lookup table uses. You can choose from the following options:
  • Interpolate/Extrapolate (Default)
  • Interpolate
  • Nearest
  • Below
  • Above
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 XSpecifies the set of x values that correspond to the row index of data points in the LUT Data table. The elements of LUT X must be monotonically increasing or equal such that LUT X[i] ≥ LUT X[j] if i > j.
LUT YSpecifies the set of y values that correspond to the column index of data points in the LUT Data table. The elements of LUT Y must be monotonically increasing or equal such that LUT Y[i] ≥ LUT Y[j] if i > j.
LUT ZSpecifies the set of z values that correspond to the page index of data points in the LUT Data table. The elements of LUT Z must be monotonically increasing or equal such that LUT Z[i] ≥ LUT Z[j] if i > j.
LUT DataSpecifies a three-dimensional table of x, y, and z data points that correspond to the values you specify for the LUT X, LUT Y, and LUT Z parameters.
X ValSpecifies the x value to locate in the LUT Data table.
Y ValSpecifies the y value to locate in the LUT Data table.
Z ValSpecifies the z value to locate in the LUT Data table.

Block Diagram Outputs

ParameterDescription
ResultReturns the w value in the LUT Data table that corresponds to the values you specify for the X Val, Y Val, and Z Val parameters. If a direct match does not exist, this function operates according to the value you specify for the Method parameter.

Lookup Table 3D Details

Feedthrough Behavior

All input/output pairs of this function have direct feedthrough behavior.

Example

Refer to the SimEx LUT 3D VI in the labview\examples\Control and Simulation\Simulation\LUT directory for an example of using the Lookup Table 3D VI.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit