Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69084

What is the best method to implement multiple client-server TCP/IP communication?

$
0
0

I want to make a multiple client and server network using TCP/IP.

I have 30 remote sensors over Wi-Fi to send data to a server with LabView.  This is fixed.

The server have a router that communicates with the sensors and is connected to the PC by net cable.

I want to find the most efficient way of communication from the point of view of resources and, most importantly, the response speed of the system, because I want to update the screen as quickly as possible, sending more data per second from sensors.

I think I have (only?) two options:

* 1) Open 30 simultaneous ports and treat them in parallel to decode and display the data from each sensor.
* 2) Using two loops: one to listen new connections and the other to speak, placing them in "queue" and then decoding each one separately to display data from each sensor. See http://www.ni.com/white-paper/3982/en/

NOTE: For now I only have 4 sensors tested with method 1: It takes about 3 minutes to establish communication (why?), and then it works correctly.

Which method would you recommend? Why?

Thank you all in advance!


Viewing all articles
Browse latest Browse all 69084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>