LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I implement two TCP/IP servers (on two separate machines) and one TCP/IP client (on third machine)

Solved!
Go to solution

@dj143 wrote:

Hi TLE,

 

Please elaborate more on the ability to automatically reconnect.  I have a situation where multiple machines need to communicate status to one machine but they are not always on line.

 

Thanks,


DJ


The simplest approach would be to poll the server to reconnect in the event you lose the connection. The client would detect the connection is no longer available and then periodically try to reconnect using an Open call. A more sophisticated approach would be to have a separate monitor task on all of your machines. This task would listen for broadcast messages from your various systems that are sent when they come online. When a message is recieved the system can then connect if it needs to communicate with that machine/process.

 

I would recommend you use the first approach because of its simplicity. The broadcast method can be tricky especially if crossing subnets.



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 11 of 12
(387 Views)

Thanks. I got it working. I appreciate your help.

0 Kudos
Message 12 of 12
(378 Views)