09-30-2009 04:10 AM
Hello,
I am using a NI USB 6251 device to sample a analogue signal with pretriggered sample with a frequency up to 180kHz. This implies the use of a reference trigger and consequently a finite sample acquisition.
And I want to read the buffer while the task is running in order to process data in real time in a while loop. Nevertheless the finite sample acquisition might prevent any reading of the buffer until the task is completly done. How should I set up parameters to make an acquisition that acts like a continuous one with pretriggered samples ?
I have joined the VI to explain the problem.
Note:
There is property node of "Daqmx Read" called "ReadAllAvailSamp"that allow reading even if the buffer is not fully filled but only if the number of sample to be read is not specified ("-1"). Maybe there is such property that works in case of a specified number ?
I am looking forward to hearing from anyone.
Thomas D.
09-30-2009 10:06 AM
10-01-2009 02:05 AM
Yes you are right, we can read sample while a task is running in finite sample. But I notice that in case of a reference trigger task, we can read the buffer only when the task is done (when all sample specified in "Sample per channel" of the "DAQmx Sample clock" VI has been sampled) whereas in case of a start trigger task we can read the buffer when ever we call the VI "DAQmx Read" to get the amout of sample specified in "Number of sample per channel" of this VI.
Is there any way to read the buffer during a reference trigger task ?
Thanks