LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA timeout, how to deselect and wait and wait...

Hello All

Is there a way to deselect (set to infinity) the time out of the serial port VISA?

I know I can use loops, etc. but I am interested especially in this solution.

Thanks a lot.
Pawel
0 Kudos
Message 1 of 5
(3,114 Views)
I haven't tried this with VISA serial ports, but you might experiment with setting the timeout to either 0 or FFFFFFFF. Sometimes those are used for "infinite."

Les Hammer
0 Kudos
Message 2 of 5
(3,114 Views)
Hello Les
I have tried 0, it does wait 0 ms.
I do not think I can try FFFFFFFF, because given in ms will wait 1.5 month :-). I do not have the time to play with this :-).

Thanks anyway.
Pawel
0 Kudos
Message 3 of 5
(3,114 Views)
Pawel:

Yes, 0xFFFFFFFF is the timeout for infinite. It is a special value and should not time out after 1.5 months. (As you had noticed, 0 does mean immediate.)

Dan Mondrik
National Instruments
0 Kudos
Message 4 of 5
(3,114 Views)
Hello Dan

Thank you very much
Pawel
0 Kudos
Message 5 of 5
(3,114 Views)