2017 FRC Control SystemSmartDashboard SmartDashboardVerifying SmartDashboard is working

Verifying SmartDashboard is working

Minimal Java robot program

Minimal Java robot program

This is a minimal Java robot program that writes a value to the SmartDashboard. It simply increments a counter 10 times per second to verify that the connection is working.

Minimal C++ robot program

Minimal C++ robot program

This is a minimal C++ robot program that writes a value to the SmartDashboard. It simply increments a counter 10 times per second to verify that the connection is working.

SmartDashboard output for the sample program

SmartDashboard output for the sample program

The SmartDashboard display should look like this after about 6 seconds of the robot being enabled in Teleop mode. If it doesn't then you need to check that the connection is correctly set up.

Verifying the IP address in SmartDashboard

Verifying the IP address in SmartDashboard

If the display of the value is not appearing, verify that the team number is correctly set as shown in this picture. You get to the preferences dialog by selecting File, then Preferences.

Using OutlineViewer to verify that the program is working

Using OutlineViewer to verify that the program is working

You can verify that the robot program is generating SmartDashboard values by using the OutlineViewer program. This is a java program, OutlineViewer.jar that is located in the USERHOME\wpilib\tools folder. It is run with the command: java -jar OutlineViewer-with-dependencies.jar. In the host box, enter your roboRIO hostname (roboRIO-####.local where #### is your team number with no leading zeroes). Then click "Start Client"

Look at the second row in the table, the value "SmartDashboard/Counter" is the variable written to the SmartDashboard via NetworkTables. As the program runs you should see the value increasing (41.0 in this case). If you don't see this variable in the OutlineViewer then you should look for something wrong with the robot program or the network configuration.

0 Report Errors

Use this form to report any errors with the documentation. For help with WPILib, please use the FIRST Forums at http://forums.usfirst.org For reporting WPILib bugs, please submit an issue on GitHub at https://github.com/wpilibsuite/allwpilib/issues/new

Ignore