Saving logs in advantage kit

Hello, I am using advantage kit in a robot program, in the example on the advantage kit github repo they only show how to send the logs to the network table and how to save to a usb stick.
I wondered if there is a way to save the logs directly to the roborio’s storage and then pass it to a connected computer.

It’s possible, you can just pass another path for the log file. However, there’s limited storage on the roboRIO at only 512MB. Why don’t you want to use a disk-on-key?

Edit: 512MB is for the internal storage, the SD card can be much larger.

Currently we don’t have any disk on keys and we prefer not to buy some if we don’t need to so we are looking into other options.
We use a roborio2 that uses a micro SD card to boot from so maybe it’s possible to save to it?
If so what will be it’s path?

Accessing the SD card may be possible, I don’t know the path though. You’d also need to make sure your laptop can read those.
Disk on keys are super cheap, you can get a 64GB one for ₪19 ($5) on KSP. It’s much better to get a few.

Ok
Thank you

1 Like

The path for on-Rio is /home/lvuser/logs.

Thanks
How can I access that later?

Multiple tools have the ability to download data logs off the Rio (over the network): AdvantageScope, WPILib DataLogTool, and the DS.

Thank you
Does this save it to the micro SD card on the roborio?

Yes