Interpolate 2D Scattered (1D) 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 the x-coordinates of the new points where the VI computes interpolated values at Zi.
Yi
—
Yi is the y-coordinates of the new points where interpolated values compute at Yi. The size of Yi must equal the size of Xi.
Zi
—
Zi returns the interpolated values of the new points that correspond to the Xi and Yi 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
—
Zi
—
error
—