Table Of Contents

Resample (G Dataflow)

Last Modified: August 28, 2017

Resamples a signal according to specific delay and sampling interval.

connector_pane_image
datatype_icon

reset

A Boolean that specifies the initialization of the internal state of the node.

True Initializes the internal state to zero.
False Initializes the internal state to the final state from the previous call of this node.

This node automatically initializes the internal state to zero on the first call and runs continuously until this input is True.

Default: False

datatype_icon

signal

The input signal.

This input supports the following data types:

  • Waveform
  • Array of waveforms
  • 1D array of double-precision, floating-point numbers
  • 2D array of double-precision, floating-point numbers
datatype_icon

resampled dt

Sampling interval, in seconds, between data points in the resampled signal.

Default: 1

datatype_icon

resampled t0

Start time value for the resampled signal.

This input is available only if you wire a waveform or an array of waveforms to signal.

datatype_icon

delay

Timestamp for resampled signal.

This input is available only if you wire one of the following data types to signal:

  • 1D array of double-precision, floating-point numbers
  • 2D array of double-precision, floating-point numbers
  • 1D array of complex double-precision, floating-point numbers
  • 2D array of complex double-precision, floating-point numbers

Default: 0

datatype_icon

interpolation mode

Algorithm this node uses to resample the input signal.

Name Value Description
coerce 0 This node sets each output sample value to the input sample value that is closest to it in time.
linear 1 This node sets each output sample value to the linear interpolation between the two input samples that are closest to it in time.
spline 2 This node uses the spline interpolation algorithm to compute the resampled values.
FIR filter 3 This node uses a finite impulse response (FIR) filtering algorithm to compute the resampled values.

Default: FIR filter

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

FIR filter specifications

Minimum values this node needs to define the FIR filter.

This input is valid only when you set interpolation mode to FIR filter.

datatype_icon

alias rejection (dB)

Minimum attenuation level of signal components aliased after any resampling operation.

If alias rejection (dB) is less than 48, this node uses 48 instead.

Default: 120

datatype_icon

normalized bandwidth

Fraction of the new sampling rate that is not attenuated.

Default: 0.4536

datatype_icon

anti-aliasing

A Boolean that determines whether the input signal undergoes lowpass filtering when this node downsamples the signal.

True This node protects the resampled signal from aliasing. The computation requirements increase during resampling.
False The input signal undergoes lowpass filtering when this node downsamples the signal.

Default: True

datatype_icon

resampled signal

Resampled signal.

This output can return the following data types:

  • Waveform
  • Array of waveforms
  • 1D array of double-precision, floating-point numbers
  • 2D array of double-precision, floating-point numbers
datatype_icon

used t0

Actual start time of the resampled signal.

This output is available only if you wire a waveform or an array of waveforms to signal.

datatype_icon

next t0

Start time of the next resampled signal.

This output is available only if you wire a waveform or an array of waveforms to signal.

datatype_icon

t0

Time instance for the first sample in the resampled signal.

This output is available only if you wire one of the following data types to signal:

  • 1D array of double-precision, floating-point numbers
  • 2D array of double-precision, floating-point numbers
  • 1D array of complex double-precision, floating-point numbers
  • 2D array of complex double-precision, floating-point numbers
datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.
datatype_icon

t0 adjusted warning?

A Boolean that indicates whether the actual start time of the resampled signal equals the start time value you specified.

True The actual start time of the resampled signal does not equal the start time value you specified.
False The actual start time of the resampled signal equals the start time value you specified.

This output is available only if you wire a waveform or an array of waveforms to signal.

Where This Node Can Run:

Desktop OS: Windows

FPGA: DAQExpress does not support FPGA devices

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics