|
|
In lugnet.robotics.rcx.nqc, Ahui Herrera wrote:
> <<snip>>
> > > he,he,he...
> > > I'm going to bring back a 12 year old thread.
> > > I'm using Windows XP and cannot figure out how to set the NQC_OPTIONS=-Trcx2
> > > option. Any idea?
> > >
> > > -Ahui
> >
> > Hi Ahui,
> >
> > You can set environment variables on XP by going to Control Panel / System,
> > click Advanced tab, and click "Environment Variables" near the bottom.
> >
> > You can add it to either system variables (available to all users) or just for
> > the user you normally login with.
> >
> > Add a new variable, name=NQC_OPTIONS, value=-Trcx2.
> >
> > Hope this helps.
> >
> > ROSCO
>
> Thanks ROSCO
>
> I did that and it does work when I am using the "command line" of NQC.
> When I do either:
>
> nqc -Trcx2 -d counter.nqc
> or
> nqc -d counter.nqc
>
> However in BricxCC when I hit compile I get an error saying
> Undefined function (SetUserDisplay)
> ???
> -Ahui
Never mind I got it now!
It's a 2 step process.
1) Use the instructions you provided to set the "variable" in Windows XP.
!!!RESTART THE COMPUTER!!!! !!!RESTART THE COMPUTER!!!!
2) When you start BrixCC select RCX2 from the drop-down list.
DUH!!!! =)
The simple things trip me up. ROFL!
Now off to dust the old mindstorm off as I found a non-LEGO use for it.
-AHui
|
|
|
<<snip>>
> > he,he,he...
> > I'm going to bring back a 12 year old thread.
> > I'm using Windows XP and cannot figure out how to set the NQC_OPTIONS=-Trcx2
> > option. Any idea?
> >
> > -Ahui
>
> Hi Ahui,
>
> You can set environment variables on XP by going to Control Panel / System,
> click Advanced tab, and click "Environment Variables" near the bottom.
>
> You can add it to either system variables (available to all users) or just for
> the user you normally login with.
>
> Add a new variable, name=NQC_OPTIONS, value=-Trcx2.
>
> Hope this helps.
>
> ROSCO
Thanks ROSCO
I did that and it does work when I am using the "command line" of NQC.
When I do either:
nqc -Trcx2 -d counter.nqc
or
nqc -d counter.nqc
However in BricxCC when I hit compile I get an error saying
Undefined function (SetUserDisplay)
???
-Ahui
|
|
|
In lugnet.robotics.rcx.nqc, Ahui Herrera wrote:
> In lugnet.robotics.rcx.nqc, Bernd Frassek wrote:
> > Using NQC together with RCXCC (by Mark Overmars) is a fine combination that
> > fulfills my demands for writing software, debugging and testing. Unfortunately,
> > Mark Overmars, the author of RCXCC will not do any further development for
> > this product.
> >
> > Meanwhile, I succeeded in "implementing" all the new features of the latest NQC
> > version into RCXCC. Here is what I did:
> >
> > For writing programs, RCXCC functions just as a text editor with the aibility
> > to high-light and colorize special words. These words are arranged in lists
> > (keywords, functions, macros, templates) and stored in the Windows registry. I
> > put in all of the new features (e.g. access control, monitor, setuserdisplay,
> > etc.). I also added templates for all new NQC commands.
> >
> > The new NQC file was copied into the RCXCC directory.
> >
> > An Environment variable was defined (thanks again to Dave Baum who gave me the
> > hint and did foresee to check environment variables befor NQC is executed).
> > Since I am using Windows 95 I had to do this within the AUTOEXEC.BAT file (when
> > using higher versions of Windows or NT you can define this under File
> > Properties in a "nice" window):
> >
> > Set NQC_OPTIONS=-Trcx2
> >
> > The result of all this works perfectly.
> >
> > If there is anyone who wants to work with the same NQC/RCXCC combination, I can
> > send the exported RCXCC registry key file via mail. All you will have to do is
> > to copy this key file file onto your desktop and afterwards double-click on it.
> > The registry will be updated immediately and you can use RCXCC with the new
> > features. Sometimes I am "overwhelmed" that things are so easy with Windows and
> > don't cause any problems ... ;-)
> >
> > Bernd
>
> he,he,he...
> I'm going to bring back a 12 year old thread.
> I'm using Windows XP and cannot figure out how to set the NQC_OPTIONS=-Trcx2
> option. Any idea?
>
> -Ahui
Hi Ahui,
You can set environment variables on XP by going to Control Panel / System,
click Advanced tab, and click "Environment Variables" near the bottom.
You can add it to either system variables (available to all users) or just for
the user you normally login with.
Add a new variable, name=NQC_OPTIONS, value=-Trcx2.
Hope this helps.
ROSCO
|
|
|
In lugnet.robotics.rcx.nqc, Ross Crawford wrote:
> In lugnet.robotics.rcx.nqc, Dave Baum wrote:
> > In article <I6DH4L.1zwI@lugnet.com>,
> > "Ross Crawford" <rosscraw@bigpond.net.au> wrote:
> >
> > > I can't seem to get SetUserDisplay to compile. When I compile my program, it
> > > gets "Error: undefined function 'SetUserDisplay'".
> > >
> > > I thought it might be the version of NQC (3.0a1) so I downloaded 2.5r3, but
> > > same
> > > error.
> > >
> > > Seems strange because SelectDisplay works fine, but I want to display a
> > > variable.
> > >
> > > Any ideas?
> > >
> > > ROSCO
> >
> > My guess is that NQC hasn't been told to target the 2.0 api, so it is
> > defaulting to 1.0 which does not have SetUserDisplay(). See
> > http://bricxcc.sourceforge.net/nqc/doc/faq.html#-Trcx2 for a more
> > detailed explanation.
>
> Thanks Dave. I didn't notice the RCX2 option in Bricxcc, works great now! Just
> to clarify, the only difference between RCX 1 & 2 (from the compile target POV)
> is the firmware it's running?
>
> ROSCO
????
Still a bit confused on this?
I am running WinXP and not sure where to use the SET command?
Opening up a DOS windows via CMD does show that I have this:
NQC_OPTIONS=-Trcx2
along with a lot of other windows variables but when I go and compile I still
get the error the OP was getting.
=(
-AHui
|
|
|
In lugnet.robotics.rcx.nqc, Bernd Frassek wrote:
> Using NQC together with RCXCC (by Mark Overmars) is a fine combination that
> fulfills my demands for writing software, debugging and testing. Unfortunately,
> Mark Overmars, the author of RCXCC will not do any further development for
> this product.
>
> Meanwhile, I succeeded in "implementing" all the new features of the latest NQC
> version into RCXCC. Here is what I did:
>
> For writing programs, RCXCC functions just as a text editor with the aibility
> to high-light and colorize special words. These words are arranged in lists
> (keywords, functions, macros, templates) and stored in the Windows registry. I
> put in all of the new features (e.g. access control, monitor, setuserdisplay,
> etc.). I also added templates for all new NQC commands.
>
> The new NQC file was copied into the RCXCC directory.
>
> An Environment variable was defined (thanks again to Dave Baum who gave me the
> hint and did foresee to check environment variables befor NQC is executed).
> Since I am using Windows 95 I had to do this within the AUTOEXEC.BAT file (when
> using higher versions of Windows or NT you can define this under File
> Properties in a "nice" window):
>
> Set NQC_OPTIONS=-Trcx2
>
> The result of all this works perfectly.
>
> If there is anyone who wants to work with the same NQC/RCXCC combination, I can
> send the exported RCXCC registry key file via mail. All you will have to do is
> to copy this key file file onto your desktop and afterwards double-click on it.
> The registry will be updated immediately and you can use RCXCC with the new
> features. Sometimes I am "overwhelmed" that things are so easy with Windows and
> don't cause any problems ... ;-)
>
> Bernd
he,he,he...
I'm going to bring back a 12 year old thread.
I'm using Windows XP and cannot figure out how to set the NQC_OPTIONS=-Trcx2
option. Any idea?
-Ahui
|
|
|