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.
Brixcc nxc nxt master program
-
- Posts: 224
- Joined: 30 Oct 2010, 04:10
- Location: 127.0.0.1
- Contact:
Re: Brixcc nxc nxt master program
NXC programs run on the brick, so that is not possible.
Try using a program that can remotely control the nxt from your PC
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/
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
Re: Brixcc nxc nxt master program
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
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
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
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/
http://bricxcc.sourceforge.net/
Re: Brixcc nxc nxt master program
Thank you very much Mr. Hansen. I will try this.
Re: Brixcc nxc nxt master program
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
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/
http://bricxcc.sourceforge.net/
Who is online
Users browsing this forum: No registered users and 0 guests