Subject:
|
Re: Does any RCX firmware allow a variable to survice shutdown?
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Tue, 28 Jun 2005 12:59:36 GMT
|
Viewed:
|
1064 times
|
| |
| |
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
|
|
Message has 1 Reply:
Message is in Reply To:
6 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|