LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Wiimote and Nxt Error - Please help

Hi,

 

Please Help. I am trying to interface the wiimote and the nxt it's not working. I keep getting an error that says that the node cannot be parsed. When I click on the error, it points to the wiimote constructor. Another one points to the Wiimote Events Changed vi.

 

If anyone has successfully interfaced them both, I would appreciate it if you could give me some help. I am trying to interface this for my nephew as his birthday present.

 

Please, please, please...help me.

 

thanks

0 Kudos
Message 1 of 5
(6,553 Views)
Are you trying to run the Wiimote example code on the NXT?  That's not going to work. The NXT is a very limited run-time and supports the primitives that are in the NXT palette only.  If that's not what you are doing, please post a much more detailed description.
Joel Sumner
NI-Shanghai
0 Kudos
Message 2 of 5
(6,536 Views)

I'm using some wiimote example code which only works with the wii. The program I used lights certain leds when respective buttons on the wiimote are pressed. I tried inserting the nxt in the code and then I got the node parsing error. How would you suggest I go about this problem since the nxt has limited run time?

 

Any suggestion is much appreciated.  

0 Kudos
Message 3 of 5
(6,533 Views)
Thanks JS for your help. I am using the wiimote example. Do you have any ideas as to how I can go about interfacing the wii remote with the nxt? thanks
0 Kudos
Message 4 of 5
(6,528 Views)

olams wrote:

I'm using some wiimote example code which only works with the wii. The program I used lights certain leds when respective buttons on the wiimote are pressed. I tried inserting the nxt in the code and then I got the node parsing error. How would you suggest I go about this problem since the nxt has limited run time?

 

Any suggestion is much appreciated.  


I'd suggest starting with the simplest Wiimote code (Simple Polled Acquisition.vi) and running it on the PC.  I don't have the code in front of me but it looks like you can get button status in that loop.  When you detect a certain button is pressed, then relay the command to the NXT.

 

There are two ways to relay the command.  The simplest is to use NXT direct commands using the NXT toolkit. The direct commands actually run on the PC but can actuate and read the NXT motors and sensors.  Look at the direct commands examples in the toolkit

 

 The other way is to send the information from the PC to the NXT using a mailbox.  Then, have a program that runs on the NXT that reads the mailbox and takes action based on the data the PC sends to the NXT in the mailbox.  There should be an example of mailbox usage (or PC->NXT communication) in the toolkit.

 

Hope that helps.

Joel Sumner
NI-Shanghai
0 Kudos
Message 5 of 5
(6,520 Views)