|
Page 1 of 1
|
[ 3 posts ] |
|
Author |
Message |
AlexJ
Rookie
Joined: Wed Mar 19, 2014 10:39 am Posts: 7
|
 "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!
|
Fri Apr 11, 2014 12:12 am |
|
 |
Coder A
Moderator
Joined: Thu Jan 03, 2013 5:10 pm Posts: 207 Location: The plateau north of the Ohio River Valley, also known as Cave Country.
|
 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.
_________________ I'm not a robot! I'm british! ~ quote from an asparagus I am not a robot! I am a unicorn! ~ quote from a robot
|
Sat Apr 12, 2014 5:48 pm |
|
 |
Sirius
Rookie
Joined: Fri Sep 20, 2013 8:39 am Posts: 38
|
 Re: "Garbage" from DataLog
Has anybody figured this out
|
Tue Jun 03, 2014 4:54 am |
|
|
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|