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, non-evenly sampled signals that are considered complete.


icon

Inputs/Outputs

  • c1dcclst.png Multiple XY-data in

    Multiple XY-data in is the array of pairs of X and Y arrays representing the waveforms to resample.

  • c1ddbl.png X-array

    X-array is the array of x values.

  • c1ddbl.png Y-array

    Y-array is the array of y values.

  • 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 pairs of X and Y arrays containing the resampled waveforms.

  • i1ddbl.png X-array

    X-array is the array of x values.

  • i1ddbl.png Y-array

    Y-array is the array of y values.

  • i1ddbl.png used t0's

    used t0's returns the array of actual time stamps for resampled waveforms out.

  • 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