Performs a cubic spline interpolation of f at x, given a set of tabulated values.

This VI is similar to the Spline Interpolation VI.

Note By default, reentrant execution is enabled in all Point By Point VIs.


icon

Inputs/Outputs

  • cbool.png initialize

    initialize, when TRUE, initializes the internal state of the VI.

  • cdbl.png y

    y is an input data point.

  • cdbl.png x

    x is an input data point.

  • cdbl.png x value

    x value is a single value.

    x value should fall within the range [x0, xn – 1].

  • c1ddbl.png Interpolant

    Interpolant is the second derivative of the cubic spline interpolating function.

    The number of elements in Interpolant must equal sample length. Otherwise, the VI sets the output interpolation value to zero.

  • ci32.png sample length

    sample length is the length of each set of incoming data. The VI performs computation for each set of data. The default is 100.

    sample length must be greater than zero.

  • idbl.png interpolation value

    interpolation value is the cubic spline interpolation of f at x value.

  • ii32.png 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.

  • The set of given tabulated values of f at x is in the form of yi = f(xi) for i = 0, 1, …, n – 1. The given second derivatives is Interpolant, which the VI obtains from the Spline Interpolant PtByPt VI. The points are formed by the set of input data points specified by sample length, and n is the total number of points.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Signal Processing\Point by Point\Spline Interpolation PtbyPt.vi