NXT-G block which calls e.g. NXC routine, lib, or executable

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
mdege
Posts: 2
Joined: 25 Feb 2011, 20:04

NXT-G block which calls e.g. NXC routine, lib, or executable

Post by mdege »

Hi,

I am fairly new to the NXT. We bought it for my son's 10th birthday. I think it is too early for him to start with NXC, but I would like to incorporate own hardware to our creations.

I don't have any labview, but I do have plenty of low level coding experience. Would it be possible to write a or a few generic NXT-G blocks which could be used to call externally compiled code?

The idea is that I could write code in NXC which my son could call using a NXT-G block.

Any ideas?

Mike
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: NXT-G block which calls e.g. NXC routine, lib, or executable

Post by mightor »

There is no such thing as "dll" or something to that effect on the NXT. You can't link NXC and NXT-G stuff together, unfortunately.

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
timpattinson
Posts: 224
Joined: 30 Oct 2010, 04:10
Location: 127.0.0.1
Contact:

Re: NXT-G block which calls e.g. NXC routine, lib, or executable

Post by timpattinson »

mdege wrote: but I would like to incorporate own hardware to our creations.
You might like to look at the Extreme NXT book.
It's a wonderful resource for NXT hardware hackers AND it has nearly all of it's examples in NXT-G
-Tim
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/
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: NXT-G block which calls e.g. NXC routine, lib, or executable

Post by muntoo »

Hmmm... You may want to look at RXEDumper and beg John Hansen for help. I think it may be possible*, but I don't really know how.

*Unlikely, but this would be the method, if it were possible
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
mdege
Posts: 2
Joined: 25 Feb 2011, 20:04

Re: NXT-G block which calls e.g. NXC routine, lib, or executable

Post by mdege »

Hi,

Thanks for your replies. I was just wondering whether it would be technically possible or if just nobody had thought of this before. I guess I will have to dig deeper into the system and learn more about it. I will put the Extreme NXT book on my wish list that sounds interesting.

Mike
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 11 guests