Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Graphing Data (http://www.chiefdelphi.com/forums/showthread.php?t=140808)

Hsifeulbhsifder 02-01-2016 19:58

Graphing Data
 
Is there anyway of easily graphing data from the robot. I have tried pushing a number to the SmartDashboard, but when I try to set it to line plot, it dissapears. Are there any alternatives?

Ari423 02-01-2016 20:30

Re: Graphing Data
 
What language are you writing your dashboard in?

Hsifeulbhsifder 02-01-2016 21:25

Re: Graphing Data
 
c++

fovea1959 04-01-2016 14:46

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.

virtuald 05-01-2016 01:06

Re: Graphing Data
 
There are a lot of really cool easy to use graphing libraries available in Javascript. Perhaps send the data via NetworkTables and write your dashboard using HTML/Javascript? Very simple, not icky at all.

I should probably put together a graphing example one of these days...in particular, epoch.js looks really promising.

fovea1959 05-01-2016 16:48

Re: Graphing Data
 
virtuald is right, doing this with network tables and pynetworktables2js would be pretty simple. I guess I meant to say "the way we did it (Swing) was icky".


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

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