Using the LabVIEW Dashboard with C++/Java Code¶
The default LabVIEW Dashboard utilizes Network Tables to pass values and is therefore compatible with C++ and Java robot programs. This article covers the keys and value ranges to use to work with the Dashboard.
Most of the indicators on the Drive tab utilize arrays.
The Basic tab uses a number of keys in the a “DB” sub-table to send/receive Dashboard data. The LED’s are output only, the other fields are all bi-directional (send or receive).
The labels are currently sent as an array. C++ and Java SmartDashboard classes do not currently support sending arrays.
The strings are labeled top-to-bottom, left-to-right from “DB/String 0” to “DB/String 9”. Each String field can display at least 21 characters (exact number depends on what characters). To write to these strings:
To read string data entered on the Dashboard:
The Sliders are bi-directional analog (double) controls/indicators with a range from 0 to 5. To write to these indicators:
To read values from the Dashboard into the robot program: (default value of 0.0)