Resample (Constant to Constant) (G Dataflow)

Resamples a signal according to a specific delay and sampling interval.

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

signal

Input signal.

This input accepts the following data types:

• Waveform
• Waveform in complex double-precision, floating-point numbers
• 1D array of waveforms
• 1D array of waveforms in complex double-precision, floating-point numbers
• 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

resampled dt

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

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

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

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

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

normalized bandwidth

Fraction of the new sampling rate that is not attenuated.

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

resampled signal

Resampled signal.

This output can return the following data types:

• Waveform
• Waveform in complex double-precision, floating-point numbers
• 1D array of waveforms
• 1D array of waveforms in complex double-precision, floating-point numbers
• 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

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.

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.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

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