Go to Post Did our Jaguar swallow a chipmunk, or is something else going on? - Tom Line [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-08-2016, 08:47
azaclauson azaclauson is offline
Registered User
FRC #5593
 
Join Date: Jul 2016
Location: Tasmania
Posts: 17
azaclauson is an unknown quantity at this point
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)
Reply With Quote
  #2   Spotlight this post!  
Unread 19-08-2016, 00:35
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 312
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Where does the FRC Dashboard store data

Try C:\Users\Public\Documents\FRC

Otherwise use Process Monitor and find it
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #3   Spotlight this post!  
Unread 19-08-2016, 04:35
azaclauson azaclauson is offline
Registered User
FRC #5593
 
Join Date: Jul 2016
Location: Tasmania
Posts: 17
azaclauson is an unknown quantity at this point
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 .
Reply With Quote
  #4   Spotlight this post!  
Unread 20-08-2016, 22:49
azaclauson azaclauson is offline
Registered User
FRC #5593
 
Join Date: Jul 2016
Location: Tasmania
Posts: 17
azaclauson is an unknown quantity at this point
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 20-08-2016, 23:45
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 312
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Where does the FRC Dashboard store data

Quote:
Originally Posted by azaclauson View Post
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
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #6   Spotlight this post!  
Unread 21-08-2016, 08:02
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
  #7   Spotlight this post!  
Unread 21-08-2016, 08:17
azaclauson azaclauson is offline
Registered User
FRC #5593
 
Join Date: Jul 2016
Location: Tasmania
Posts: 17
azaclauson is an unknown quantity at this point
Re: Where does the FRC Dashboard store data

Quote:
Originally Posted by Greg McKaskle View Post
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.
Reply With Quote
  #8   Spotlight this post!  
Unread 21-08-2016, 08:49
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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