LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a wiimote with LabVIEW

I have tried to implement this in Windows 7, 64-bit. I get a stream of errors with sub vi.s down to the block which calls the wiimote.dll file. I was given a pop-up warning that this file was not supporting 64-bit operation. I am a bit naive to how this limitation could be overcome? Can the .dll be recreated for 64-bit compatibility? Does anyone know where I could find this?

0 Kudos
Message 191 of 220
(3,779 Views)

Hi JOshua,

 

I run the lib on Windows 7/64bits without problem. Not sure what is going on there. Try the code I post on  message 190. This is the code I run on my PC.

I modified the DLL a little and compiled in that enviroment, this may explain why it works on my Windows7/64 bits.

 

0 Kudos
Message 192 of 220
(3,739 Views)

1. Question:

Is there a fix for the Wii MotionPlus INSIDE (RVL-CNT-01-TR) remote?

I have tried to fix the wiimoteLib.dll by my self. I changed the PID from 0x0306 to 0x0330 but that seams not are enough. Because I get also some other if I uncomment this error messages, the WiimoteTest.exe is starting but only the buttons and the rumble is working.

 

2. Question:

Because of the problems with the new remote I bought an old Wii + Wii MotionPlus.

But I have also problems with the Wii MotionPlus.

2.1. The WiimoteManaged(wml17) have no Wii MotionPlus support.

2.2. The Wiimote Driver.zip from JairoRotava (post 190) always crash when a Wii MotionPlus is connected.

2.3. The wiimote.zip from amaury10 (post 185) also not working if I try to read out the acceleration and the rotation from the gyro at the same time. But then I don't get the acceleration, only the gyro is working. If I deactivate the Wii MotionPlus readout (Wiimote get wii motion plus.vi) the acceleration is working.

 

Is there a workaround for this problem?

 

Labview 11.0 32-Bit

Windows XP 32-Bit

Windows Bluetooth stack

0 Kudos
Message 193 of 220
(3,719 Views)

Hey Szepe,

You may look for some Wiimote descriptoin - like RVL-CNT-01 inside the dll driver. If I remember well it look for the PID and check the description afterward (and it will be RVL-CNT-01-TR instead of the expected one).

Do you get any error when using Wiimote Driver (post 190)? It works fine with me, but I developed it with a chinese montionplus, that may not behave exactly the same an original motionplus.

The problem 2.3 is the following: when enabling the montionplus the report is changed, and you don't get acceleration data anymore. You can change the wiimote.dll and chenge the report mode when detecting the montionplus to enable acceleration data. It is also possible to do this under labview.

I'm interested on the problems you are having with driver from post 190. Please contact me so we can fix it - jairo.rotava@gmail.com. We can work together with the RVL-CNT-01 issue and Motionplus - post 190. When working this driver is very nice.

 

Jairo

0 Kudos
Message 194 of 220
(3,713 Views)

Hey there, im trying to use my wiimote to controll a robot that my robotics team built and am having some trouble connecting the wiimote to my computer, how do you do it?

If it helps, im am using the classmate netbook that FIRST gave to it's rookie FRC teams this year

0 Kudos
Message 195 of 220
(3,672 Views)

Hi Team 4376,

 

It might be a good idea for you to post on the FIRST forums (ni.com/FIRST), as the user group there will be best equipped to answer your question.

 

As for a place to start, the Wiimote communicates via Bluetooth, so I would suggest that you buy (or find) a cheap USB Bluetooth dongle and download the needed drivers on your netbook.  You will have to associate the Wiimote drivers with your USB device through Windows Device Manager.

 

Hope that helps!

Tom L.
0 Kudos
Message 196 of 220
(3,726 Views)

Update dll driver and labview  drivers:
- works with genuine and fake  MotionPlus
- works with wiimote with MP inside (not sure about TR models)
- Kalman filter now gives you pitch, roll and yaw
- gyro filters to remove offset
- Example works on any BT stack

 

File uses 7zip compression. Labviewxxx.7z is the laview example.

If you want to look at the dll code you will need the C# Wiimote file - not needed to run labview sample.

 

Example:

Labview Wiimote.jpg

Download All
0 Kudos
Message 197 of 220
(3,656 Views)

Hi!

i would like to know if you can post yor code for labview 2010????

i would really aprreciate it.

 

Thanks!

 

0 Kudos
Message 198 of 220
(3,636 Views)

Try this version. I hope I managed to convert it to labview 2010 correctly.

If you get a problem I suggest you download the latest labview version from NI site and convert the right files.

Some older labview version will not work with the graphics use in the example, but should not have problem with the driver.

0 Kudos
Message 199 of 220
(3,608 Views)

I couldn't open it, it stills saying that the file version is 11, 

Thank you anyway, i'll try to get the newest version.

0 Kudos
Message 200 of 220
(3,571 Views)