Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

daqmx analog read timeout .net

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

0 Kudos
Message 1 of 4
(3,662 Views)

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....

0 Kudos
Message 2 of 4
(3,632 Views)

So has your problem been solved?

Applications Engineer
National Instruments
0 Kudos
Message 3 of 4
(3,623 Views)

Yes. Thank you.

0 Kudos
Message 4 of 4
(3,615 Views)