Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Read serial port with overtime

I'm using the "read serial port.vi" file. Is it possible try to read one byte from serial port during a concrete time? Is it possible set overtime for serial port applications? I know that the visa applications does it, but I cannot use it.
Thank you
0 Kudos
Message 1 of 2
(3,355 Views)
Hi,

There's no way to set a timeout value in the read serial port.vi. Any timeout control has to be programmed in your vi. Most applications use the Bytes at serial port.vi to determine if a call to read serial port is needed.

I'm attaching an old example vi I found that uses these two vis to create a high level read function with timeout and termination character recognition.

Hope this helps.
Message 2 of 2
(3,355 Views)