Table Of Contents

Resample (Constant to Variable) (G Dataflow)

Last Modified: January 9, 2017

Resamples a signal according to specific time instances.

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 for resampling.

The sampling interval of signal is 1.

This input accepts the following data types:

  • 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

time

Time instances for resampling in ascending order.

datatype_icon

error in

Error conditions that occur before this node runs. The node responds to this input according to standard error behavior.

Default: No error

datatype_icon

FIR filter specifications

Minimum values this node needs to specify the 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 Applies lowpass filtering to the input signal when downsampling the signal.
False Does not apply lowpass filtering to the input signal when downsampling the signal.

If anti-aliasing is True, this node protects the resampled signal from aliasing. However, the computation requirements increase during resampling.

Default: True

datatype_icon

resampled signal

Resampled signal.

datatype_icon

time stamps

Time instance for each sample in the resampled signal.

The number of elements in time stamps is equal to the number of columns in resampled signal. The contents of the time input determine the contents of time stamps. As a result of the internal state of the resampling filter, time stamps might have additional data at the beginning of the array and might lose some data at the end of the array.

datatype_icon

error out

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

Resampling Behavior for Online Applications

To calculate a resampled signal at time t, this node needs several pieces of original signal data both before and after t. FIR filter specifications determines the number of pieces of signal data before and after t that this node needs. If t is close to the end of the input signal, this node might not have enough data after t to calculate the resampled signal. However, if you use this node in online applications in which you continuously acquire data, this node can calculate the resampled signal at t when the next input signal block is available. Therefore, in the first input signal block, time stamps loses data for t at the end of the array. In the next input signal block, time stamps has t as additional data at the beginning of the array.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported


Recently Viewed Topics