Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

when does visa read function return?

Hi all

Am using Visa read function in labview 7.1 for reading data from a serial device, i have configured the read function to read synchronously, and have connectd 100 bytes to read from the buffer, but if i specify a termination character, i guess the function returns as soon as the termination character is received and does not wait till 100 chracter is recived, also this is same if i use asynchronous read. Am i right?

Thanx in advance
Arun
0 Kudos
Message 1 of 2
(2,974 Views)
That is correct. By specifying a termination character, VISA Read will keep reading until either the byte count is reached or the termination character is received. If you need to read bytes past the termination character, you can disable term character detection and first check with VISA Bytes at Serial Port to see how many bytes are in the buffer and read that number.
0 Kudos
Message 2 of 2
(2,969 Views)