Pages: [1]   Go Down
Author Topic: ? How to graph data and curves?  (Read 900 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys,
I wanted to plot of the data from my a but arduino on a graph but didnt have any luck with finding libraries or serial monitors with this capability. I tried things like http://koolplot.codecutter.org/, but i dont this arduino is 'ardunio compatible because i kept getting errors like :

C:\Users\Dell\Downloads\arduino-0022\arduino-0022\libraries\koolplot1_2/winbgitypes.h:65: error: 'WM_MOUSELAST' was not declared in this scope
C:\Users\Dell\Downloads\arduino-0022\arduino-0022\libraries\koolplot1_2/winbgitypes.h:65: error: 'WM_MOUSEFIRST' was not declared in this scope
C:\Users\Dell\Downloads\arduino-0022\arduino-0022\libraries\koolplot1_2/winbgitypes.h:66: error: 'WM_MOUSELAST' was not declared in this scope
C:\Users\Dell\Downloads\arduino-0022\arduino-0022\libraries\koolplot1_2/winbgitypes.h:66: error: 'WM_MOUSEFIRST' was not declared in this scope
C:\Users\Dell\Downloads\arduino-0022\arduino-0022\libraries\koolplot1_2/winbgitypes.h:68: error: 'HANDLE' does not name a type
C:\Users\Dell\Downloads\arduino-0022\arduino-0022\libraries\koolplot1_2/winbgitypes.h:84: error: 'DWORD' does not name a type
C:\Users\Dell\Downloads\arduino-0022\arduino-0022\libraries\koolplot1_2/winbgitypes.h:88: error: 'HDC' does not name a type


I also want to be able to plot functions (like x^2 + 2x -4).

SO can anyone link me to a decent graph plotting library that is free?
Thanking you in advance, MAD mir.
Logged

Ontario
Offline Offline
God Member
*****
Karma: 24
Posts: 862
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What do you intend to plot onto?  Are you going to drive a plotter?
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 525
Posts: 26547
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you copy the data into MS Excel/Jave Open Office/etc. and use its graphing capability?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can get the QT libraries for C, if that's your desired language.  Granted, C is probably the toughest language to do graphics easily in.

You can easily write some java code with the standard packages in eclipse to draw your own graphs.  You probably could google for a graphing java class, and come up with some source that's ready to go.

I've used Visual Basic to draw graphs before, super easy.

Excel can do it, if you don't mind VBA, and don't need it real-time.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Gnuplot ?  - http://www.gnuplot.info/ -
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yea i was actually wanted to just visualize the data coming in, i dnt mind if its a java applet or wtever i just need it to be able to read my serial port and plot the data accordingly. I'm sorry im new to C++; when i said libraries i meant some sort of ready to go software with which i can easily graph data using my arduino.

No i do not need to drive a plotter and i cant just copy the data into ms excel etc. because i want to be able to Show my students the data coming from the arduino in real time.

So i guess if theres no apps available which can do this ill have to write the code myself in VB then, any final suggestions before i pick up a new programming language then smiley-razz ??
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys i found a way to this using MS excel in REAL TIME! after a little research (actually 5 hours of research smiley-neutral fml..) i found a wonderful app called "gobetwino".
It reads the serial port and listens for commands, these commands enable it to open programs, send emails and use sendKeys!!! THE POSSIBILITIES ARE ENDLESS!

anyways back to the project, I modded one of the examples that comes with the software to make it neatly print the sensor readings every 0.5s on a spreadsheet column. Then using the graphing capabilities of excel i was able to make a decent real time graph display. However there is a downside, there is quite a bit of latency between the arduino and the excel sheet so its hard to go above a certain 'resolution' for the data.

I strongly recommend people to check out this software at http://mikmo.dk/gobetwinodownload.html   .

If anyone has any better suggestions than this please let me know!

Thank you everyone for your input smiley-grin
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 525
Posts: 26547
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think you are looking for this!

http://www.negtronics.com/simplot
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: