|
Re: Sending Data from Dashboard to Robot?
Actually, you can flatten the double output from the slider to a string, and when you unflatten it, wire a double constant to the unflatten VI (to tell LV what datatype out you want).
I would probably put the UDP listener in Periodic Tasks.vi, so it won't slow down your other code. You're also going to want to wire a timeout to UDP read (make it small: ~50 ms) so that your code won't hang there. You can open/close your references inside Periodic Tasks (but outside of a while loop) and put your listener code inside a while loop.
|