09-04-2005 02:18 AM
09-06-2005 06:06 PM
Hello naru,
If you use a DAQmx Read with no task that has been started, it will just go out and read however many samples you have specified, not from the buffer because you have not configured a buffer to read from.
If you set up a continuous acquisition, you will not lose data because the while loop iteration time is not exact. The data will be acquired with the timing you specify and then put in the buffer continuously and each loop iteration will read the number of samples you specify without skipping any. If you were to stop and start the task inside the while loop each time it iterated, then you would probably lose some data.
The start task VI does start the acquisition. If you have configured a trigger, then no data will be acquired until the start task VI has executed and the trigger has been received.
If you have a continuous acquisition that you have stopped by stopping the while loop and then use a DAQmx Read VI outside of the while loop then you can read the remaining samples (if any exist) in the buffer. However, if you stop or clear the task using the DAQmx Stop or Clear Task VIs then you will not be able to read the remaining samples.
Hope this helps,
Laura
09-07-2005 12:31 AM
Thanks
I understood that the reading rate of the samples from the buffer is dependent the dll used for the same and on the rate of execution of while loop so figured out that it is required to start a task before reading also starting a task does not means starting the acquisition always.
Thank you once again,
Naru
09-07-2005 03:07 PM
Hi naru,
Glad I could help. Let me know if there is anything else that needs cleared up.
Thanks,
Laura