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?

Author:

Kylona [ Tue Apr 24, 2012 8:42 pm ]

Post subject:

Re: Saving a list for use in a later script

I was thinking maybe se the inital value for the list.

Author:

magicode [ Tue Apr 24, 2012 9:31 pm ]

Post subject:

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.

Author:

sumasmreq [ Tue Apr 24, 2012 11:39 pm ]

Post subject:

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.

Author:

jbflot [ Fri Apr 27, 2012 11:04 am ]

Post subject:

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.