LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple TCP servers in same PC simultaneously with different IP addresses

Hello,

 

I have a requirement to create multiple TCP servers in same PC with different IP addresses, simultaneously. My requirement is to have 250 severs. I tried with 2 but at that time itself CPU usage for LabVIEW went to 100%. How to optimize it? Can some one help?

 

Thanks in advance,

Sooraj

0 Kudos
Message 1 of 3
(1,972 Views)

You will need to show your code. The issue is definitely something in your code itself. My guess would be that you have greedy loops. However without seeing the code there is no way we can give you specific advice for your code.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 3
(1,940 Views)

As Mark said, seeing the code would help a lot.  However, my guess is that you are polling the TCP port continuously.  Try using this VI instead in your server:

Untitled.png

This will stop the code execution and relinquish the CPU until something is received on the port.

 

Olivier

 

0 Kudos
Message 3 of 3
(1,936 Views)