LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get the total number of TCP open socket on a PXI RT

Hi!
I'm using Labview 7.1 on a PXI 8146RT
I'm wondering whether too many TCP open sockets(about 15) can cause system hangups
Is there a way to get the number of open TCP socket on the PXI? It would be useful to check for proper socket closing and releasing...

Thank You!
0 Kudos
Message 1 of 6
(3,930 Views)
This is a known issue. A while back, I posted the solution here.

Good luck,

Jim
Message 2 of 6
(3,931 Views)
Jim, thanks a lot for your answer!
I will adjust the 'hidden' parameter! I it will help

anyway: how to get the actual number of open sockets?

scalare
0 Kudos
Message 3 of 6
(3,901 Views)

@Jim Kring wrote:
This is a known issue. A while back, I posted the solution here.

Good luck,

Jim


I'm not sure how you would know how many sockets are open. You would probably have to make calls to WinAPI or WinSock DLLs in the RT system -- but that's just a guess.

-Jim
0 Kudos
Message 4 of 6
(3,895 Views)

Hi, does any one have an update on that?  I'm having the same problem, I'd like to know the number of sockets that are open on an RT (not running Windows but LabVIEW RT with Pharlap).  Our system is quite critical - it controls trains.  I use to get the error 11 before I add Max_Sockets=64.  I want to be sure that this won't happen anymore, that's why I'd like to keep an eye on the number of socket open.

Thanks,

Patrick.

0 Kudos
Message 5 of 6
(3,670 Views)

Hi Patrick,

I have looked into this, and there does not appear to be a method of determining the total number of TCP open sockets on the Real Time Target.  I have sifted through the TCP VI's as well as property nodes in search of a method of doing this, but there does not seem to be anything.  I also searched for a TCP scanner that can be used on the Pharlap OS, and there does not seem to be anything along those lines either.  There may be an indirect method of accomplishing this, but I am not aware of such a method right now.

My best recommendation is to set your Max_Sockets = 100, this should give you approximately 85 connections.  I believe there are usually approximately 15-20 connections open at a given time.

Please do not hesitate to let me know if there is anything I can help you with.  Best of luck on your application, and have a great day!!

Regards,
Ching P.
DAQ and Academic Hardware R&D
National Instruments
0 Kudos
Message 6 of 6
(3,615 Views)