Resample Waveforms (continuous) VI

Owning Palette: Waveform Conditioning VIs

Requires: Full Development System

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.

Details  Example

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

Resample Waveform (continuous)

reset resets the phase to the phase control value and the time stamp to zero. The default is FALSE.
waveform in is a waveform to align.
dt is the user-defined sampling interval for resampled waveform out.
t0 is the user-defined start time value for resampled waveform out.
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.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
FIR filter specifications specifies the minimum values this VI needs to specify the FIR filter.
alias rejection (dB) specifies the minimum attenuation level of signal components aliased after any resampling operation. The default is 120.
normalized bandwidth specifies the fraction of the new sampling rate that is not attenuated. The default is 0.4536.
resampled waveform out contains the resampled waveform.
next t0 is the start time of the next resampled waveform out, if reset is FALSE.
used t0 returns the actual start time of resampled waveform out.
error out contains error information. This output provides standard error out functionality.
t0 adjusted warning returns TRUE if used t0 does not equal t0.

Resample N Waveforms (continuous)

Resamples waveforms in according to the user-defined t0 and dt values.

reset resets the phase to the phase control value and the time stamp to zero. The default is FALSE.
waveforms in is an array of waveforms to align.
dt is the user-defined sampling interval for resampled waveforms out.
t0 is the user-defined time stamp value for resampled waveforms out.
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.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
FIR filter specifications specifies the minimum values this VI needs to specify the FIR filter.
alias rejection (dB) specifies the minimum attenuation level of signal components aliased after any resampling operation. The default is 120.
normalized bandwidth specifies the fraction of the new sampling rate that is not attenuated. The default is 0.4536.
resampled waveforms out returns an array containing the resampled waveforms.
next t0's is the timestamp of the next resampled waveform out, if reset is FALSE.
used t0's returns the array of actual time stamps for resampled waveforms out.
error out contains error information. This output provides standard error out functionality.
t0 adjusted warnings returns TRUE in each element of the array where the corresponding used t0's element does not equal t0.

Resample Waveform (continuous, t0 DBL)

reset resets the phase to the phase control value and the time stamp to zero. The default is FALSE.
waveform in is a waveform to align.
dt is the user-defined sampling interval for resampled waveform out.
t0 is the user-defined start time value for resampled waveform out.
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.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
FIR filter specifications specifies the minimum values this VI needs to specify the FIR filter.
alias rejection (dB) specifies the minimum attenuation level of signal components aliased after any resampling operation. The default is 120.
normalized bandwidth specifies the fraction of the new sampling rate that is not attenuated. The default is 0.4536.
resampled waveform out contains the resampled waveform.
next t0 is the start time of the next resampled waveform out, if reset is FALSE.
used t0 returns the actual start time of resampled waveform out.
error out contains error information. This output provides standard error out functionality.
t0 adjusted warning returns TRUE if used t0 does not equal t0.

Resample N Waveforms (continuous, t0 DBL)

reset resets the phase to the phase control value and the time stamp to zero. The default is FALSE.
waveforms in is an array of waveforms to align.
dt is the user-defined sampling interval for resampled waveform out.
t0 is the user-defined start time value for resampled waveform out.
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.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
FIR filter specifications specifies the minimum values this VI needs to specify the FIR filter.
alias rejection (dB) specifies the minimum attenuation level of signal components aliased after any resampling operation. The default is 120.
normalized bandwidth specifies the fraction of the new sampling rate that is not attenuated. The default is 0.4536.
resampled waveforms out returns an array containing the resampled waveforms.
next t0's is the timestamp of the next resampled waveform out, if reset is FALSE.
used t0's returns the array of actual time stamps for resampled waveforms out.
error out contains error information. This output provides standard error out functionality.
t0 adjusted warnings returns TRUE in each element of the array where the corresponding used t0's element does not equal t0.

Resample Waveforms (continuous) Details

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.

Related Information

Passband Ripple and Stopband Attenuation

Example

Refer to the Resampling a Waveform (continuous) VI in the labview\examples\Signal Processing\Waveform Conditioning directory for an example of using the Resample Waveforms (continuous) VI.

 Open example  Find related examples