07-30-2013 04:53 PM
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)
Solved! Go to Solution.
07-30-2013 08:44 PM
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.
07-31-2013 08:24 AM
Aha. The property node solution in your link was the ticket. Knew there had to be something like that buried somewhere in there.