LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP problem

I have a vi that communicates with other software via TCP (LV6.1).  As the program runs, it will, when needed, open a port, communicate data, close the port. It mostly runs without error, opening, communicating and closing ports up to 50-100 times succesfully. Every once in awhile though, without any notifying error, communication will fail across the port. Once this happens, TCP fails forever after that.  The only way to "reset" things is to exit labview and restart it. What is Labview doing on exit that "resets" the TCP? Can that be done programmatically?
0 Kudos
Message 1 of 2
(2,972 Views)
What is the error cluster returning when you fail to connect to the host on the 51st / 101st time?

If you are connecting and disconnecting at a high rate, the remote(server) end may be running out of available ports; LabVIEW will typically return error 60. It might not be LabVIEW, but the OS limiting your ability to connect.


NI Forum post: Limit opening TCP/IP connections
Microsoft web site: Avoiding TCP Port Exhaustion



Message Edited by Phillip Brooks on 04-06-2007 10:02 AM

Message 2 of 2
(2,950 Views)