β09-20-2011 03:04 PM - edited β09-20-2011 03:09 PM
my name is danniel. now im doing research in biomechanic laboratory, to make forceplate and its program.
forceplate made by me, using 4 loadcell in each edge of this forceplate. each loadcell generate 3column data of voltage input from wheatstone bridge
the problem is: due to my lab finansial problem, we couldnt have any DAQ and we just have 1 signal conditioning that support only 1 channel π forceplate itself will generate 12 channel, so i make an automatic switch based on transistor function to switching 12channel input voltage into just 1 channel.
now i should separate previous 1channel input voltage into 12channel data in LabVIEW,then multiplying those data with calibrations matrix to obtain force data for each loadcell.
i have a lot of problem in this program(i write my problem in my vi,attach to this post)
sorry for my bad english. thanks π
β09-20-2011 03:06 PM - edited β09-20-2011 03:07 PM
sorry i forgot to attach this vi
i use Labview 8.5 to create this vi π
thanks
β09-20-2011 03:29 PM
What problems are you having?
You have a lot of repeated code such as all of those for loops where only one item is different. That would be a good candidate for a subVI.
Beyond that, I think you are doing a lot of array manipulations that aren't necessary. A lot of get array subsets.
You should look at the Reshape Array function. That can take a 1-D array and turn it into a 2-D array (and vice versa if necessary). I bet if you convert to a 2-D array, the each channel will be a column (or possibly a row), that you can then use Index array to break out the data.
β09-21-2011 05:53 AM - edited β09-21-2011 06:02 AM
i dont know how to get each element of an array in simple way(e.g using for loop or case structure).
another questions is in vi program attached in this post below
i just repeated array subset alot.
can u give me an example how to do that ?
β09-21-2011 06:32 AM
Hey
I have a finished program. I will attach what I have. I got help too. I hope this helps.
I have sub vi's as well. Have a look at the main - let me know if ya need the other files
Good Luck
β09-21-2011 06:39 AM
wow ned thankyou very much for ur vi example.
have u check my vi?
i dont understand how to separarate 1channel into 12channel column in simple way, can u help ned?thanks
β09-21-2011 06:56 AM
The signals from my plate (6 signals) are just raw electrical signals, then I push these through my matrix provided by the manufacturer in my main program. The diagonal numbers of the Matrix are the amplitude multipliers, and the numbers around the diagonal are offsets.
Basically the matrix data is treated like an Array. So if you want a signal, Index the array (0 to whatever).
I do this when I bust out my main signals (before Matrix), Index it and then push it through the filter. We had high frequency noise on our signals.
I have folders supporting my main prgrm - Controls Folder and Subvi's Folder
I attached the Bertec calibration vi and the Zero Offset vi (they are in my Subvi folder)
Hope it helps
β09-21-2011 07:00 AM
Hey
Here is a link to my first question in the Forum about our Force Plate:
Lucither helped me the whole way through.
I would recommend you contact he or she
They really helped me get mine working
Ned
β09-21-2011 08:15 AM
i knew that Lucither helped you in your post about forceplate code( i keep following your post).
i have read your vi(it is super!!), i dont understand ur whole vi, but i try to understand it. π
the differences are: my forceplate is not a commercial one, so i use 4 loadcell to create this forceplate, and each loadcell has different calibration matrix.
it makes the way more complicated since i dont know alot about array manipulation.
by the way thanks for ur help ned.
β10-06-2011 08:41 AM
Hope these help
ttyl