Fifo.Configure Method Does Not Empty the FIFO buffer

Updated Feb 23, 2018

Reported In

Hardware

  • PXIe-7961
  • PXIe-7965

Software

  • LabVIEW FPGA Module

Issue Details

I have an FPGA on a cRIO or FlexRIO and I am using a DMA FIFO to communicate with it. At the start of the program on the Host computer, I am using the FIFO.Configure method to the set the buffer depth of the FIFO.
According to the help documentation it should also empty both the DMA and the FIFO buffer, but when I start my program I can still see data from my previous measurement. Why does this happen and how can I resolve it?

Solution

The FIFO.Configure method only empties the DMA and FIFO buffer if the specified depth is different to the previously specified depth, i.e. if the buffer depth is actually changing.

If you want to make sure that the buffers are cleared, you need to call a FIFO.Stop method after the FIFO.Configure method:


 

WAS THIS ARTICLE HELPFUL?

Not Helpful