03-07-2011 02:37 PM
I am using the IMAQ C library, and am using a ring buffer to acquire images continuously. I am creating a function for storing image data to the disk until you call the function to stop the storage. At that point, I'd like to see how many unprocessed frames are currently in the ring buffer, and store that many more frames before closing the file. I do not want to stop acquisition of frames. Is there a way to check the number of filled image buffers in the ring?
03-07-2011 10:32 PM
In LabVIEW, there is a property node called Last Valid Buffer, which gives you the index of the last image acquired into the buffer. This sounds like what you want. I assume there is an equivalent value available in C.
Bruce
03-08-2011 09:21 AM
Ah - It looks like "imgSessionStatus" returns the value of "the last available buffer list index". I was unsure of what this meant, but it sounds like what you've just described. Thanks!