05-24-2009 05:50 PM
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
05-26-2009 10:07 AM
05-26-2009 10:35 AM
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.
05-26-2009 10:50 AM
05-27-2009 09:34 AM
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.