08-01-2011 09:11 AM
Hello,
I wonder how I can monitor the status of FIFO on a PLXe 6537 DIO card. I just need to know if there is space in FIFO or if it's full?
Is there any command or function to clear the FIFO? Or what kind of operation can clear it? Can I DAQmx Read clear FIFO?
Also I would think if I power cycle the chassis that 6537 is installed on, then the FIFO should be cleared anyway. Am I right?
Any help would be appreciated! Thanks
Rgds,
Harry
08-02-2011 10:44 AM
Harry,
I believe you can look at the current fifo status using the DAQmx Read property node with the stauts: Available Samples per channel property.
Regards,
Kyle Mozdzyn
Applications Engineering
National Instruments
08-02-2011 11:23 AM
Kyle,
Thanks for your reply! The reason we want to check the FIFO status is to make sure there is space in FIFO. The reason for that is, long story short, we wanted to use handshaking timing to acquire digital data using a 6537 HSDIO card. According to NI's handshaking timing diagram, the handshaking event line will jump to low as soon as there is space in FIFO. We've been having issues with handshaking timing as we found the event line always stay at high even without any data collection. So want to make sure there IS some space in FIFO.
So when I insert DAQmx Read property node RIGHT AFTER the start of Digital Read.vi, I got a "1" as the value of Available Samples per channel property. Does that make sense? It means there are plenty of space in FIFO, is it right? Thanks
Harry
08-03-2011 07:40 PM
Harry,
What handshaking protocol are you trying to use, and I think we should focus more on getting that working properly than a workaround that may or may not be ideal.
Regards,
Kyle Mozdzyn
Applications Engineering
National Instruments