Resample

Resamples a signal according to specific delay and sampling interval.

1378

Inputs/Outputs

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 value: 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 value: 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 value: 0

datatype_icon

interpolation mode

Algorithm this node uses to resample the input signal.

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 value: 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

Default value: 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 value: 120

datatype_icon

normalized bandwidth

Fraction of the new sampling rate that is not attenuated.

Default value: 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 value: 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

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.