Page 1 of 1

Brixcc nxc nxt master program

Posted: 12 Aug 2011, 04:18
by roboteer
Hi,

I am trying to write a master program to control my NXT robot from my pc. I thought that I could write it in Brixcc and run it in the ide. The code does not work properly and was wondering if this is even possible. I am using bluetooth to connect from the pc to the NXT robot. I copied code straight from one of the tutorials and I also played around with some other code but still no results. Any ideas will be well received.

Thanks. :mrgreen:

Re: Brixcc nxc nxt master program

Posted: 12 Aug 2011, 07:46
by timpattinson
NXC programs run on the brick, so that is not possible.
Try using a program that can remotely control the nxt from your PC

Re: Brixcc nxc nxt master program

Posted: 12 Aug 2011, 16:59
by roboteer
So this means that there is no way to write nxc programs that send messages from the pc to the nxt robot just like you can do in the Brixcc ide?

Re: Brixcc nxc nxt master program

Posted: 12 Aug 2011, 17:03
by HaWe
no NXC program, correct, NXC is only for the NXT virtual machine. But you may use C# or C++ or VB or Java (or Python IIRC) for your PC remote control program .

Re: Brixcc nxc nxt master program

Posted: 12 Aug 2011, 22:19
by afanofosc
You can write a program that runs in BricxCC and sends messages to the NXT. It requires the not very well documented and very little used RemoteObjects Pascal Script support (ROPS) that is built into BricxCC. With ROPS files you can set breakpoints, watch values, single step, pause/run, etc... You have full access to the BrickComm object that BricxCC uses to communicate with the NXT so you can do just about anything you can do in BricxCC with this feature.

There is a brief description of this feature here:

http://old.nabble.com/BricxCC-Scripting-td15438140.html

See the BrickComm object's interface here:

http://bricxcc.sourceforge.net/uSpirit.html

John Hansen

Re: Brixcc nxc nxt master program

Posted: 12 Aug 2011, 22:25
by roboteer
Thank you very much Mr. Hansen. I will try this. :geek:

Re: Brixcc nxc nxt master program

Posted: 12 Aug 2011, 22:35
by afanofosc
Please do not hesitate to ask questions or report problems that you encounter while trying to control your NXT or RCX using BricxCC's ROPS support. I will try to help sort out or fix whatever you run into. If you write some cool ROPS programs it might be nice if you can post them to help the community learn more about this little used BricxCC feature.

Sadly, I am heading out the door very shortly to drive up to Ohio and then fly out to Boise, Idaho with my mom to attend the funeral of her brother who died yesterday morning. So I will be out of pocket until Wednesday when I get back to Nashville. If you have any trouble between now and then a resolution may have to wait until then. I will have a chance to check in for a bit on Saturday but not for long.

John Hansen