Print robot data

Hi—
I was wondering if there is a way to print real time data from brain to A text file, or to laptop VEX Code V5 console ?

For example I would like to print drivetrain motor rotations and inertial sensor data every 1 second for diagnosis after robot stops.

Thanks so much!

Yes, you can print to the console using whatever language you are using’s default way of printing to the console and it will show up in the vexcode console (assuming the laptop is connected to the robot). In blocks this would be the print block, in python this would be the print function, and in cpp this would be the printf function or directly streaming data to std::cout. You can also plug an SD card into the brain and read/write from it, but it takes more time to get the data onto your computer to look at it then using the terminal.

1 Like