LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

continuous read but only use latest measurepoints without risk of filling buffer

Solved!
Go to solution

I want to continuously read from two channels, do some calculations to change settings of an output channel and repeat that in a loop. But I only want to use the latest N samples measured with a DAQ card (6111 or 6346). As the reading plus calculation tends to be slower than the hardware aquisiton, I risk filling up the buffer (and also getting an increasing time lag). Ho can I create a loop, that reads only the latest samples of two channels without having to care about filling up any buffer?

0 Kudos
Message 1 of 3
(624 Views)
Solution
Accepted by topic author DPM@ch

Here's a snippet that illustrates how to set that up, along with several explanatory comments.

 

 

-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 2 of 3
(611 Views)

Thanks, that's exactly what I was looking for.

0 Kudos
Message 3 of 3
(599 Views)