Hello everyone,
First of all, I started to use Labview two months ago so I`m a total beginner. (Using Labview 19, Windows 10 Pro, i5-6500 @ 3.2 GHz)
Now the challenge:
In general, I want to stimulate the muscles of the forearm to measure the resulting angle of the wrist-based on the stimulation intensity. So higher stimulation amplitude leads to a larger wrist angle.
Therefore, I use two while loops. One is calculating the stimulation intensity which should be increased every second (1 Hz). The second is about measuring the wrist angle of the wrist using a goniometer with a sample rate of 100 Hz.
While executing the program, I want to save the data into an Excel file to relate stimulation intensity/ voltage and resulting wrist angle. But when I pass the data out of the while loops to the Excel sheet, the resulting format is a 2D-array for each loop. If I would build an array out of these two, I would result in a 3D-array which is not appropriate for Excel. (See attachment)
If I try to fit both parts of the program into one loop, after some time the buffer of the DAQ is overflowing because the sample rate is too high for the slow execution of the calculating part (for stimulation). The high sample rate is necessary to get an accurate value of the wrist angle though.
Everything besides (Measuring angle, stimulation, saving 2D data) this is working properly.
Please give me some advice about how to deal with this situation.
P.S. I`m glad to be alive in the 21. century, so that I can ask you guys for help!
Thank you so much!