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 waveform represented by 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 a finite-length, non-evenly sampled signal that is considered complete.


icon

Inputs/Outputs

  • ccclst.png XY-data in

    XY-data in is a pair of X and Y arrays that represents the signal 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 waveform out.

  • cdbl.png t0

    t0 is the user-defined time stamp value for resampled waveform out. If t0 is less than the first X value of 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.

  • imsdt.png resampled waveform out

    resampled waveform out contains the resampled waveform.

  • icclst.png XY-data out

    XY-data out is the pair of X and Y arrays containing the resampled signal.

  • i1ddbl.png X-array

    X-array is the array of x values.

  • i1ddbl.png Y-array

    Y-array is the array of y values.

  • idbl.png used t0

    used t0 returns the actual time stamp of resampled waveform out and also is the first X value of XY-data out.

    If t0 is less than the first X value of XY-data in, used t0 is the lowest value greater than t0 that 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.

  • ibool.png t0 adjusted warning

    t0 adjusted warning returns TRUE if used t0 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