logo       

Re: Does any RCX firmware allow a variable to survice shutdown?: msg#00080

hardware.lego.robotics

Subject: Re: Does any RCX firmware allow a variable to survice shutdown?

On Tue, June 28, 2005 6:38 am, Justin said:
> I'd like my robot to be able to store a variable, such that when I turn the
> RCX
> off, then back on again, with the start/stop button, the value of the variable
> is retained, not wiped.
>
> I program in NQC, using Bricx Command Centre as the dev tools. I currently use
> the Lego firmware 2.0. Is this possible with my current set-up? Is it possible
> with any set-up?

I know this is possible with BrickOS.

However, it may even be possible with the NQC. I've seen where people use the
same
value across different programs. You just need to make sure you store the
variables
in the same order.

So, I'd assume you can do that with a single program. Just make sure you don't
initialize your variables at the start of the program.

Have you tried accessing the same variables without initalizing them?

Steve



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise