01-15-2008 08:02 PM
01-16-2008 03:40 PM
01-16-2008 06:22 PM
01-17-2008 07:12 PM
Hi Chris,
I noticed that the error number that you provided for your LabVIEW code is a timeout error. The text should say something like “Some or all of the samples requested have not yet been acquired.” This error can be seen in the Knowledge Base Document 2XQEAPQJ: Common NI-DAQmx Error Codes and Solutions: Codes -200000 to -20029...
The timeout is a parameter of the DAQmx read function. It specifies the amount of time in seconds to wait for the VI to read all the requested samples. The VI returns an error if the time allotted elapses before the read is complete. For input operations, the VI also returns any samples read before the time elapses.
The default timeout is 10 seconds. I believe that this is why, when you tell the DAQ Assistant to acquire more than ten seconds worth of data, you receive an error. You can increase the sample rate that you have specified so that all of the samples are acquired before 10 seconds have passed. Or, if you set timeout to -1, the VI waits indefinitely for the data samples to be returned. This might take care of your problem.
I hope that this helps, Mallori M.
01-21-2008 01:32 PM
Thanks Mallori. I really appreciate your help. Anyhow, initially I found that changing the timeout parameter didn't make any difference. It always returned an error at 10 seconds, regardless of whether the timeout parameter was -1, +1, or +100. But then I tried changing to continuous mode and that in combination with an increased timeout seems to have fixed the problem. This doesn't totally make sense to me, but at least it works.
-Chris