Log in

View Full Version : How to UDP


Schnyde
07-02-2013, 13:08
My team (2856) wants to send process aiming data on the driverstation/dashboard and then send it back to the robot's cRIO (which runs java) using UDP. Everything I see involving this in threads seems to imply that UDP is a common way of sending data back to the cRIO; however, there doesn't seem to be anything that really says how to do this. I tried using the javadoc to learn, but when I did what it says to do I get a "'datagram' protocol not found" exception. Does anybody know how to UDP in java?

Joe Ross
07-02-2013, 13:56
As you've found, UDP is not supported in the squawk JVM that we use. You can either use TCP, or use NetworkTables.

Schnyde
07-02-2013, 16:44
Ok, thanks. I looked into Network Tables; do you know if that is supported by labview? I haven't seen anything on that...

Joe Ross
07-02-2013, 16:58
NetworkTables support was added this year to LabVIEW.

Schnyde
07-02-2013, 17:09
Ok, thanks