LabVIEW

cancel
Showing results forΒ 
Search instead forΒ 
Did you mean:Β 

forceplate problem : how to separate column in array?

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 πŸ™‚

0 Kudos
Message 1 of 10
(3,565 Views)

sorry i forgot to attach this vi

 

i use Labview 8.5 to create this vi πŸ™‚

 

thanks

0 Kudos
Message 2 of 10
(3,564 Views)

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.

0 Kudos
Message 3 of 10
(3,555 Views)

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 ?

0 Kudos
Message 4 of 10
(3,543 Views)

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

0 Kudos
Message 5 of 10
(3,538 Views)

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

0 Kudos
Message 6 of 10
(3,536 Views)

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

 

 

 

 

Download All
0 Kudos
Message 7 of 10
(3,533 Views)

Hey

 

Here is a link to my first question in the Forum about our Force Plate:

 

http://forums.ni.com/t5/LabVIEW/need-some-help-I-am-writing-code-for-a-force-plate-FX-FY-FZ/m-p/1416...

 

Lucither helped me the whole way through.

 

I would recommend you contact he or she

 

They really helped me get mine working

 

Ned

0 Kudos
Message 8 of 10
(3,520 Views)

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. 

 

 

 

 

 

 

0 Kudos
Message 9 of 10
(3,516 Views)

Hope these help

 

ttyl

0 Kudos
Message 10 of 10
(3,485 Views)