Resample (constant to variable) VI

Owning Palette: Signal Operation VIs

Requires: Full Development System

Resamples input signal X according to Time using an FIR filter implementation. Wire data to the X input to determine the polymorphic instance to use or manually select the instance.

Details  

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

Resample (constant to variable, single-channel)

anti-aliasing? specifies whether the input signal undergoes lowpass filtering when LabVIEW downsamples the signal. If anti-aliasing? is TRUE (default), this VI protects the resampled signal from aliasing. However, the computation requirements increase during resampling.
reset? controls the initialization of the internal states. The default is FALSE. The first time this VI runs or when reset? is TRUE, LabVIEW initializes the internal states to zero. When reset? is FALSE, LabVIEW initializes the internal states to the final states from the previous call to this instance of this VI. To process a large data sequence consisting of smaller blocks, set this control to TRUE for the first block and to FALSE for continuous filtering of all remaining blocks.
X contains the input signal for resampling. The sampling interval of X is 1.
Time specifies the time instances for resampling in ascending order.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
FIR filter specifications specifies the minimum values this VI needs to specify the FIR filter.
alias rejection (dB) specifies the minimum attenuation level of signal components aliased after any resampling operation. If alias rejection (dB) is less than 48, this VI will use 48 instead. The default is 120.
normalized bandwidth specifies the fraction of the new sampling rate that is not attenuated. The default is 0.4536.
Y returns the resampled signal.
Time Stamps returns the time instance for each sample of every resampled signal in Y. The number of elements in Time Stamps is equal to the number of columns in Y. 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.
error out contains error information. This output provides standard error out functionality.

Resample (constant to variable, multi-channel)

anti-aliasing? specifies whether the input signal undergoes lowpass filtering when LabVIEW downsamples the signal. If anti-aliasing? is TRUE (default), this VI protects the resampled signal from aliasing. However, the computation requirements increase during resampling.
reset? controls the initialization of the internal states. The default is FALSE. The first time this VI runs or when reset? is TRUE, LabVIEW initializes the internal states to zero. When reset? is FALSE, LabVIEW initializes the internal states to the final states from the previous call to this instance of this VI. To process a large data sequence consisting of smaller blocks, set this control to TRUE for the first block and to FALSE for continuous filtering of all remaining blocks.
X contains the input signals for resampling. Each row of X contains an input signal. All the signals have the same length. The sampling interval of each signal in X is 1.
Time specifies the time instances for resampling in ascending order.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
FIR filter specifications specifies the minimum values this VI needs to specify the FIR filter.
alias rejection (dB) specifies the minimum attenuation level of signal components aliased after any resampling operation. If alias rejection (dB) is less than 48, this VI will use 48 instead. The default is 120.
normalized bandwidth specifies the fraction of the new sampling rate that is not attenuated. The default is 0.4536.
Y returns the resampled signals. Each row of Y contains a resampled signal that corresponds to the input signal in the same row of X. All the signals have the same length.
Time Stamps returns the time instance for each sample of every resampled signal in Y. The number of elements in Time Stamps is equal to the number of columns in Y. 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.
error out contains error information. This output provides standard error out functionality.

Resample (constant to variable, complex single-channel)

anti-aliasing? specifies whether the input signal undergoes lowpass filtering when LabVIEW downsamples the signal. If anti-aliasing? is TRUE (default), this VI protects the resampled signal from aliasing. However, the computation requirements increase during resampling.
reset? controls the initialization of the internal states. The default is FALSE. The first time this VI runs or when reset? is TRUE, LabVIEW initializes the internal states to zero. When reset? is FALSE, LabVIEW initializes the internal states to the final states from the previous call to this instance of this VI. To process a large data sequence consisting of smaller blocks, set this control to TRUE for the first block and to FALSE for continuous filtering of all remaining blocks.
X contains the complex input signal for resampling. The sampling interval of X is 1.
Time specifies the time instances for resampling in ascending order.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
FIR filter specifications specifies the minimum values this VI needs to specify the FIR filter.
alias rejection (dB) specifies the minimum attenuation level of signal components aliased after any resampling operation. If alias rejection (dB) is less than 48, this VI will use 48 instead. The default is 120.
normalized bandwidth specifies the fraction of the new sampling rate that is not attenuated. The default is 0.4536.
Y returns the complex resampled signal.
Time Stamps returns the time instance for each sample of every resampled signal in Y. The number of elements in Time Stamps is equal to the number of columns in Y. 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.
error out contains error information. This output provides standard error out functionality.

Resample (constant to variable, complex multi-channel)

anti-aliasing? specifies whether the input signal undergoes lowpass filtering when LabVIEW downsamples the signal. If anti-aliasing? is TRUE (default), this VI protects the resampled signal from aliasing. However, the computation requirements increase during resampling.
reset? controls the initialization of the internal states. The default is FALSE. The first time this VI runs or when reset? is TRUE, LabVIEW initializes the internal states to zero. When reset? is FALSE, LabVIEW initializes the internal states to the final states from the previous call to this instance of this VI. To process a large data sequence consisting of smaller blocks, set this control to TRUE for the first block and to FALSE for continuous filtering of all remaining blocks.
X contains the input real signals for resampling. Each row of X contains an input signal. All the signals have the same length. The sampling interval of each signal in X is 1.
Time specifies the time instances for resampling in ascending order.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
FIR filter specifications specifies the minimum values this VI needs to specify the FIR filter.
alias rejection (dB) specifies the minimum attenuation level of signal components aliased after any resampling operation. If alias rejection (dB) is less than 48, this VI will use 48 instead. The default is 120.
normalized bandwidth specifies the fraction of the new sampling rate that is not attenuated. The default is 0.4536.
Y returns the resampled signals. Each row of Y contains a resampled signal that corresponds to the input signal in the same row of X. All the signals have the same length.
Time Stamps returns the time instance for each sample of every resampled signal in Y. The number of elements in Time Stamps is equal to the number of columns in Y. 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.
error out contains error information. This output provides standard error out functionality.

Resample (constant to variable) Details

To calculate a resampled signal at time t, this VI needs several pieces of original signal data both before and after t. The FIR filter specifications determine the number of pieces of signal data before and after t that this VI needs. If t is close to the end of the input signal, this VI might not have enough data after t to calculate the resampled signal. However, if you use this VI in online applications in which you continuously acquire data, this VI 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.

Related Information

Passband Ripple and Stopband Attenuation