09-19-2014 07:37 AM - edited 09-19-2014 07:41 AM
I am trying to communicate to three specific IP addresses and send messages to each using UDP from a front panel. I have three loops set up in my program, each loop communicates to each IP address, but it seems some loops take precedence over others. If I adjust one set of controls, it works, but other controls may or may not. It also may flip-flop into which set of controls work after long periods of delay but seems more or less intermittent. Is there a better way of doing this?
Solved! Go to Solution.
09-19-2014 08:05 AM - edited 09-19-2014 08:07 AM
It may be that 10ms isn't enough of a timeout for the network socket to open?
Are you getting any errors out when it fails to send?
If I were you, I would remove the UDP Open and Close functions outside of the loops - I would open the connection outside of the loop and then close it at the end otherwise you are trying to reserve ports every time you change a value. You would also need to handle shutdown so the connection gets closed at the end.
09-19-2014 10:55 AM
I suspect it is a problem with my hardware at the moment... after some more testing...
Thanks for the input