rfsg_Resample and Write (Complex Input) VI
- Updated2025-10-14
- 4 minute(s) read
Resamples the complex waveform to the new I/Q rate and writes it to NI-RFSG. Given a phase continuous complex waveform, this VI preserves the phase continuity while resampling. This VI also optimizes memory usage by resampling and writing in blocks of 100k samples and by deallocating unused memory after the VI executes.

Inputs/Outputs
waveform name
—
waveform name specifies the name used to store the waveform. This string is case-insensitive. Example: "waveform::waveform0"
new IQ rate (S/s)
—
new IQ rate specifies the new I/Q rate at which to resample.
instrument handle in
—
instrument handle in identifies your instrument session. instrument handle in is obtained from either the niRFSG Initialize VI or the niRFSG Initialize With Options VI.
complex waveform
—
complex waveform specifies the complex waveform to resample.
error in
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
repeat waveform until tolerance met
—
repeat waveform until tolerance met allows the resampled waveform to contain multiple copies of the original waveform. This parameter increases the size of the resampled waveform and reduces the I/Q rate error introduced when the resample waveform size is coerced to a multiple of the quantum.
IQ rate tolerance (ppm)
—
IQ rate tolerance specifies how much to limit the adjusted I/Q rate over the original I/Q rate, in parts per million.
instrument handle out
—
instrument handle out passes a reference to your instrument session to the next VI. instrument handle out is obtained from the niRFSG Initialize VI or the niRFSG Initialize With Options VI.
adjusted IQ rate / original IQ rate
—
adjusted IQ rate / original IQ rate indicates how much the frequency content or the symbol rate of the original waveform changed. Before resampling the waveform, the original waveform I/Q rate is adjusted so that the resampled waveform size is a multiple of the quantum. The resampled waveform I/Q rate is calculated with the following equation: Resampled Waveform I/Q Rate = (Adjusted I/Q Rate / Original I/Q Rate) * Original Symbol Rate
error out
—
error out contains error information. This output provides standard error out functionality. |
waveform name
—
new IQ rate (S/s)
—
instrument handle in
—
complex waveform
—
Y
—
error in
—
repeat waveform until tolerance met
—
instrument handle out
—
adjusted IQ rate / original IQ rate
—
error out
—