Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69440

TCP Timeout Problem

$
0
0

Hi,

 

I've got a really annoying problem currently while trying to initialise a TCP connection as a VISA resource.

 

If I connect a network analyser to my laptop via a LAN cable, the VISA resource is found and if I try to communicate with it over this connection, it works fine.

 

The problem occurs if I leave it for several minutes without running any code. If I try to run any code to control the analyser, I get a timeout error. If I unplug the LAN cable and re-plug it in, the connection re-initialises itself and it'll work again until I leave it for several minutes.

 

So far, I've tried turning off power saving mode on both devices. My logic is to send null packets to the analyser to keep the connection alive. Does this seem logical, and if so is there a way I can programmatically restart the TCP connection beforehand so that the connection will always be there?

 

Many thanks in advance!

Charlie

 


Viewing all articles
Browse latest Browse all 69440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>