10-23-2006 09:22 AM
10-25-2006 05:10 AM
If you configure an analog trigger for your task, and call DAQmxStartTask, this should not lock your callback, as this funcxtion does not wait until the trigger occured and the data is acquired. So you should ber able to call other functions without any problems. The Read fucntion (DAQmxReadAnalogF64 for example) will lock your program, as it will wait until either the amount of data you want to read is avaiable in the buffer, or a timeout occurs.
I tried this out with the standrad example you can find under cvi80\samples\daqmx\analogin\measurevoltage\acq-int clk-analog start
Hope this helps!
10-25-2006 05:44 AM
Hi Andre!
Of course you're right! That is my mistake. I found out actually by myself that I had poseted a stupid question. Indeed only the read call is blocking. That is ok since I just need to start the acquisition, then apply my trigger, and then wait for the read call to return or time out. I had combined the call the start acquisition and read data that is why that was not working before.
Thanks for your answer.
Fabrice