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.


icon

Inputs/Outputs

  • cbool.png open interval? (F)

    open interval? defines the interval over which the VI resamples the input waveform. The default is FALSE, which selects a closed interval.

    For example, assume an input waveform contains 3 data elements at t = {0, dt, 2dt}. An open interval yields resampled data over the time interval 0 ≤ t < 2dt, and a closed interval yields resampled data over the time interval 0 ≤ t < 3dt.

  • cmsdt.png waveform in

    waveform in is a waveform to align.

  • cdbl.png dt

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

  • catrn.png t0

    t0 is the user-defined start time value for resampled waveform out.

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

  • cnclst.png FIR filter specifications

    FIR filter specifications specifies the minimum values this VI needs to specify the FIR filter.

  • cdbl.png alias rejection (dB)

    alias rejection (dB) specifies the minimum attenuation level of signal components aliased after any resampling operation. The default is 120.

  • cdbl.png normalized bandwidth

    normalized bandwidth specifies the fraction of the new sampling rate that is not attenuated. The default is 0.4536.

  • imsdt.png resampled waveform out

    resampled waveform out contains the resampled waveform.

  • iatrn.png used t0

    used t0 returns the actual start time of resampled waveform out.

  • 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