LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Peak Detection software and adding the entire maximum amplitudes that it finds from my graph

Solved!
Go to solution

Hello,

 

I'm trying to take my maximum amplitudes and multiply them by some constant that i determine and then have each amplitude added together into a 32-bit integer. An example of use is sensing the accleration of 5 punches multiplying the max amplitudes by a constant, add them all together, and output a "score" for that persons punches.

 

Attached is a simple version of my code. The amplitdue output from the Peak detection is where I'm having trouble because it is outputing an array and i want to add all the values together to a single 32-bit integer.

 

Thanks for the input, it is greatly appreciated!!!!!

 

Zack

0 Kudos
Message 1 of 2
(2,469 Views)
Solution
Accepted by topic author zaal3595

Zack, 

 

Try using an Index Array followed by an Unbundle by Name to get a numeric output. Then you can use Add Array Elements to sum them. 

 

Amplitude addition.png

 

Let me know if that is what you were looking for!

 

Katie

Katie Collette
National Instruments
0 Kudos
Message 2 of 2
(2,446 Views)