Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

What would the effect of setting the DMA FIFO depth before each read?

Solved!
Go to solution

I am using a PXI-7813R FPGA board using a 3rd party API. I have been having a few issues while reading. I looked into their API code (LabVIEW) and realized that they have been setting DMA FIFO depth before each read from the FIFO. This apparently does not cause a catastrphic failure as the issues I have been observing are only transient in nature.

What kind of problems if any can this kind of operation cause or will it be ignored as the FIFO is already running?

 

Thanks....

0 Kudos
Message 1 of 4
(3,537 Views)
Solution
Accepted by mgerceker

mgerceker,

   According to the help file this should be okay to do although I could see it being an issue if it is not properly set before running an operation. What kind of symptoms are you seeing?

 

Regards from Austin,

 

Ben J.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(3,522 Views)

I have been seing extra/missing data points during reads, which may be due to many similar unfortunate programming issues. If I am not mistaken the right way to do this would be setting it up when I start the data collection procress after flushing the buffer and then leave it alone for the remainder of the process.

However I think the original programmer may have done this on purpose to keep the FIFO clean after each read to cover up other issues, which is very alarming. (Clearing the FIFO after each read in a continuous data collection routine does not seem to be very appropriate.)

 

I'd appreciate any other comments you may have on the issue.

 

Thanks.

 

0 Kudos
Message 3 of 4
(3,518 Views)

mgerceker,

   There are a lot of variables in situations like these. It sounds like you have found a good resolution but if something like this comes up again any time you can post up a screenshot of the code, the better the community can help you out.

 

Regards from Austin, TX,

Ben J.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(3,503 Views)