Error -20580 With NI LabVIEW Modulation Toolkit

Updated Oct 30, 2023

Reported In

Software

  • LabVIEW Modulation Toolkit

Issue Details

When trying to flush the buffers of MT Resample (Complex Cluster) VI in continuous operation, I see the following error.
Error -20580 occurred at an unidentified location
Possible reason(s):
Operation with reset=TRUE after setting flush=TRUE. Setting flush=TRUE destroys the internal states of the modulation, demodulation, and signal processing algorithms and you cannot perform continuous processing after setting flush=TRUE. Make sure you set reset=TRUE on the next iteration after setting flush=TRUE to reset the internal states of the algorithms.


This error is shown in the following dialog box.
image.png

Solution

The above error is because of incorrect sequential use of ‘reset?’ and ‘flush buffers?’ controls. As also explained in the above error description, the following sequence should be followed.
  1. Set the ‘flush buffers?’ to 'True' in the last iteration of continuous mode.
  2. Set the ‘reset’ control to 'True' in the first iteration of the new batch of samples. Not setting the reset to 'True' in the following iteration after flushing the buffers leads to this error.

Additional Information

MT Resample (Complex Cluster) VI is helpful for decimating or interpolating the complex IQ data to match specific sampling frequencies. The VI must be flushed and reset to get rid of any data stuck in its FIR filter buffers before the next batch of samples. If the reset and buffer flush is not performed correctly, the output might not be correct because of residual data from the previous batch. Generally, flushing of buffer and a reset are performed for every single shot operation or during the last iteration of continuous operation.