Hello,
I have two programs that run perfectly together about 90% of the time. Here is the general idea of what they are doing:
1) Start the server
2) Start the Client
3) Press Run on the server,
4) It will tell the client that it has started and the client will do tcp read for an incoming 1 byte signal
5) server will run through its loop, then tcp write a 1 byte signal to client
6) client will receive signal and begin to do its loop
7) server will do tcp read for a 1 byte signal
😎 when client loop is done it will send a 1 byte signal
9) server will start its loop, client will stop.
When I run these two programs, I can get them to do the loop anywhere from 1-40 times before they just fall out of sync without throwing an error. If it will help I can upload the VI for the tcp regions, but you won't be able to run it because it requires sub Vi's to connect to other equipment in the first place. I also have all the timeouts set to -1. I also have noticed that using the probe, the server computer will send the signal, but the client will remain in a listening state. When this happens, I kill the server, then the signal goes through and the client loop begins to run as it is supposed to and then crashes after it finished because the server is now closed. Additionally, the sending and receiving loops are the exact same on the client and server but the issue happens on the client end always. I am new to LabView, so I don't know any of the troubleshooting methods other than the probe, but if there is a way to identify why the packet doesn't get read sometimes that would be very helpful.
Thanks!