Rational Resampler
- Updated2025-01-28
- 5 minute(s) read
Provides a rational resampling filter, which updates the input sample rate by an L/M factor where L is an interpolation factor and M is a decimation factor.
Rational resampling is the process of converting the sample rate of a signal to another sample rate that differs from the original sample rate by a rational factor of L/M, where both L and M are integer values. When L=1 and M>1, the resampling is an integer decimation, and when L>1 and M=1, the resampling is an integer interpolation.
Rational resampling is useful for interfacing with digital signal processing (DSP) systems that operate at different sample rates. By choosing L and M properly, you can approximate any desired sample rate change ratio.

Dialog Box Options
| Parameter | Description |
|---|---|
| Filter Parameters | Contains the following options:
|
| Implementation | Contains the following options:
|
| Filter Response | Displays the actual magnitude response of the filter. |
| Execution Mode | Contains the following options:
|
| Configuration Feedback | Displays information about how this Express VI executes. This information is based on the configuration options you specify. LabVIEW displays this information only if you select Outside single-cycle Timed Loop. |
Inputs/Outputs
input data
—
Specifies the data you want to filter. Resets the state of the internal resampling filter.Outside the single-cycle Timed Loop, the Express VI restarts on the same call that reset is TRUE. Inside the single-cycle Timed Loop, the Express VI restarts on the first call that reset is deasserted after reset is TRUE. Additionally, the handshaking signals behave as follows during the cycles where reset is asserted:
Specifies whether the next data point has arrived for processing. Wire the output valid output of an upstream node to this input to transfer data from the upstream node to this node. To display this handshaking terminal, select Inside single-cycle Timed Loop in the configuration dialog box. Specifies whether downstream nodes are ready for this Express VI to return a new value. The default is TRUE. Use a Feedback Node to wire ready for input of a downstream node to ready for output of the current node. Note If ready for output is FALSE during a given cycle, output valid returns FALSE during that cycle. To display ready for output, select Inside single-cycle Timed Loop in the configuration dialog box.
output data
—
Returns the filtered data.
output valid
—
Returns TRUE if this node has computed a result that downstream nodes can use. Wire this output to the input valid input of a downstream node to transfer data from the node to the downstream node.To display output valid, select Inside single-cycle Timed Loop in the configuration box. Returns TRUE if this node is ready to accept new input data. Use a Feedback Node to wire ready for input to ready for output of an upstream node. Note If ready for input is FALSE during a given cycle, LabVIEW discards any data that other nodes send to this Express VI during the following cycle. LabVIEW discards this data even if input valid is TRUE during the following cycle.
To display ready for input, select Inside single-cycle Timed Loop in the configuration dialog box.
channel index
—
Indicates the index of the channel corresponding to the last valid output data. |
input data
—
output data
—
output valid
—
channel index
—