LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Linux failing to open TCP/IP sockets

We have an elusive LabVIEW Linux problem (LabVIEW 2011). A client application that opens many TCP/IP sockets often fails to open some of the connections. The apparent failure is timeout (error code 56). The timeout period can be set short or very long, this makes no difference. We are opening in the region of 30-100 socket connections.

 

We have used network monitoring tools and do not see heavy CPU/network loading or network congestion when the problems occur. Its clearly the client end that is suffering from this problem - we can use telnet or other non-LabVIEW software to successfully make connections to the server.

 

The error is intermittent and its not obvious what causes it to happen. Sometimes the problem can be persistent but it is usually cleared by closing down and restarting the LabVIEW session from scratch. The next time it will open all the required connections. The error occurs only when using the LabVIEW development system - it never occurs if we run it as an executable LabVIEW application.

 

It looks like some sort of TCP/IP resource problem - but the Linux TCP/IP OS tuning parameters appear very adequate. The fact that restarting the LabVIEW development session clears the problem points to the resource issue being inside LabVIEW rather than the OS.

 

Has anyone else seen anything like this?

 

 

0 Kudos
Message 1 of 4
(3,164 Views)

Hello PipT,

 

I haven't seen this happen before.

Can you provide some example code about how your opening your TCP/IP Sockets?

 

Are you running the executable from the Development System or from a "deployment system" (with only labVIEW Run-Time Engine)?

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 2 of 4
(3,150 Views)

We are running the executable stand-alone with the Run-time engine, I didn't even know it was possible to run a LabVIEW exectuable from the Development system.

 

it would be good to provide a simplified example which displays this behaviour, currently its a small part of a large and complex system,

 

Philip

0 Kudos
Message 3 of 4
(3,145 Views)

Hello Philip,

 

So your application itself is running on another pc?

Are there major differences between both pc's?

 

Is it possible to create such a simplified example that reproduces the issue?

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 4 of 4
(3,131 Views)