ROBOTC.net forums
http://www.robotc.net/forums/

"Garbage" from DataLog
http://www.robotc.net/forums/viewtopic.php?f=1&t=8473
Page 1 of 1

Author:  AlexJ [ Fri Apr 11, 2014 12:12 am ]
Post subject:  "Garbage" from DataLog

I want to use the datalog to track sensor data for testing. I started out trying to log data from sensors, but got very strange results. I wrote the code below to test datalogging:

[code]
task main()
{
int ii=0;
for(ii=0;ii<10;ii++){
AddToDatalog(ii, ii);
}
SaveNxtDatalog();

}
[\code]

When I take the datalog file off the brick and read it in excel I get two columns of output as below:
227 ... 56228
3 ... 16384
0 ... 16640
1 ... 16896
2 ... 17152
3 ... 17408
4 ... 17664
5 ... 17920
6 ... 18176
7 ... 18432
8 ... 18688
9 ... 0

The first column is *almost* my ii index, but starts off with two strange values. The second column seems completely meaningless, and is similar to values I got when I tried to log the gyro sensor.

Any advice on how to collect data or how to convert the above to meaningful values?
Thanks!

Attachments:
File comment: Datalog excel file
DATA0005.csv [156 Bytes]
Downloaded 162 times

Author:  Coder A [ Sat Apr 12, 2014 5:48 pm ]
Post subject:  Re: "Garbage" from DataLog

I don't use excel, so I wouldn't know for sure, but it could be the spreadsheet file format. To find out, create an nxt program that displays the datalog to the screen, eight items at a time. If it is also messed up, this is most likely a ROBOTC bug. However, if it is correct, my guess is the excel format is different from datalog format.

Author:  Sirius [ Tue Jun 03, 2014 4:54 am ]
Post subject:  Re: "Garbage" from DataLog

Has anybody figured this out

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/