LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use Wii Balance Board in LabVIEW

Hi, I have downloaded these files and am running them successfully to read data from the balance board. I have added a 'Write to Measurement File' block to write the data to Excel. However, this is slowing down my sampling rate. Has anyone else been able to write the data to file without altering the sampling rate? Thanks!

0 Kudos
Message 71 of 77
(1,178 Views)

Hi,

 

I am also trying to connect the Wii balance board to LabView. 

Which vi's are you exactly using? And are you using the LabView 64 or 32 bit, because my laptop gives an error that I should use LabView 32 bit instead of the 64 bit version.

 

For your sample rate problem, do you have your write to measurement file inside or outside a loop? Because when you put it inside a loop, it slows down the vi, you might want to put the write to measurement file outside the loop, that should solve it. 

 

Thank you

0 Kudos
Message 72 of 77
(1,136 Views)

I am using the 64 bit version without any errors. I have changed the write to measurement file to write delimited spreadsheet, and that seems to work much better. However, I am still struggling with how to determine the elapsed time/sampling rate. I am using the files posted by WillB on this forum.

0 Kudos
Message 73 of 77
(1,109 Views)

any chance I can get a screen shot of your block diagram to see how you have things layed out?

0 Kudos
Message 74 of 77
(1,104 Views)

This is a screenshot of the main file. I haven't yet figured out how to capture time and to write everything into 1 file. When I tried writing to 1 file, the weight, and cop (x and y) vaules were all mixed together in the same column for each plate. I am trying to record time, weight, cop x, and cop y for 2 plates simultaneously. Thanks for any help in advance!

0 Kudos
Message 75 of 77
(1,096 Views)

I'm no expert, but when I approach a write-2-file problem like you're describing, I first try to visulaize how I want the data layed out and sometimes make a mock-up of the layout in excel.

 

In this case, where you're getting single data points of each measurement (weight, copX, copY, etc.) per iteration of the while loop, try builing an array of the data you want to save, then write that data to file. This will write all the data at once to one file.

 

I've provided a brief example of how I would lay it out.

 

hope this helps.

0 Kudos
Message 76 of 77
(1,065 Views)

Hi, 

 

Look at my attached file, this the write spreasheet file will not slow down your loop, and use the time count as WillB explained. 

0 Kudos
Message 77 of 77
(1,045 Views)