02-23-2016 03:30 AM
Hello,
I am using the continous acquisition mode and want to read at any time the 50 latest values out of the buffer without waiting for refilling.
I have found no setting to do this, the DAQmx read function is always waiting until the buffer is filled with the next 50 values.
Of course I could set the buffersize to 1 and read every single value, but that would be very time consuming.
Best regards,
Metin
03-03-2016 07:51 AM
Hi MTNBZBG,
it is not possible to read the buffer without waiting for refilling.
If you have selected a buffersize of 50 do you have to wait for refill.
But you have the choice to use a Lossy Enqueue function.
So you have the chance to read just the last 50 elements out of the Queue.
03-04-2016 02:41 PM
Correction, it definitely IS possible to do this, I've done it often.
See this thread for a snippet that shows how.
-Kevin P