03-25-2013 01:44 AM
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
03-25-2013 09:36 AM
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.
03-25-2013 09:51 AM - edited 03-25-2013 10:18 AM
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:
This will stop the code execution and relinquish the CPU until something is received on the port.
Olivier