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


icon

Inputs/Outputs

  • cbool.png reset

    reset resets the phase to the phase control value and the time stamp to zero. The default is FALSE.

  • 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 next t0

    next t0 is the start time of the next resampled waveform out, if reset is FALSE.

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

  • If t0 is less than the actual t0 value of the input waveform, that is the time stamp of the first input sample, the VI coerces t0 to the first value greater than the actual t0 that fulfills the following equation.

    used t0t0 = n*dt

    where n is an integer.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Signal Processing\Waveform Conditioning\Resampling a Waveform (continuous).vi