Communicating with RoboRealm

Hi,

I found a few threads on communicating with RoboRealm but reading this: http://www.roborealm.com/help/Network_Tables.php
didn’t clear too much up. I can upload the variables from RoboRealm, but I can’t figure out how to access them from the CRio. I would greatly appreciate it if somebody could post some code for this(Windriver C++), or just point me in the right direction.

Thanks

I literally just walked away from my code. You basically have to use the smart Dashboard getData function and the string name of the variable to access it in your code.

RoboRealm can write values to NetworkTables. There is an example on this web page: http://wpilib.screenstepslive.com/s/3120/m/7912/l/80205-writing-a-simple-networktables-program-in-c-and-java-with-a-java-client-pc-side
that demonstrates writing a robot-side and laptop-side NetworkTables program to communicate data. If you assume that RoboRealm is the laptop-side program you can use the robot-side example here.

There’s some information about using RoboRealm at the bottom of the web page.

Brad

Jared,

You may also find that using the TableViewer application that comes as part of the FRC install is useful in debugging these types of issues. If you have RR running correctly, the TableViewer application should show the variable also. Its a good way to ensure that things are setup correctly with code that is know to work, then you can jump into getting the value on the CRio.

Also, don’t forget the namespace when naming it in RoboRealm. Ie. your variable should look like

/SmartDashboard/Distance

and this should be visible in both the TableViewer and SmartDashBoard.

STeven.