LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you find an average of peak values in a chart?

I would ideally like to display a value alongside a chart that represents the average value of every three peaks.  Right now I am only able to display a live value for the peaks. Is this possible?

0 Kudos
Message 1 of 6
(3,635 Views)

Well, if you have the three values, how do you find the average?

 

Hint: Look in the Mathematics -> Probability & Statistics palette.

 

Or you could also simply do it the brute force way of adding and dividing.

0 Kudos
Message 2 of 6
(3,623 Views)

Are you using the peak detector VI linked below? Using the index of peak locations and their corresponding values, you could try using a loop to build an array of the peak locations then averaging every 3 indexes of the array.

 

 

 

Peak Detector VI http://zone.ni.com/reference/en-XX/help/371361H-01/lvanls/peak_detector/

Regards,
Isaac S.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 6
(3,596 Views)

Is there anyway you could show an example of how to do that?

0 Kudos
Message 4 of 6
(3,583 Views)

This is what I have so far

0 Kudos
Message 5 of 6
(3,581 Views)

Are you doing a moving average of the peaks of your signal? 

 

Regards,

Isaac S.

Regards,
Isaac S.
Applications Engineer
National Instruments
0 Kudos
Message 6 of 6
(3,547 Views)