Thread: Graphing Data
View Single Post
  #4   Spotlight this post!  
Unread 04-01-2016, 14:46
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 336
fovea1959 will become famous soon enough
Re: Graphing Data

Our code release http://www.chiefdelphi.com/forums/sh....php?p=1516461 may be helpful. Look at the bits about 'data logging'.

We logged the data to a file (in CSV format) on the roboRIO (either in /home/lvuser, or on a thumb drive plugged into the roboRIO). We could then copy the file off with SFTP/SCP/FTP (or pull the thumb drive), and plot it with Excel, Veusz, or something else. It's not realtime, but that wasn't our intent.

We *have* done realtime plotting with a custom network tables client on the driver station, it's doable, but icky.

It's written in Java, but it should have enough detail in there to get you going (writing files in C++ isn't any harder than in Java). PM me if questions.