LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP Communication - How can I remove the priority of which VI will run first?

The VI's that i have attached on the beginning of this topic were made from TCP Communicator and Passive.

I am just having trouble with the Time Out errors. Any advise on those errors?

 

thanks..

0 Kudos
Message 11 of 14
(559 Views)

I'm sorry, but I don't see which of your VI's resemble the examples.

 

I believe Deepu's suggestion of how to handle timeout errors seems reasonable.  In the situation where you get a timeout while create a connection or a listener, close the connection, reopen the connection, and try again.  If it happens after a valid connection, then just clear the error and try again.  Perhaps maintain a counter of consecutive errors so if it happens a couple times in a row, you can close and reopen the connection.  Perhaps notify the user by popup message or indicator that there is a communication problem.

0 Kudos
Message 12 of 14
(554 Views)

I'm sorry, as I'm still using LV8.2.1, unable to open ur files.

 

0 Kudos
Message 13 of 14
(542 Views)

Looking at so many examples I am now getting confused. i need to develop a TCP/IP application for a wireless communication.

I will have one server (A), and minimum of two clients (B) (C). Server (A) will receive both individual data from Client (B) and Client (C). 

Server (A) has its own data.  Server (A) together with Client (B) data have to be transferred to Client (C). 

Server (A) together with Client (C) data have to be transferred to Client (B). This has to be done simultaneously.

In case any of the client is down, Server (A) have to be notified. Also, the down Client (which could be due to communication loss)

can return to the network anytime with or without human intervention.

But ofcourse if the Server (A) is down, then all of them will lost the communication.

The 3 VI's are always running. Errors should not stop the VI rather it will pop up a message that there was a failure on any of the client. 

 

This is a case of Multiple Communications, Re-entrant VI, and two way data passing between each VI.

 

Is there any example that will demonstrate or similar with the above concept? Needs help. Thanks a lot.

0 Kudos
Message 14 of 14
(521 Views)