View Single Post
  #8   Spotlight this post!  
Unread 04-01-2017, 12:41
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 116
aeastet is an unknown quantity at this point
Re: Write to Flash Drive on the RoboRio

Quote:
Originally Posted by Jonathan L. View Post
See "File IO" at http://wpilib.screenstepslive.com/s/...e-2014-to-2015

You may need to use the base path /home/lvuser to write files to the roboRIO. Also, remember to use the Create Folder function BEFORE the Create File function if you are not sure that the folder has been created yet.

The File I/O functions are in the Programming\File I/O palette and the Create Folder function is in the Programming\File I/O\Advanced File Functions palette.

You can read and write to a simple text file or to your own binary file (as long as you keep track of the LabVIEW Data Type that the file uses). There is a subPalette that contains VIs for making .ini configuration files (caution: the configuration file is not actually saved until it is closed). Also, if you want to save a cluster of data in a human readable format, you can use the Flatten JSON or XML functions in the Programming\String\Flatten/Unflatten String palette.
Hey thanks Jonathan. That was helpful info.
Reply With Quote