View unanswered posts | View active topics It is currently Sun Sep 21, 2014 11:10 pm






Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Datalogging 
Author Message
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: Datalogging
Ted,

You're on a roll! Thanks man, it is really appreciated :)

Regards,
Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Dec 22, 2008 5:28 pm
Profile WWW
Rookie

Joined: Fri Feb 16, 2007 4:11 pm
Posts: 41
Location: Padanaram, MA
Post Re: Datalogging
Hi Xander,

Glad to hear its working for you. Have a nice Xmas.

Regards,

Ted


Wed Dec 24, 2008 10:53 pm
Profile WWW
Rookie

Joined: Fri Feb 16, 2007 4:11 pm
Posts: 41
Location: Padanaram, MA
Post Re: Datalogging
Greetings,

If I try to save a float variable on the Datalog, I get the following error messages:

**Error**:Multiple overloads for 'AddToDatalog' match [including some typedef promotions]
*Warning*:Selected: Converted2:2000100/10 AddToDatalog(const long data)
*Warning*:Worse: Converted3:2000100/10 AddToDatalog(const short data)

I get no error messages when I save an int variable. Does this mean that it is only possible to save int variables on the Datalog?

Regards,

Ted


Sat Jan 03, 2009 1:25 pm
Profile WWW
Rookie

Joined: Fri Feb 16, 2007 4:11 pm
Posts: 41
Location: Padanaram, MA
Post Re: Datalogging
Greetings,

The little program that I posted for processing datalogs is limited to 2000 datalog entries. Thus, if you are generating more data than that, you have to count the number of datalog entries you make and not let it exceed 2000 entries. For example:

int cntr; // A counter
cntr = 0;
while (somecondition)
{
a bunch of calculations
if(cntr < (2000 - N))
{
AddToDatalog(var1);
AddToDatalog(var2);
..........................
cntr = cntr + N;
}
else
{
AddToDatalog(varN);
cntr = 0;
}
}

It might thus be possible to datalog more that 2000 entries by automatically starting a new datalog every time the 2000 limit was passed.

Regards,

Ted


Tue Jan 06, 2009 5:04 pm
Profile WWW
Rookie

Joined: Fri Feb 16, 2007 4:11 pm
Posts: 41
Location: Padanaram, MA
Post Re: Datalogging
Greetings,

The technique I suggested in my previous post does not work well as regards storing more than 2000 data elements in successive datalogs. Unfortunately, while SaveNxtDatalog() does cause the creation of a new datalog it does not delete the previously accumulated data in the RAM datalog. Thus the second datalog contains not only the new data, but also the old data. We need a command to delete the data in the RAM datalog.

The technique I described in my previous post does create successive datalogs, but later ones contain all the data in the previous ones. To use my ProcessDatalogs program you would first have to use MS Excel to edit all the DATA000n.csv files to include only the data you wanted to use with ProcessDatalogs - possible but awkward.

Is it possible with the existing commands to delete the datalog in RAM before starting a new datalog? If not, such a command would be a good one to add.

Regards,

Ted


Wed Jan 07, 2009 12:00 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 20 posts ]  Go to page Previous  1, 2

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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.