Page 1 of 1

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

Posted: 25 Feb 2011, 20:19
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

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

Posted: 25 Feb 2011, 20:34
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

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

Posted: 25 Feb 2011, 20:57
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

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

Posted: 27 Feb 2011, 03:55
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

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

Posted: 04 Mar 2011, 20:06
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