Hi All
Would like to log to a file on a USB drive on the RoboRio, but not sure how to address the drive.
When a USB drive is plugged in, how do we create/write to a file on it?
Thanks and regards
David
Hi All
Would like to log to a file on a USB drive on the RoboRio, but not sure how to address the drive.
When a USB drive is plugged in, how do we create/write to a file on it?
Thanks and regards
David
The answer to your question is going to depend mainly on your programming language, however it’ll be the same as opening and reading/writing to a file on a regular computer.
To access the USB drive, you’ll have to search for the mount point on the roboRIO filesystem. In 2015/2016, any USB drive connected to the roboRIO was automatically mounted under /media
, so I would start by checking there to see if anything new pops up when connecting a flash drive. To actually access the roboRIO filesystem (to find where the drive mounts), you’d have to connect to it via SSH.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.