Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232 using visa library. Receive data but NI SPY tells me that a time out ocurred.

Using NI MAX, going to the RS232 interface, validating the interface OK.
Opening the VISA TEST PANEL sending commands OK.
Receiving the data, OK after the specified timeout.  But because it needs to time-out before it sends the data, I get in the RETURN STATUS the following:BFFF0015
What am I doing wrong?
 
AJ.
0 Kudos
Message 1 of 3
(3,261 Views)
With the VISA Configure Serial Port, do you have the Enable Termination Char unwired or have a True wired to it? If either, that tells VISA to expect a termination character with every read. The VISA Read will not terminate until the number of bytes specified is read, the termination character is detected, or the timeout is reached. The default termination character is a LF character (\n or xA). Check if this is what is being sent if you want to stop the read with a term character. If no termination character is being sent, use VISA Bytes at Serial Port to dtermine exactly how many bytes are available for reading and wire this value to the byte count input of VISA Read.
Message 2 of 3
(3,255 Views)

Dennis

You are the best.  It works now.  I had to change the from 0x10 to 0x0D the termination character.

Thank you very much.

Happy programming  Smiley Happy

AJ.

0 Kudos
Message 3 of 3
(3,250 Views)