Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Where does the FRC Dashboard store data (http://www.chiefdelphi.com/forums/showthread.php?t=150192)

azaclauson 18-08-2016 08:47

Where does the FRC Dashboard store data
 
Does anyone know where the LabView FRC Dashboard panel application (C:\Program Files (x86)\FRC Dashboard\Dashboard.exe) stores its data?

The data I'm trying to track down are the names of the buttons, indicator lights and string fields on the "Basic" tab.

(I realise that some of the variables can be set from the robot code and while I have managed to do that from a C++ example I'd really like to see where the values are being stored)

euhlmann 19-08-2016 00:35

Re: Where does the FRC Dashboard store data
 
Try C:\Users\Public\Documents\FRC

Otherwise use Process Monitor and find it :)

azaclauson 19-08-2016 04:35

Re: Where does the FRC Dashboard store data
 
Already tried both those :) and a few more directories as well.

There are a few TCP sockets being used so it looks to me like the settings could be persisted using some kind of database or web service. I know next to nothing about LabView though so don't know where to start looking :(.

azaclauson 20-08-2016 22:49

Re: Where does the FRC Dashboard store data
 
For anyone else looking for this the settings are persisted on the roboRio in /home/lvuser/networktables.ini.

euhlmann 20-08-2016 23:45

Re: Where does the FRC Dashboard store data
 
Quote:

Originally Posted by azaclauson (Post 1602057)
For anyone else looking for this the settings are persisted on the roboRio in /home/lvuser/networktables.ini.

Oh, you meant parameters. Yes, those are stored there

Greg McKaskle 21-08-2016 08:02

Re: Where does the FRC Dashboard store data
 
The camera settings are stored in public documents/FRC/DashboardSettings.ini.
Videos and NT log files, if you use the Record button for the dashboard, are stored in public documents/FRC/Log Files/Dashboard.
The checklist tab gets its content from public documents/FRC/Checklist.txt
And as noted already, the persisted variables are on the robot, which is the server. This tends to help with race conditions when things boot up.
The Basic tab buttons and such, have names that you can change to be more robot-specific. Those are set in Network Tables, such as in robot Begin.

Greg McKaskle

azaclauson 21-08-2016 08:17

Re: Where does the FRC Dashboard store data
 
Quote:

Originally Posted by Greg McKaskle (Post 1602067)
The Basic tab buttons and such, have names that you can change to be more robot-specific. Those are set in Network Tables, such as in robot Begin.

Is there a way to set the LabVew Dashboard autonomous chooser selections and/or the list of command on the "Commands" tab directly from the /home/lvuser/networktables.ini file?

According to the C++ programming guide for the dashboard it's not possible to set the chooser options or button names due to not being able to send arrays in the wpilib Network Tables implementation.

What I'm trying to do is find the easiest way of being able to choose between autonomous modes and execute test commands on a C++ robot. I'm hoping to avoid the overhead of a custom SmartDashboard as I know I'll end up spending more time that I should getting the user interface right. The LabView dashboard already has everything I'm after at this point I'm just not able to set the options.

Greg McKaskle 21-08-2016 08:49

Re: Where does the FRC Dashboard store data
 
I suspect that documentation is old. Sorry, but I'm not up on the specifics of the other the other languages.

http://first.wpi.edu/FRC/roborio/sta...workTable.html look like arrays are supported, at least now the are.

But to answer your original question. Sure. The NT persistent file for LV uses the following formats. I believe that C++ uses a different format, but it may be close enough to give you a head start.

All of the LV variables are stored using two parallel sections. One stores the Types and the other the Values. A final section stores the version for the entire file, which is currently 3.0

Booleans: True or False
Numerics: %g formatted
Strings: no formatting changes
Raw: Base64
Boolean Array: "True", "False", etc.
Numeric Array: "3.14", "2.71", etc.

String Arrays are a bit tricky, as embedded quotes would be a problem. So \xx codes are used for certain characters.

All of the LV FRC stuff ships source, but again, I suspect that C++ uses a different file format. It isn't really expected that the persist file is used across languages.

Greg McKaskle


All times are GMT -5. The time now is 20:41.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi