Log in

View Full Version : Capture Data from the cRio


goodsky
13-01-2009, 21:06
We are attempting to capture information from the cRio while the robot is running to put into an excel file. We are using WindRiver and have used the Target Console for a while but can not find a way to extract the information there. I can not find where in the documentation it talks about recording information during a program, does anyone have a good way to do this?

wt200999
13-01-2009, 21:11
I think you can use dprintf if you look in BAEUtilities.h. You can save stuff to a file on your robot. What are you using for a terminal when you print the data to it?

jee7s
13-01-2009, 21:27
You probably don't want to use dprintf...it may work, but it is intended for debug and may write into a debug or error file which would be hard to parse.

Looking deeper into BAE utilities, you'll be lead to a function "fwrite" declared in stdio.h. That's your best way to write a file.

After the file is written, you can FTP into the cRIO to retrieve it...I believe the user is "root" with no password.

-Jeff Erickson, FRC 41