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,683 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,591 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

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
Message 3 of 3
(3,553 Views)