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 / 24135
24134  |  24136
Subject: 
Does any RCX firmware allow a variable to survice shutdown?
Newsgroups: 
lugnet.robotics
Date: 
Tue, 28 Jun 2005 11:38:42 GMT
Viewed: 
849 times
  
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 store a variable
in part of the non-volatile memory like this? Since my program is still there on
start-up, and the firmware is still there, I figure there must be some way to
store the value of a variable there too.

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?



Message has 4 Replies:
  Re: Does any RCX firmware allow a variable to survice shutdown?
 
On Tue, June 28, 2005 6:38 am, Justin said: (...) 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 (...) (19 years ago, 28-Jun-05, to lugnet.robotics)
  Re: Does any RCX firmware allow a variable to survice shutdown?
 
(...) Have a look to David Schilling's great presentation: (URL) (19 years ago, 28-Jun-05, to lugnet.robotics)
  Re: Does any RCX firmware allow a variable to survice shutdown?
 
(...) Global variables in the standard LEGO firmware(s) are persistent (i.e., their values are not lost when you turn off the RCX). You describe turning the RCX off and on using the "start/stop" button. I am guessing that you mean the red button (...) (19 years ago, 29-Jun-05, to lugnet.robotics)
  Re: Does any RCX firmware allow a variable to survice shutdown?
 
(...) Here's a very simple NQC example using the standard LEGO firmware. #pragma noinit int a; task main() { a++; } This simple NQC program will increment global variable zero by one each time it is run. You can turn off the RCX and turn it back on (...) (19 years ago, 29-Jun-05, to lugnet.robotics)

6 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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