07-24-2008 09:32 AM
07-24-2008 09:44 AM
Have a look at this Knowledge Base article "Error -200278 at DAQmx Read"
Although not necessarily applicable, you may want to look at following example program in the Example Code Library on ni.com.
As well as this article NI-DAQmx: Continuous Analog Input with Both Start and Reference (Stop) Triggers
R
07-24-2008 12:01 PM
07-25-2008 11:08 AM
Hi bjohnson,
The reason you are getting that error is because the buffer is being filled quicker than it is being read, therefore you are getting a buffer overflow. To avoid this you need to either increase the number of samples to read or decrease the sampling frequency. I noticed that you had the task configured to read only 1 sample, but where using a n sample read function. If you are expecting to read multiple samples each time the read function is called you should increase the samples to read in the task configuration.
Another suggestion, is to create a producer consumer loop so that your acquisition timing is not limited by your time consuming PID calculations. For more information about producer consumer loops read this article:
http://zone.ni.com/devzone/cda/tut/p/id/3023
07-25-2008 01:27 PM
07-25-2008 01:47 PM
07-25-2008 02:39 PM
07-25-2008 03:38 PM
07-28-2008 12:39 PM
07-29-2008 10:37 AM