Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA TCP/IP open connection does not work on localhost when network is disconected (VISA bug?)

Hi,

I have application (server) listening on TCP/IP and second application (LabVIEW client) connecting to it by VISA from local host (using raw socket). Everything works fine, until I disconnect all network cables (ie. there is no network connection in Windows), after that VISA open will return error -1073807343 (resource not found). The server is running fine, when I try tcp scoket from LV or another app, it will connect.

 

Is it some VISA bug/feature or Windows problem? Is there way how to avoid this?

 

I'm using VISA 18.0, Tried on two PC so far, my laptop (W10) and NI PXIe-1062Q (W7).

 

I'm including simple example demonstrating this issue. To make it (not) work unplug network cable and disable wifi, after that the visa client will not work.

 

Download All
0 Kudos
Message 1 of 2
(3,799 Views)

I found workaround, using 127.0.0.1 instead localhost seems to be working.

0 Kudos
Message 2 of 2
(3,762 Views)