View Single Post
  #1   Spotlight this post!  
Unread 28-01-2014, 20:16
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
How to identify cRIO?

Is there a way to identify the cRIO that Java is running on? Our robot code needs a little tweaking based on whether or not it's running on the competition bot, the practice bot, or the mule board....

In Labview we could get a bundle that had the name, serial #, and mac address, as I recall. I see the kRioSerialNum constant in com.ni.rio.NiRioConstants, but have no idea what method I would feed it to....

I know I can lay a file down on the cRIOs to identify them (either just for this, or as part of a Preferences object), but prefer something that I don't have to (remember to) redo after a cRIO format or reimage.
Reply With Quote