View unanswered posts | View active topics It is currently Mon Dec 22, 2014 8:08 am






Reply to topic  [ 5 posts ] 
Saving a list for use in a later script 
Author Message
Rookie

Joined: Tue Apr 24, 2012 7:52 pm
Posts: 3
Post Saving a list for use in a later script
i am trying to program a vex robot to take imputs from a controller for 15 seconds, and than duplicate them. i think i have figured this out, but i want to be able to save the generated list so i can use it later, on a completly different script. How can this be done?


Tue Apr 24, 2012 7:57 pm
Profile
Rookie

Joined: Tue Apr 24, 2012 7:52 pm
Posts: 3
Post Re: Saving a list for use in a later script
I was thinking maybe se the inital value for the list.


Tue Apr 24, 2012 8:42 pm
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: Saving a list for use in a later script
You would be able to do this by saving the data in a file. Since there is no support for file IO yet, you cannot do this onboard the Cortex or PIC.

_________________
sudo rm -rf /


Tue Apr 24, 2012 9:31 pm
Profile
Rookie

Joined: Fri Jan 27, 2012 6:57 pm
Posts: 40
Post Re: Saving a list for use in a later script
You could write to the debug stream with the control information, then plug in your robot to the computer (or have it plugged in while the robot is running) and copy the control information out, and then save it somewhere on your computer, or put it back in a new program you could download to the robot.


Tue Apr 24, 2012 11:39 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: Saving a list for use in a later script
Like sumasmreq said, the Debug Stream might be a good option. If you go to File > Open Sample Program > Advanced > Debug Stream Demo, you'll find some sample code.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Fri Apr 27, 2012 11:04 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.