10-30-2018 01:36 PM - edited 10-30-2018 01:46 PM
For a school project we are making a robot that can play the game of Beerpong. We had the idea to aim with a wii balance board. I tryed out some VI's from old threads but none of them seemed to work for me. The best one i found was : https://forums.ni.com/t5/LabVIEW/Use-Wii-Balance-Board-in-LabVIEW/td-p/710740. I ran this VI but got an error and from some sniffing around i think my balance board isn't correctly transmitting data to labview. I only just started using labview so i am not nearly an expert on this matter. I have connected my balance board via the regular windows bluetooth screen and it shows up as a connected device. The light on my balance board also doesn't stay on as i think it should. I have added some images of the source of the problem.
Is there anyone out their with some knowledge about this matter that is willing to help me? If you need any other information just ask for it. Thanks in advance 😉
11-01-2018 01:18 PM
Hey ThiemeRobbemont,
Error 1 means Input Parameter is Invalid in LabVIEW. It looks like it's unhappy with the WiiMoteHandle it's getting.
Odd that in pic 2 it shows as 5856 but comes out as 10296... then the main VI shows this as 6293. Are you sure your setting the index correctly? Have you downloaded the dll that is also referenced in the thread you linked.
It looks like others had success by:
- Clear bluetooth device list of existing WiiMote connections
- Pair the each board to the onboard bluetooth adapter
- Run the VI
Let us know how it goes,
Rebecca
11-02-2018 08:56 AM
Hi ThiemeRobbemont!!
You need the functions developeds in this other message about Wiimote usage "Using a wiimote with LabVIEW ", so here are the link and the zips :
11-03-2018 10:02 AM
Dear NIRebecca,
I didn't get the same error message as the link you send. I think mine is error -1 and if i remember correctly it had no description and so it was probably made by the creator of the VI?
It is my mistake that the numbers don't match because each picture is from another run of the program. This number changes everytime i run the program. I haven't touched the index so it is still on zero. I thought this was to give every device another ID, am i wrong here? I downloaded the dll file and it is in the same folder as the other SubVi's (shown in picture).
I don't have my balance board with me at the moment, ill try your other suggestions and get back to you!
Greetings Thieme
11-03-2018 10:11 AM
Hi mtrejos
Thanks for the response. From the wiimote part i only need the dll file right? Ill try the updated version of the VI you linked when i have my balance board back. You will hear from me soon.
Greetings Thieme
11-05-2018 07:43 AM
Hi again!
Yes, the only thing you need is the dll file, I'll be waiting for your news!
Regards
11-08-2018 04:22 AM
Dear Rebecca
I reconnected my device to labview and tryed again. This time i got no error and a valid connection has been established. When i turn on the led in labview it turns on on the board, the button on the board can be read in labview aswell. I still dont get any valid inputs, when i stand on the board. I narrowed down the problem to the hid.dll file. This file gets called in the first picture. I also included 2 pictures of the output of the dll file. The second picture shows the output while the button is pressed. The value on the first line is one of the inputs of the dll file in labview. The 14th value can be seen changing from 113/114/112 so this is one of the inputs. The VI doesn't read this value while determining the position of the person standing on the balance board so it has probably nothing to do with that. I am now going to try and determine the problem inside the dll file. I have never worked with these type of files before so any tips are always welcome!
Greetings Thieme