LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

when to consider giving different port number to every new client that is connecting to the server?

The setup on which I am working is a server vi that has several clients connecting parallely to it. The client basically gets data from the server in a 2d array that has on an average 5 cols and 1500 rows .
max clients connecting to the server at a given instance would be 3-4.do I give every client a different port number ? does it improve upon anything ?
0 Kudos
Message 1 of 3
(2,677 Views)
When the server receives requests from the clients, does it really reply in parallell, or does it handle the requests sequencially?

If the latter, improve the performance by dynamically creating connection handlers that process requests from each client individually.

Compression is another thing that may improve the performance.
0 Kudos
Message 2 of 3
(2,677 Views)
Hello sumitrishi,

Thank you for contacting National Instruments.

Assuming that you are using TCP/IP, it is not necessary to assign each client a different server port. However, you will need to ensure that your LabVIEW TCP server is coded correctly to handle multiple client connections. You can learn more about connecting multiple TCP clients to one server in LabVIEW by visiting the following link:

http://zone.ni.com/devzone/conceptd.nsf/webmain/DF1A54455AA43C9786256802007B8D79?opendocument

There is also a good example included with LabVIEW 7.0 that demonstrates the proper way to code a LabVIEW TCP server that is capable of hosting multiple clients. This example can be found in the TCP.llb file located in \LabVIEW 7.0\examples\comm.

If you run mul
tiple LabVIEW TCP servers, you could potentially have multiple clients connected via different ports (one client per server). This setup could provide slightly faster connection speeds at the expense of your server computer's system resources.

Matthew C
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(2,677 Views)