Go to Post I am really glad that FIRST gives teams the choice to use either students or adults in this role. - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 22-01-2017, 23:56
feverittm's Avatar
feverittm feverittm is offline
Registered User
FRC #0997 (Spartans)
Team Role: Mentor
 
Join Date: Apr 2010
Rookie Year: 2010
Location: Corvallis, OR
Posts: 122
feverittm will become famous soon enoughfeverittm will become famous soon enough
Getting a CSV filr from Java Smartdashboard/Console

We are working to tune our PIDF controller on out shooter prototype and would like to plot/analyze the system response in Excel. However, we don't have any data logging code in our build (and would have to design it anyway). We would therefore like to figure out a way to grab the data from either the Smartdashboard or from the Console output.

Has anyone done this before and have a solution?

Thanks
__________________
Floyd Moore
Mentor Electrical and Pneumatics
Team 997 - Spartan Robotics
Corvallis High School, Corvallis Oregon
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2017, 09:20
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: 377
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: Getting a CSV filr from Java Smartdashboard/Console

With the default dashboards, no. If you log in a comma-separated format, you might be able to save the data as a CSV file. But I'd recommend simply making your robot code save a CSV file on the rio which you can then copy out.
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2017, 09:47
gbear605's Avatar
gbear605 gbear605 is offline
Scarebear
FRC #1768 (Nashoba Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: United States
Posts: 35
gbear605 is an unknown quantity at this point
Re: Getting a CSV filr from Java Smartdashboard/Console

If you use SmartChart (an SFX Smart Dashboard plugin that my team made), it can export data to a CSV file. It also has a bunch of other neat features, like graphing based on time or being able to reset without making a new graph. More features are on the way, like zooming. The file to download is at https://github.com/Nashoba-Robotics/SmartChart/releases

You could also write a way to save the CSV file on the roboRIO and then use FTP to get the file out. It shouldn't be too complex to write, since CSV is a super simple protocol.
Reply With Quote
  #4   Spotlight this post!  
Unread 24-01-2017, 15:35
gerthworm's Avatar
gerthworm gerthworm is online now
Making the 1's and 0's
FRC #1736 (Robot Casserole)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Peoria, IL
Posts: 68
gerthworm has a spectacular aura aboutgerthworm has a spectacular aura about
Re: Getting a CSV filr from Java Smartdashboard/Console

And, if you decide to go the route of logging on the RIO, here's an example of how we did it last year:

https://github.com/RobotCasserole173...CsvLogger.java

It's set up to save to an external flash drive at the moment, but you can adjust the "output_dir" variable to wherever you like.
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 13:16.

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