Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get rid of the "time out" when using DAQ AI in the example program

I try an example file called "AcqVoltageSamples_IntClkDigRef" (Visual C++ .NET). It works great. However, if the program has not recieved the data, it sent out a timeout message. How to get rid of the "time out"? I cannot find anywhere in the code. Is this a property I have to reset somewhere else?

Thank you,
Yajai.
0 Kudos
Message 1 of 3
(2,535 Views)
Hello Yajai,

The example program will use the default value for timeout, 10 seconds. To change this, you will have to set the Stream.Timeout value. I inserted this function into the example and set it equal to -1, and the program will wait indefinitely for the trigger signal without timing out. Please see the attached image to how this was implemented.

I hope this help. Let me know if you have any further questions.

Regards,
Sean C.
Message 2 of 3
(2,524 Views)
Thank you, Sean. It worked!!
Yajai
0 Kudos
Message 3 of 3
(2,515 Views)