Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Frequent point sampling

Solved!
Go to solution

I have a 6008, accessed by DAQmx.

I am producing a custom feedback loop. Since the analog output only has a sample rate of 150Hz, that's the maximum overall rate of the feedback loop.

I am trying to figure out how to do my analog reads.

I've ruled out finite samples (if I leave it in place, I get the same values over and over; if I reset it, it's way too slow)


With continuous samples, if I take a single data point at a time, I am not synchronized - I don't want to read off the end of the buffer, I want the most recent.

 

So I try N sample read, with -1 as the number of samples to take, which help says is the way to grab the whole buffer.

 

I get an error -200279, which says I'm trying to read data that doesn't exist anymore because it's been overwritten. But that seems like it ought to be nonsense - I just said, give me what you got. Why bother overwriting if you're forevermore going to just refuse to hand out any more data and call it an error, because you started overwriting? This is especially galling since I really only care about the most recent element (or the last few for averaging purposes)

0 Kudos
Message 1 of 3
(3,165 Views)
Solution
Accepted by topic author lsomers

There are lot of topics discussed around this error (-200279).

Have a look here and try to understand why exactly you're getting this error. Can you also share your code so that one can have a close look and understand what is causing the error, specifically in your code.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


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

Aha. The property node solution in your link was the ticket. Knew there had to be something like that buried somewhere in there.

0 Kudos
Message 3 of 3
(3,140 Views)