View unanswered posts | View active topics It is currently Fri Mar 22, 2019 7:56 am

Reply to topic  [ 2 posts ] 
Author Message

Joined: Thu Dec 27, 2012 4:21 pm
Posts: 1
Post datalogging
Hey guys, I'm new on the forum.
So I want to do datalogging with VEX cortex microcontroller but I've only found how to do that for NXT. I think this is because the previous VEX cortex lacked in RAM, but the new one I think has enough to do a significant amount of datalogging. I want to be able to run the robot through an exercise with the VEXnet controllers, and record what it is doing and be able to repeat the exercise. I think that this could be done by recording joystick values and whether or not buttons are pressed. I don't know, however, how to write to .csv files using ROBOTC for VEX. Is this possible, and if so how do I do it?

Thu Dec 27, 2012 4:28 pm
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 722
Post Re: datalogging
Unfortunately there is currently no way to save a datalog file on the Cortex; you can, however, display the required values to the Debug Stream window using the Debug Stream commands;even if the robot is not hooked up to a computer, it will store the debug stream values in volatile memory and populate the Debug Stream debugger window once the robot is reconnected to a computer. The text can then be copied over to a text file or spreadsheet for further analysis.

For instance, let's assume you would like to check and write the values of 'sensor1' to the debug stream:

writeDebugStreamLine("%d", SensorValue(sensor1));

This will check the value of sensor1 and write its decimal value to the Debug Stream.

Check out our Blog! And our Facebook page!
Need help? Take a look at our updated help documentation and the ROBOTC Forums.

Wed Jan 02, 2013 10:13 am
Display posts from previous:  Sort by  
Reply to topic   [ 2 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

Search for:
Jump to:  

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