Table Of Contents

Resample (Constant to Variable) (G Dataflow)

Version:
    Last Modified: March 31, 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

    Input signal for resampling.

    The sampling interval of signal is 1.

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

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

    This output can return 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

    timestamps

    Time instance for each sample in the resampled signal.

    The number of elements in timestamps is equal to the number of columns in resampled signal. The contents of the time input determine the contents of timestamps. As a result of the internal state of the resampling filter, timestamps 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.

    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.

    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: This product does not support FPGA devices


    Recently Viewed Topics