04-24-2006 02:39 PM
04-24-2006 03:02 PM
04-24-2006 03:14 PM - edited 04-24-2006 03:14 PM
Message Edited by esa_paranoid on 04-24-2006 03:14 PM
04-24-2006 03:14 PM - edited 04-24-2006 03:14 PM
Message Edited by BrianPack on 04-24-2006 03:15 PM
04-24-2006 03:40 PM
04-24-2006 03:44 PM
04-24-2006 04:19 PM
HI hellolv-
You should also move the DAQmx Start outside (i.e. before entering) the While loop. I would also suggest switching the DAQmx Read from a single point instance to a multiple point instance. For example, it is much more efficient to read using the single channel>>multiple sample version twice per second with samples to read=250 than to read a single point 500 times per second.
You can be certain that the DAQ board is acquiring at ~500Hz because you set up a hardware-timed task, but you can't be sure that your loop can run 500 times per second to return the data from the buffer at 500 samples per second.
Hopefully this helps-