Plz Help; How to use NXT block in NXC ?
Plz Help; How to use NXT block in NXC ?
hello, :$
Plz help me again
I made blocks using "NXT 2.0 Programming";
and I want to call them in NXC ? what's the code for it ?and what are some examples ?
Plz help me again
I made blocks using "NXT 2.0 Programming";
and I want to call them in NXC ? what's the code for it ?and what are some examples ?
Re: Plz Help; How to use NXT block in NXC ?
You can't, the two programming environments do not work together.
Just re-write it what you want to do in NXC.
Just re-write it what you want to do in NXC.
A sophistical rhetorician, inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination that can at all times command an interminable and inconsistent series of arguments to malign an opponent and to glorify himself.
Re: Plz Help; How to use NXT block in NXC ?
It is actually sort of possible to use NXT-G blocks in NXC but probably not in the way that you desire. You can decompile the RXE produced by a simple NXT-G program that uses your desired block and then wrap the resulting NBC assembly language code, with some (perhaps a lot of) manual editing, in an NXC "asm" block. I know Ron McRae has done things like this before. It is non-trivial but can in some cases be a worthwhile project.
John Hansen
John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
http://bricxcc.sourceforge.net/
Re: Plz Help; How to use NXT block in NXC ?
that's very helpful .. though I don't know how to do it I'm not very good with compiling and seems like it will need effort and time :""(afanofosc wrote:It is actually sort of possible to use NXT-G blocks in NXC but probably not in the way that you desire. You can decompile the RXE produced by a simple NXT-G program that uses your desired block and then wrap the resulting NBC assembly language code, with some (perhaps a lot of) manual editing, in an NXC "asm" block. I know Ron McRae has done things like this before. It is non-trivial but can in some cases be a worthwhile project.
John Hansen
Re: Plz Help; How to use NXT block in NXC ?
You'll need the RXEDumper utility.
Using this tool (put it in
download the RXE to your computer, and then run it through RXEDumper. You'll be rewarded with some confusing NBC code.
To use the NBC assembly code in NXC, wrap in an
However, you may find it easier just to look at what the NXT-G code does, and try to convert that into NXC statements.
Using this tool (put it in
[LEGO MINDSTORMS directory]\engine\project\
and use it through the Tools menu in NXT-G),download the RXE to your computer, and then run it through RXEDumper. You'll be rewarded with some confusing NBC code.
To use the NBC assembly code in NXC, wrap in an
asm
statement. More about asm...Code: Select all
asm {
one or more lines of NBC assembly language
}
Re: Plz Help; How to use NXT block in NXC ?
Yup, that's what I did.However, you may find it easier just to look at what the NXT-G code does, and try to convert that into NXC statements.
Understanding the steps to take s the hardest part, re-writing the code in a different language is relatively easy.
A sophistical rhetorician, inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination that can at all times command an interminable and inconsistent series of arguments to malign an opponent and to glorify himself.
Re: Plz Help; How to use NXT block in NXC ?
is it possible to do the opposite ?
to Make NXC blocks and use them in NXT-G?
to Make NXC blocks and use them in NXT-G?
Re: Plz Help; How to use NXT block in NXC ?
I don't think so, apart from NXT-G, the only way is to use Labview (a free version is available just for this purpose).
http://blog.electricbricks.com/en/2010/ ... g-labview/
http://blog.electricbricks.com/en/2010/ ... g-labview/
A sophistical rhetorician, inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination that can at all times command an interminable and inconsistent series of arguments to malign an opponent and to glorify himself.
Re: Plz Help; How to use NXT block in NXC ?
I'll use Labview for my project nexth-g-t wrote:I don't think so, apart from NXT-G, the only way is to use Labview (a free version is available just for this purpose).
http://blog.electricbricks.com/en/2010/ ... g-labview/
thanks for always helping :]
Who is online
Users browsing this forum: No registered users and 0 guests