Datalogging in RobotC?

I’m looking for a way to record some sensor/motor/time samples then retrieve them on a PC to plot data with Excel. Any tip about the best way to achieve this?

Thanks, James. Exactly what I was looking for!

One quick note to add: in ROBOTC 4.30 and higher, you can now directly save the data you write to the Debug stream to a CSV file for easier exporting into Excel (or as a text file, if you prefer). This can be done through the ‘File -> Save’ option in the Debug Stream window once it is open and has data written to it.

Debug Stream Data Saving: http://i.imgur.com/uQ38oi7.png

Even better!