08-22-2017 05:13 AM
Hello everyone. I have a cRIO communicating with my PC through the TCP/IP protocol to send and receive some data. I want the connection (through the ethernet cable) to be re-established, in case the connection is lost (for example internet connection is lost or the ethernet cable is off). It works by default for a specific amount of time (a few seconds), but there seem to be a problem when the connection is off for a long time (a minute or more). Any ideas?
Solved! Go to Solution.
08-22-2017 07:06 AM
Use a State Machine. Start in the Connect state and repeat until a connection is made. Then progress to the Run state. If an error is detected, go to the Disconnect state and then back to the Connect state.
08-22-2017 07:16 AM
Thank you a lot for your quick reply. I have two VIs, one under My Computer and one under my device. Should I implement it on both VIs? Thank you.
08-22-2017 09:54 AM
@gvagenas wrote:
Should I implement it on both VIs?
That is what I do.