Brixcc nxc nxt master program

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
roboteer
Posts: 12
Joined: 12 Aug 2011, 04:00

Brixcc nxc nxt master program

Post 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:
timpattinson
Posts: 224
Joined: 30 Oct 2010, 04:10
Location: 127.0.0.1
Contact:

Re: Brixcc nxc nxt master program

Post 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
Commit to Lego Mindstorms StackExchange Q&A http://area51.stackexchange.com/proposals/4105
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
roboteer
Posts: 12
Joined: 12 Aug 2011, 04:00

Re: Brixcc nxc nxt master program

Post 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?
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: Brixcc nxc nxt master program

Post 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 .
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: Brixcc nxc nxt master program

Post 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
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
roboteer
Posts: 12
Joined: 12 Aug 2011, 04:00

Re: Brixcc nxc nxt master program

Post by roboteer »

Thank you very much Mr. Hansen. I will try this. :geek:
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: Brixcc nxc nxt master program

Post 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
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest