Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

In Visa Tcpip, can the number of bytes available to read be queried?

I would like to be able to avoid calling the read function until a certain number of bytes become available.
0 Kudos
Message 1 of 2
(3,162 Views)
Hello-

There doesn't seem to be an attribute containing this information. However, enabling a callback on the VI_EVENT_IO_COMPLETION event can probably do the desired task.

Randy Solomonson
Application Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,162 Views)