View unanswered posts | View active topics It is currently Sat Sep 26, 2020 8:02 am

Reply to topic  [ 1 post ] 
datalog retrieval from an RCX 
Author Message

Joined: Sun Jan 13, 2008 8:40 am
Posts: 7
Post datalog retrieval from an RCX
RobotC Developers,

I am using ROBOTC for Mindstorms 1.10 with the RCX platform. The datalog functionality appears mostly in-tact except for the final step of uploading it to the PC. I suspect the uploading functionality worked at some point in the past because the UploadDatalod() function is documented as an internal RobotC function. However, with the 1.00 and 1.10 RobotC releases, I cannot figure out how to retrieve the datalog to a file on the host PC. I've scoured the documentation in RobotC and online, but cannot find a working example of collecting data and uploading it to the PC.

The sample program I'm using is here:

task main()
   int i=0;
   float k=3.0;

   CreateDatalog(101); // reserve this many (bytes? ints? shorts?) for the data log

   for (i=1; i<=10; i++)
      AddToDatalog( k*i );
      SetUserDisplay( (int) k*i ); // display data log counter on LCD; integers only


   UploadDatalog(1, 100);


By watching the Datalog debug window, it appears the log is successfully created and populated (partially, as per the for loop indices). Based on the green light on the USB IR tower after the 5 second pause, it appears the UploadDatalog() command executes successfully and transmits something, presumably the datalog. However there are no new files on the PC afterward.

There are no menu items in the RobotC IDE with the RCX platform setting, the help does not explain how the datalog upload is supposed to happen, and there are no examples in the C sample files for the RCX.

What are the exact steps to retrieve the datalog? Did this functionality disappear for the RCX from RobotC's IDE? We made our classroom license purchase based on the documentation that said data logging was available for both the RCX and NXT and we definitely need this functionality. It looks like the IDE contains the data in a buffer somewhere and need to know how to access it. Lastly, I have tried both RCX firmware files in the 1.10 release with no apparent differences.

How can I retrieve the datalog from the RCX?


Sun Jan 13, 2008 9:32 pm
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

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.