Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Capture Data from the cRio (http://www.chiefdelphi.com/forums/showthread.php?t=72062)

goodsky 13-01-2009 21:06

Capture Data from the cRio
 
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

Re: Capture Data from the cRio
 
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

Re: Capture Data from the cRio
 
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


All times are GMT -5. The time now is 02:28.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi