ROBOTC.net forums
http://robotc.net/forums/

RobotC IO on host computer?
http://robotc.net/forums/viewtopic.php?f=11&t=5992
Page 1 of 1

Author:  ssddttaa [ Wed Jun 19, 2013 6:38 pm ]
Post subject:  RobotC IO on host computer?

Hey I'm just wondering if I could use RobotC to store information on my computer. I know that I cannot read/write files on the cortex, but can I read/write files on the host computer using RobotC?

Any response would be greatly appreciated.

Thank you.

Author:  JohnWatson [ Thu Jun 20, 2013 2:23 am ]
Post subject:  Re: RobotC IO on host computer?

What type of information exactly do you wish to store on the computer? You can write data that is collected by a robot (sensor values, variable data, etc) to the Debug Stream, which can then be copied and pasted into another file (such as a text document, spreadsheet, etc). If using the spreadsheet method, you will need to make sure that you format the debug stream correctly; you can find more information on how to do this in the link above (there is a tutorial that was written by Dexter Industries that is also worth a good look, which is also linked to at the top of the wiki page).

Author:  ssddttaa [ Thu Jun 20, 2013 10:59 am ]
Post subject:  Re: RobotC IO on host computer?

I wanted to have an automatic way to store the information from the robot's sensor values, variable data, etc. onto a file on my computer so that an external program could then interpret these values. I know I could copy and paste the values from the debug stream, but I am going to be running a large array of tests, and so copying and pasting from the debug stream and manually creating a new file would be quite cumbersome.

Is it possible to read/write data on the host computer? I tried using iostream, fstream, and stdio, but they all don't work so i'm assuming not, but is there any sort of workaround that I could do besides manually copying and pasting?
Thanks

Author:  Ernest3.14 [ Thu Jun 20, 2013 2:55 pm ]
Post subject:  Re: RobotC IO on host computer?

You could use RobotC to create a file (.txt?) which you can access later using built-in RobotC functions.
http://www.robotc.net/wiki/NXT_Functions_File_Access

EDIT: Never mind, that's an NXT link :P

Author:  GiorgosD [ Tue Sep 03, 2013 12:01 am ]
Post subject:  Re: RobotC IO on host computer?

The example on (http://www.robotc.net/wiki/NXT_Function ... cess#Close) is for the NXT. Is it possible to have similar I/O for the VEX Cortex?

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/