Resamples input waveforms or data according to the user-defined t0 and dt values. Wire data to the waveform or data input to determine the polymorphic instance to use or manually select the instance.

Note

Resamples the input waveforms represented by Multiple XY-data in according to the user-defined t0 and dt values. This VI does not assume any signal history. Use this VI to resample finite-length, unevenly-sampled signals that are considered complete.


icon

Inputs/Outputs

  • c1dcclst.png Multiple XY-data in

    Multiple XY-data in is an array of clusters containing arrays of XY pairs representing the signals to resample.

  • c1dnclst.png XY-data in

    XY-data in is the array of XY pairs representing the signal to resample.

  • cdbl.png x

    x is the X component of the XY pair.

  • cdbl.png y

    y is the Y component of the XY pair.

  • cdbl.png dt

    dt is the user-defined sampling interval for resampled waveforms out.

  • cdbl.png t0

    t0 is the user-defined time stamp value for resampled waveforms out. If t0 is less than the first X value of Multiple XY-data in, the value is adjusted.

  • cu16.png interpolation mode

    interpolation mode specifies the resampling algorithm used for the resampling.

    0Coerce—Specifies that each output sample is set equal to the input sample value that is closest to it in time.
    1Linear (default)—Specifies that each output sample value is a linear interpolation between the two input samples that are closest to it in time.
    2Spline—Specifies that this VI uses the spline interpolation algorithm to compute the resampled values.
    3FIR filter—Specifies that this VI uses a finite impulse response (FIR) filtering algorithm to compute the resampled values.
  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • i1dmsdt.png resampled waveforms out

    resampled waveforms out returns an array containing the resampled waveforms.

  • i1dcclst.png Multiple XY-data out

    Multiple XY-data out is the array of arrays of XY pairs containing the resampled signals.

  • i1dnclst.png XY-data out

    XY-data out is the array of XY pairs containing the resampled signal.

  • idbl.png x

    x is the X component of the XY pair.

  • idbl.png y

    y is the Y component of the XY pair.

  • i1ddbl.png used t0's

    used t0's returns the array of actual time stamps for resampled waveforms out. The time stamps are also the first X values in Multiple XY-data out.

    For each element of Multiple XY-data in, if t0 is less than the first X value (x0) of that element, the corresponding element value of used t0's is the lowest value greater than x0 that also fulfills the following equation. used t0 = t0 + n*dt where n is an integer.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • i1dbool.png t0 adjusted warnings

    t0 adjusted warnings returns TRUE in each element of the array where the corresponding used t0's element does not equal t0.

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Signal Processing\Waveform Conditioning\Resampling a Waveform (single-shot).vi