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 / 1385
1384  |  1386
Subject: 
problems using arrays in NQC
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Wed, 27 Mar 2002 08:48:06 GMT
Viewed: 
3441 times
  
hi
I'm building a lego turing machine and in the code certain data values need
to be taken into an integer array. (sepcifically, inputing a binary no.
using light sensor and a stack of yellow and black bricks). However, the
program didn't compile (bricxcc build 3.3.4.2) with the error message that
RCX does not support arrays.
In the Help it says "The RCX2 target supports arrays (the other targets do
not have suitable support in firmware for arrays)."
I'm running the RCX2 firmware i.e. firm0328.lgo but I have a RCX 1.5 (it
says 1.0). I checked a site that says when it asks for rcx2 this is the
firmware you need. But it gives me the error still. Can anyone in the know
pls. help me out?

Also I have another problem. In  bricxcc when i press F9 it gives me a list
of functions i can use. But when i try and use SetUserDisplay() it says
undefined function. I need this to display a number on the LCD screen. Is
there something I need to initialize before this? Why doesn't the following
code segment work?

task main()
{
SetUserDisplay (1011, 0);
}

Pls. reply if you know where I've messed up. Thanks a lot.

regards
aatish
aatish@mac.com
aatish.0catch.com



Message has 1 Reply:
  Re: problems using arrays in NQC
 
Hi, you have to tell BricxCC/NQC that you are compiling for the RIS 2.0 firmware. To do this, select "RCX2" in the "Searching for the brick" window that appears at startup (you can also make this the default value in Preferences>Startup). (...) (23 years ago, 27-Mar-02, to lugnet.robotics.rcx.nqc)

3 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