Interpolate 2D Scattered (2D) VI
- 已更新2025-07-30
- 閱讀時間為 3 分鐘
Performs two-dimensional interpolation on scattered points.
This VI accepts X, Y, and Z values (two independent variables and one dependent variable, respectively) and returns interpolated values Zi that correspond to each Xi and Yi location.
You must manually select the polymorphic instance to use.

Inputs/Outputs
method
—
method sets the interpolation method.
Z
—
Z is the value of the known points.
X
—
X is the x-coordinates of the known points.
Y
—
Y is the y-coordinates of the known points. X, Y, and Z must be the same size.
Xi
—
Xi is a 2D array of the corresponding values of X. Both sets of corresponding interpolated values compute the dependent variable Zi.
Yi
—
Yi is a 2D array of the corresponding values of Y. Both sets of corresponding interpolated values compute the dependent variable Zi. The size of Yi must equal the size of Xi.
Zi
—
Zi is the 2D array of interpolated values that correspond to the Xi and Yi independent variable values.
error
—
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Mathematics\Interpolation\Scattered 2D Interpolation.vi
method
—
Z
—
Xi
—
Zi
—
error
—