View Single Post
  #2   Spotlight this post!  
Unread 29-01-2014, 12:50
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: How to identify cRIO?

You can create a text file in the flash memory on the cRIO that says which robot it is. Then have the program open the file. An easier way might be to use the Preferences class and set it up once, then each time you start up check the preference settings.

This page shows how to use the Preferences with the Dashboard for setting the values which are stored on the robot. You can do that once for each robot then have your program read them at startup.

http://wpilib.screenstepslive.com/s/...smartdashboard
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote