Go to Post Thank goodness there are people in this world who refuse to let physics and calculus ruin a good story. - Richard Wallace [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 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
  #2   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
  #3   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 20: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