|
Page 1 of 1
|
[ 5 posts ] |
|
Saving a list for use in a later script
| Author |
Message |
|
Kylona
Rookie
Joined: Tue Apr 24, 2012 7:52 pm Posts: 3
|
 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 |
|
 |
|
Kylona
Rookie
Joined: Tue Apr 24, 2012 7:52 pm Posts: 3
|
 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 |
|
 |
|
magicode
Moderator
Joined: Tue Sep 14, 2010 9:19 pm Posts: 495
|
 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 |
|
 |
|
sumasmreq
Rookie
Joined: Fri Jan 27, 2012 6:57 pm Posts: 40
|
 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 |
|
 |
|
jbflot
Site Admin
Joined: Tue May 15, 2007 9:02 am Posts: 383
|
 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.
|
| Fri Apr 27, 2012 11:04 am |
|
|
|
Page 1 of 1
|
[ 5 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 0 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
|
|