10-28-2015 03:19 PM
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!
11-16-2015 08:16 AM
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
11-17-2015 10:46 AM
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.
11-17-2015 12:24 PM
any chance I can get a screen shot of your block diagram to see how you have things layed out?
11-17-2015 12:36 PM
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!
11-19-2015 06:13 PM
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.
11-20-2015 09:14 AM
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.