Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx read without waiting for buffer refill

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

0 Kudos
Message 1 of 3
(3,945 Views)

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.

 

http://forums.ni.com/t5/LabVIEW/When-to-use-lossy-Enqueue-Element-vs-Regular-Enqueue-non-lossy/td-p/...

 

0 Kudos
Message 2 of 3
(3,853 Views)

Correction, it definitely IS possible to do this, I've done it often.

 

See this thread for a snippet that shows how.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
Message 3 of 3
(3,815 Views)