10-17-2014 10:58 AM
I have what I believe is a simple question. I'm running DAQmx with the following settings:
Acquisition Mode - Countinuous Samples
Samples to Read - 1k
Rate (Hz) - 10k
First of all, my understanding is that under continuous samples it never stops reading data and that the 'samples to read' box controls how many readings it averages together to create a single datapoint. If this is incorrect, please clarify as my question may be void.
My question is; with my settings, is it outputting 10k datapoints per second (collected from 10,000,000 readings per second)? Or is it taking 10,000 readings and then averaging 1,000 of them at a time and outputting 10 datapoints per second?
Solved! Go to Solution.
10-17-2014 11:22 AM
10-17-2014 01:39 PM
Yeah, I realized as I poked around that the averaging is being done later in the program. I see from other posts that the number of samples is a buffer size but I'm not sure how to tell how often the buffer is emptied. Is there some sort of command/loop/timer that I should be looking for?
....In case you couldn't tell, I'm trying to understand an existing program.
10-17-2014 08:08 PM
10-20-2014 09:06 AM - edited 10-20-2014 09:06 AM
Hidden how? Is it a setting I can view/change somewhere or is it completely inaccessible? If the latter, how can I be certain that I am collecting it fast enough (or conversely, that my buffer is big enough)?
10-20-2014 09:35 AM
10-20-2014 10:00 AM - edited 10-20-2014 10:02 AM
I'm not getting any error messages. We've been having two issues: One is noise in our readings (so I wanted to determine our reading resolution). The other is that for some reason the DAQ assistant would stop running. The rest of the code was still responding and updating, but the DAQ stopped collecting/sending info. No error messages that I've seen.
I noticed the DAQ assitant was off to the side on its own. I thought perhaps it was stopping at some point while the rest kept going because their loops hadn't yet been satisfied. I don't know why it would do this as there's no commands/timers telling it to stop (that I am aware of). But just to see if it made a difference, I put everything (including the DAQ) inside a continuous loop. I haven't had a test long enough to see if it solved anything yet.
10-20-2014 10:06 AM
Please attach your code or a picture of block diagram.
10-20-2014 10:19 AM
@JoeWork wrote:
Please attach your code or a picture of block diagram.
There's no point in posting a picture of a DAQ Assistant or Express VI since we can't see how they're configured.
(It's really always better to post the actual VI unless you absolutely can't for some reason.)
10-20-2014 12:30 PM
Here's the code I've been looking at.