To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 931
    Re: Just some really basic questions... —Dean Husby
   (...) 5. You get five slots. (...) Yes, with Version 2 of the firmware. (...) From what I understand you get 6k of program space, you can use it all in a program or spread it around 2 to 5. Your choice. (...) Sort of. Computer to RCX control is (...) (24 years ago, 29-Jan-01, to lugnet.robotics.rcx.nqc)
   
        Re: Just some really basic questions... —Jeff Small
   Okay, cool, so I get 5 slots (my bad...I knew that too...I don't know *why* I kept saying 3) and the TOTAL space I can use is 6k? Does that include the datalog feature? Can you pass variables into other programs? How do you use these 'Codes (...) (24 years ago, 29-Jan-01, to lugnet.robotics.rcx.nqc)
   
        Re: Just some really basic questions... —Andi Scharfstein
     (...) Yes. (...) Yes. (...) You send a code from RCX #1 to RCX #2, RCX #2 is awaiting code... Based on the code number, it can perform previously defined tasks (complex tasks too, if you like) (...) ... Don't know. More complications, I'd say. (24 years ago, 29-Jan-01, to lugnet.robotics.rcx.nqc)
   
        Re: Just some really basic questions... —Dean Husby
   (...) Yes. To be more precise I believe it's 6100 bytes of space. (The SCOUT has 400 bytes of space) (...) if message = 5 then jump off table... It's that easy... (...) Well if you can keep all the code in one program it's easier. But you get 32 (...) (24 years ago, 29-Jan-01, to lugnet.robotics.rcx.nqc)
   
        Re: Just some really basic questions... —Bernd Frassek
   (...) Dean, I am not sure that this is correct what you write about global variables. As far as I know, the followoing is correct: - 32 global variables are only valid WITHIN one program slot. - Within this slot, all tasks, functions and subroutines (...) (24 years ago, 30-Jan-01, to lugnet.robotics.rcx.nqc)
   
        Re: Just some really basic questions... —Dean Husby
   (...) Your example did as I have stated. Global variables are global across all program slots. Dean -- Coin-Op's For Sale!: (URL) Lego Workshop: (URL) Lego Club: (URL) (24 years ago, 30-Jan-01, to lugnet.robotics.rcx.nqc)
   
        Re: Just some really basic questions... —Bernd Frassek
   (...) program (...) Dean, you are right and meanwhile I could test it. However, the definition for the global variables must be in the SAME ORDER order for both of the programs. If you would do this: SLOT 1: int testvar1 = 1; int testvar2 = 2; int (...) (24 years ago, 31-Jan-01, to lugnet.robotics.rcx.nqc)
   
        Re: Just some really basic questions... —Dean Husby
   (...) Thank you Frank, I had forgotten about that. Thank you for bringing it up. This info will save considerable suffering in future! Dean -- Coin-Op's For Sale!: (URL) Lego Workshop: (URL) Lego Club: (URL) (24 years ago, 31-Jan-01, to lugnet.robotics.rcx.nqc)
 

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