Resample
- Updated2023-02-17
- 5 minute(s) read
Resample
Resamples a signal according to specific delay and sampling interval.
_(Wfm_DBL).gvi.png?_LANG=enus)
Inputs/Outputs

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

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

resampled dt
Sampling interval, in seconds, between data points in the resampled signal.
Default value: 1

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.

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

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

error in
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Default value: No error

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.

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

normalized bandwidth
Fraction of the new sampling rate that is not attenuated.
Default value: 0.4536

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

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

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.

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.

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

error out
Error information.
The node produces this output according to standard error behavior.

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.