LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a wiimote with LabVIEW

Hi all,

 

I'm new looking at Wii and Labview.  I'm getting some error using Usage.vi.

Currently, I'm using IVT blue soleil to connect the Wiimote, the wimote.ddl and wimotelib are in the same folder that usage.vi. Finally, WiimoteTest.exe is working fine. Usage.vi results in error -1 "Wiimote Set Output Report.vi:16".

What have I done wrong?

 

Also, not sure to understand the meaning of Index in usage.vi

 

 

Thanks for your time,

Olivier

0 Kudos
Message 161 of 220
(3,570 Views)

Thanks JohannS.  You're awesome.

0 Kudos
Message 162 of 220
(3,484 Views)

Hi JohannS!

 

I'm trying to create a labview VI that allows me to get the values of
> the gyro in the motion plus, using wiimotelib 1.8 developed by Brian Peek. What I did was, i
> used the VI's of the version 1.7, specifically the
> subGetWiiMoteState(AccelButtonsBalance).vi, and erased the
> balanceboard state and de accelerometers state. Also I added a .net
> class with the Wiimote.MotionPlusState, and stracted the values X,Y
> and Z from there with another 2 property nodes, just like it was done
> with the values from the accelerometers. I left the the buttons
> state, and where I'm supposed to be receiving the accelerometers data
> I should be getting de MP data. But I keep getting this error: Error
> 1172 occurred at Error accessing property
> WiimoteLib.Wiimote.WiimoteState of NULL ObjectId,
> (System.ArgumentNullException: Key cannot be null.
> Parameter name: key
> ) in subGetWiiMoteState(AccelButtonsIR).vi
> Can you help me out with this?

 

Thank you!

0 Kudos
Message 163 of 220
(3,404 Views)

Hi JohannS!

 

I'm trying to create a labview VI that allows me to get the values of
> the gyro in the motion plus, using wiimotelib 1.8 developed by Brian Peek. What I did was, i
> used the VI's of the version 1.7, specifically the
> subGetWiiMoteState(AccelButtonsBalance).vi, and erased the
> balanceboard state and de accelerometers state. Also I added a .net
> class with the Wiimote.MotionPlusState, and stracted the values X,Y
> and Z from there with another 2 property nodes, just like it was done
> with the values from the accelerometers. I left the the buttons
> state, and where I'm supposed to be receiving the accelerometers data
> I should be getting de MP data. But I keep getting this error: Error
> 1172 occurred at Error accessing property
> WiimoteLib.Wiimote.WiimoteState of NULL ObjectId,
> (System.ArgumentNullException: Key cannot be null.
> Parameter name: key
> ) in subGetWiiMoteState(AccelButtonsIR).vi
> Can you help me out with this?

 

Thank you!

0 Kudos
Message 164 of 220
(3,404 Views)

Hello,

 

I'm a little bit confused working on my Motion Plus in Labview, using Brian Peeks WiimoteLib 1.8: When I'm running my VI and collecting data from accelerator and gyrometer parallel the gyro is polling data with a frequency of approx. 100 Hz, while accelerator is just polling about 6 Hz and unreasonable data.

 

But when I just use the accelerator without gyro-process everything is fine. Does anybody know a way how to use both modules simultaneously with a frequency of 100 Hz? Attached you find the VI running gyro and acc. at the same time.

 

Thanks for you great help in advance,

Frank

0 Kudos
Message 165 of 220
(3,278 Views)

Hi OD,

 

I am also new and have the same problem too. I am using Labview 8.2.

I able to pair the wiimote to my laptop and functioning with a software called Wiinremote.exe that manage to get the XYZ data. So i take it as the BT paring is successful between the wiimote and laptop.

However when i tried to run the Usage.vi, i got the same error "-1 Wiimote Set Output Report.vi".

 

Can anybody please help to advise?

 

Thank you in advance.

 

ML

0 Kudos
Message 166 of 220
(3,073 Views)

Hi,

 

I solved the problem with a third party software called "Blue Soleil Space" that takes care of some background managements that Wiinremote.exe does. This has allowed me to fully enjoy the DLL Wimote.

 

http://www.bluesoleil.com/products/SoftwareDetail.aspx?ProductID=S0001201005190001

 

Olivier

0 Kudos
Message 167 of 220
(3,055 Views)

HI OD,

 

i installed Blue Soleil and connected the wiimote to my laptop. However same problem still happens. It seems whenever the Wiimote Set Output Report.vi loaded from the hid.dll:HidD_SetOutputReport, the return value is 0, then in the True case, error code -1 output to the error out.

 

I tried on a blank VI, with LV protocol "Bluetooth Discover", try to search all locally installed BT devices, but the indicator showed 0 devices. I wonder is it a problem with the hand shake between LV to the BT driver?

 

thank you for your advise.

 

ML.

0 Kudos
Message 168 of 220
(3,032 Views)

I'm having the same issue.  Including after installing blue soleil - it made no difference.  Using LV 8.6 W7 and getting error 1172. WiimoteTest.exe works for both windows default bluetooth connection as well as bluesoleil.

Anyone???

0 Kudos
Message 169 of 220
(2,713 Views)

Any chance the problem resides with the USB bluetooth adapter? I'm using a iogear GBU421.  What ones are known to work?

0 Kudos
Message 170 of 220
(2,672 Views)