I can create indicators on the dashboard but I would also like to be able to put some controls on as well. How would I go about doing this?
Use a UDP port to communicate data back to the robot. Currently, we have offboarded our vision processing to the driver’s station, and have a couple of customizable controls on the dashboard.
The hardest thing is trying to encode your data into strings, because UDP Ports only accept data as a string.
Give me two hours and I will post some example code.
so what happened to the two hours I think this is what im looking for too
School came up. I am working on the example code right now.
Thnats understandible school comes first
Ok, here we go. This is a short example that encodes a Decimal Numeric, a Boolean, and a string and sends it over UDP from the dashboard to the Robot, at which point it is decoded and sent out in the exact same data types.
You can re purpose this to send data back to the dashboard by switching the port and IP addresses on the UDP reads and writes.
For a more in depth project, I off boarded our vision processing to our dashboard, and sent the target information back to the robot. I can post this code, although it is significantly more in depth than this code.
If you have any other questions, feel free to either PM me, or post on this thread again.
UDP String Example.vi (15.6 KB)
UDP String Example.vi (15.6 KB)
I have some example code attached to this post. Take a look, and I’ll gladly answer any questions that might arise.
Thanks a ton
Thanks a ton guys, I’ll be trying this out at the next meeting!