Pages: [1]   Go Down
Author Topic: Capturing data from the serial monitor  (Read 1395 times)
0 Members and 1 Guest are viewing this topic.
Italy
Offline Offline
Full Member
***
Karma: 0
Posts: 127
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've searched for these subjects in the help forums but can't find a reply.

How do I capture output from the serial monitor (on the PC) into a file which I can analyse later?

I could write my own program, but that is error prone and long winded if there is an already existing solution to my problem.

TIA!

Logged

Owen F. Ransen

ottawa, canada
Offline Offline
God Member
*****
Karma: 5
Posts: 989
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you just. Eed a bit of data you can copy and paste of course.

When i need a bunch of data i use putty which will log all input to a file.
Logged

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

putty.exe download: - http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html -

There are other terminal programs too that can capture to file, note that terminal programs can interfere with the IDE and starting one can reset the sketch.

or one could write a script in python, or any other favorite programming language.
Logged

Rob Tillaart

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

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 5
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

GoBetwino can dump data directly into csv files or even Excel sheets.
Logged

Italy
Offline Offline
Full Member
***
Karma: 0
Posts: 127
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks all for these suggestions, and Happy New Year!
Logged

Owen F. Ransen

Guadalajara,Mexico
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Any option for a Mac USER??
Logged

India
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
OS Developer, ASIC and FPGA designer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

In window
Hyperterminal-->Transfer---->capture text
Logged

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

Have downloaded gobetwino but can't run the .exe.config file. My pc seems to want to insist on attempting to use word to open the file. Is this a windows 7 bug?
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 19
Posts: 3114
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No, it's not a Windows bug. Config files are usually just text. There should be a Gobetwino.exe file too.
Logged

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 5
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You should run the arduino.exe file, the one with the black/yellow icon.
Logged

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

Thanks guys, I now have serial data appearing in the upper gobetwino window, both your replies set me thinking in a different direction, (1) I had previously been running the Arduino serial window which uses the same USB port as gobetwino wants to. So gobetwino reports that it cannot open port 8 even though Arduino is no longer using it.
 and (2) the program with the yellow and black icon is labelled gobetwino.exe not arduino.exe but running it has the necessary effect. Thanks again
Logged

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 5
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Arrgh i cant even remember the name of my own creation  smiley-eek
Logged

Italy
Offline Offline
Full Member
***
Karma: 0
Posts: 127
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

putty.exe download: - http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html -

There are other terminal programs too that can capture to file, note that terminal programs can interfere with the IDE and starting one can reset the sketch.

or one could write a script in python, or any other favorite programming language.

This is just what I wanted. Once I have loaded the sketch onto the Arduino I run putty.exe in serial mode (no flow control) and capture the output to a text file of my choice. It DOES reset the Arduino, but that is not a problem because I want to capture all output from the start of the program.

Many thanks for pointing out puTTY to me! And to the author of course.

To those who may not have used it: Note that you download the actual program, not an installation, and the first screen is the configuration screen, then it runs the terminal program.
Logged

Owen F. Ransen

Pages: [1]   Go Up
Jump to: