03-17-2011 02:13 PM
I am trying to sycnronize 3 seperate tasks using the analog input start trigger of the master task, which seems to work fine when I start the master task manually. When I try to set up a start trigger for the master task and this tirgger is delayed I end up getting errors saying not enough samples have been collected and I am trying to read samples.... I assume the issue is my master task timing out and calling the callback function with no samples collected.
I want to try to make the master task wait indefinitely by setting the read timeout (-1), however I could not figure out how to do it in C# .Net....
I have done it using LabVIEW before, but this project needs to be in C#. If anyone can give me a few pointers on this I'd really appreciate it.
Thanks.
Mehmet
03-17-2011 08:59 PM
The timeout option for DAq was not available through the Task object... I used the underlying stream to set the timeout manually and it worked....
03-18-2011 02:27 PM
So has your problem been solved?
03-18-2011 07:03 PM
Yes. Thank you.