From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 63 of TCP open

Solved!
Go to solution

Hi,

I'm trying to connect the an instrument using TCP/IP protocol. This instrument is server and my PC is client according the manual. The simple code is attached below. But the error 63 occurs in TCP open, saying "The network connection was refused by the server."   

 

However, in the NI VISA I/O test panel, the communication with the server is fine. I can get the correct reply from it. The IP address/portal number are correct and I can ping the server. Do you know what is wrong here? 

 

Thank you in advance. 

0 Kudos
Message 1 of 2
(2,028 Views)
Solution
Accepted by topic author Y.Chang

It turns out I should use VISA open instead of TCP open connection while the VISA resource name is the one in NI VISA. I was misled by the TCP/IP protocol in the manual. Problem is solved now. 

0 Kudos
Message 2 of 2
(1,996 Views)