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 / 260
259  |  261
Subject: 
Re: converting Mac to PC and the Lego remote
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Thu, 2 Dec 1999 16:35:05 GMT
Viewed: 
2231 times
  
Yes I am just converting programs and no the language is not the same
regardless of the enviornment.
On a PC wait = until on a Mac,  void does not compile, and several others.
I recently received  The Unofficial Guide to LEGO® MINDSTORMS™ Robots
By Jonathan B. Knudsen.  When I downloaded the programs off the internet to
use with the book, they would not compile.  I had to change a lot of the code
and the program then would not work with the robot.  I was hoping someone knew
of a conversion page so I would not have to make an entirly new program.

I also no long need help with the lego remote.

Any help that you offer is greatly appreciated.
thanks
Jenny

In lugnet.robotics.rcx.nqc, Dave Baum writes:
In article <FM2KxB.Bz2@lugnet.com>, "Jenny" <jenbkr@iastate.edu> wrote:

Are there any reference pages that show how to convert nqc from a Mac to a PC
version, vice versa?  Or perhaps a program that will do it?

I assume you want to move an NQC program (and not the compiler itself)
from a Mac to a PC.  If so, just copy the file.  The NQC language is the
same regardless of the environment it is used in (Mac, Windows, Linux,
FreeBSD, OS/2...)

Also, the two IDEs (MacNQC and RcxCC) use the same compiler as the command
line version of NQC, so again programs are portable.

I am also having some trouble with the Lego remote.  It can send messages to • a
RCX, but I only am able to do this using Lego Mindstorms.  Does anyone know
the code you have to use?
thanks much
Jenny

I think something like this will work (it plays a sound each time if
receives a message):

task main()
{
while(true)
{
   until (Message() != 0);
   PlaySound(SOUND_CLICK);
   ClearMessage();
}
}


---

Dave Baum

--
reply to: dbaum at enteract dot com



Message has 2 Replies:
  Re: converting Mac to PC and the Lego remote
 
Hi Jenny, It sounds like you have two different versions of NQC. Make sure you get NQC 2 for both Mac and PC. Regards, Jonathan (...) (25 years ago, 2-Dec-99, to lugnet.robotics.rcx.nqc)
  Re: converting Mac to PC and the Lego remote
 
(...) The problems you are seeing are differences between version 1.x and 2.x of the NQC language (not Mac/PC differences). Here are a few differences between 1.x and 2.x. This is by no means a comprehensive list, but it should at least allow you to (...) (25 years ago, 3-Dec-99, to lugnet.robotics.rcx.nqc)

Message is in Reply To:
  Re: converting Mac to PC and the Lego remote
 
(...) I assume you want to move an NQC program (and not the compiler itself) from a Mac to a PC. If so, just copy the file. The NQC language is the same regardless of the environment it is used in (Mac, Windows, Linux, FreeBSD, OS/2...) Also, the (...) (25 years ago, 2-Dec-99, to lugnet.robotics.rcx.nqc)

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
    

Custom Search

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