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:
|
874 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
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: ![Does any RCX firmware allow a variable to survice shutdown? -Justin Fisher (28-Jun-05 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![You are here](/news/here.gif) ![](/news/46.gif) ![Re: Does any RCX firmware allow a variable to survice shutdown? -Justin Fisher (29-Jun-05 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: Does any RCX firmware allow a variable to survice shutdown? -Philippe Hurbain (28-Jun-05 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: Does any RCX firmware allow a variable to survice shutdown? -John Hansen (29-Jun-05 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: Does any RCX firmware allow a variable to survice shutdown? -John Hansen (29-Jun-05 to lugnet.robotics)](/news/x.gif)
- 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
|
|
|
|