02-11-2008 04:48 AM
Hi,
I am using labview with the DAQPad-6016.
I configured the DAQ assistant to acquire 6 analog signals in continuous sampling mode.
I set the DAQ assistant parameters as follows:
I have been going through the forum's massages and was left with a few questions.
I left my program running for ten hours and found it stopped when I returned. When trying to restart it I received the 200279 error. I had to restart the computer and the DAQ device to successfully restart the program.
When using the DAQmx read property node, I discovered that "samples available per channel" values settle after an initial short period to a range of 100 to 600. The buffer size stays constant on 10,000.
From reading in these forums I understood that it is recommended to set the read samples value to 10% of the value of the rate.
In my application I wish to average the samples from the six channels over a period of 1 second. This conflicts with the mentioned recommendation.
More than that, I placed the DAQ assistant inside of a timed loop and set the loop's rate to 1000ms (run every 1 second). Is there a fault in the logic of doing this?
To clarify my questions:
I hope my questions are clear enough, Thank you,
Ron
02-12-2008 05:36 PM
Hi Ron,
There are a few things that may need clarification.
When acquiring multiple channels of data, the number of samples to read and the sample rate are per channel. With your settings, you are acquiring 6000 samples per channel at a rate of 6000 samples per second which results in an overall acquisition of 36000 total samples per second if you have 6 channels.
For the application that you are talking about, I would recommend using the DAQmx API instead of the DAQ Assistant. Using these DAQmx functions will give you more control over details such as your buffer. A good place to begin if you are unfamiliar with the API is by right clicking on your DAQ Assistant and selecting Generate Code. This will take your current configuration and convert it into DAQmx functions.
To answer your questions more specifically:
Here are a few links which may help you get started using the DAQmx API:
Complete Data Acquisition Tutorial
Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications
Regards,
Kent