To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 24137
24136  |  24138
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:
  Re: Does any RCX firmware allow a variable to survice shutdown?
 
Thanks for your help everyone. As predicted, it was simply that I was defining my variables in the program, and it hadn't occurred to me that they were already persistant and I was actually resetting them myself. Can there ever be a better answer (...) (19 years ago, 29-Jun-05, to lugnet.robotics)

Message is in Reply To:
  Does any RCX firmware allow a variable to survice shutdown?
 
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. Is there a third-party firmware or something that allows you to (...) (19 years ago, 28-Jun-05, to lugnet.robotics)

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

 
Verified and Trusted Team of Hackers
8 hours ago
Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR