Standard java onto smartdashboard

How can I print to the smart dashboard using a standard Java program, we’ve already imported wpilibj.

Import the SmartDashboard package,

 import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;

And then in wherever you want to print stuff, use the putNumber() or putBoolean() or putString (look in API for all things you can put).
For example;:


double test = 4;
SmartDashboard.putNumber("Test", test);

That should automatically print the data to the SmartDashboard when you enable.

Take a look here:

http://wpilib.screenstepslive.com/s/3120/m/7932/l/81106-displaying-expressions-from-within-the-robot-program

for some examples and more directions on using SmartDashboard.

Brad