This snippet shows how to read variables from your roboRIO and display them on your custom Dashboard. It reads the current X, Y, and Z values of the built-in accelerometer and writes them to the SmartDashboard. The SmartDashboard entries are then read in the PC Dashboard and displayed on a Waveform Chart.
For more information, check out the tutorial from 2014;
https://decibel.ni.com/content/docs/DOC-26296
Begin VI
Place this snippet in the Begin.vi
Teleop VI
Place this snippet in the Teleop.vi
Finish VI
Place this snippet in Close Refs, save data, etc. frame of the Finish.vi
FRC PC Dashboard VI
Place this snippet within the True case of Loop 1.
FRC PC Dashboard VI Front Panel