View Full Version : Where is SD WRITE?
eneubec1
11-02-2016, 19:01
We are trying to figure out how to write variables from robot code to the smart dashboard. Our Programmers recall something called SD Write from last year, and we can't find it anywhere.
How do we take variable from the robot ( like Voltage from AIO) and put it on the smart dashbboard?
The Tutorial #6 didn't help.
BitTwiddler
11-02-2016, 23:02
When you are working on the block diagram bring up the function palette and look at the bottomost palette for the WPI Robotics Library. The smart dashboard VIs are the second ones from the left on the bottom row. The second VI shown is the NT Write Value VI. That's the one to use to write a value to the dashboard and it can handle numeric, Boolean and string values as well as arrays.
Hope this helped you.
Greg McKaskle
12-02-2016, 00:12
Last year, the palette of VIs for reading and writing had an SD Read and an SD Write as well as an NT read and write.
For 2015 decided to combine them by overloading the name parameter. Virtually all of the writes used by teams should be to the SmartDashboard subTable, and just a few of the utilities such as the test code will need to write to other tables. So the SD and NT functions were combined such that a name starting with / is treated as absolute and equivalent to an NT call and a name that doesn't start with / is placed under SmartDashboard subtable. I'm pretty sure we left the old functions in for compatibility, but removed them from the palette.
Greg McKaskle
eneubec1
12-02-2016, 21:35
Thanks for the quick advice. I love the responsiveness we get from postings on chief delphi. Now I just need to get my students to understand they can post a question when they don't find the answer from a search. :deadhorse:
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.