In the lower-right corner of the popup window, click “ Save Data Log“, and a window will open, allowing you to save the data to a CSV file. One great feature of the datalog is that you can 1-click export to CSV. Once you run your program, you’ll get something like this, where you can scroll through the entire run and look at the data in the columns you’ve selected:įirst you’ll need to expand the small “Program Debug” window by clicking “Show Datalog” you’ll then see the options at right.
#ROBOTC WHILE LOOP CODE#
Once you download a program with datalog code and have the appropriate debugger window selected to display, your screen will look something like this: Go to Robot > Debugger Windows, and make sure that “Datalog” is selected. In order to see any of the data you just recorded, you’ll need to set the correct debugger window to show.
#ROBOTC WHILE LOOP PLUS#
(There’s also datalogAddValueWithTimeStamp, which does the same thing with - duh - a time stamp, plus a few others I have not used.) So far I’ve only used the datalogAddValue function, which I’ll talk about here. There are not that many items to choose from. The RobotC functions for the datalog can be found in the left-hand column of the help page above. The datalog feature only works if you add code to your program to tell it to keep track of the stuff you want. Instead, as shown in the screenshot below, you’ll want to navigate to Command Library – VEX Cortex > ROBOTC > Datalogging. This is NOT the place to find datalog information (thanks a lot, RobotC). The confusing part of finding this datalog information is not done yet from the main help page, in the left-hand column is a table of contents, and one of the items at the top level of navigation says “ROBOTC Debugger”.
#ROBOTC WHILE LOOP FULL#
I include the full path here instead of embedding the link because RobotC has various different wiki/help sections, and as shown in the URL, this one is specifically for VEX. So, start here on the RobotC help page for VEX. One thing that has prompted me to write this post is that I find the RobotC datalog documentation difficult to locate via Googling, so I wanted to make finding it easier for everyone else. The Help Page’s Secret Hiding Place Revealed