LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Peak Pulse Averaging

My application requires peak pulse averaging only, not the entire waveform. I am currently capuring the peak value, converting to an engineering unit, and displaying the numerical value. I now need to capture just the numeric value and average until a reset avg is pressed on the front panel.
0 Kudos
Message 1 of 4
(3,249 Views)
You could use a shift register to contain an array of your measurements and use the Mean function to calculate the average. In an event for the reset button, clear the array.
0 Kudos
Message 2 of 4
(3,232 Views)
Hi there,

Since you are looking for only measuring the average of the peaks and not the whole waveform I will recommend using the "Waveform Peak Detection.vi" (not in LabVIEW Base) to first extract the peaks. You can thereafter take the average of all the maximum values from within each peak.

The "Waveform Peak Detection.vi" is not the easiest VI to use, so the best way to learn its functionality, is to play with an example. Therefore I have created an example that extracts all local maxima of the peaks in the waveform and averages these maxima.



In case this example doesn't cover what you are looking for, please refer to the shipping example called "Pulse and Transition Measurements.vi" and let me know if this is closer to what you want. Also, please read this online tutorial that describes different peak detection techniques:

Peak Detection Using LabVIEW and Measurement Studio

Have fun!

Message Edited by Philip C. on 06-16-2005 01:48 AM

- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
Download All
0 Kudos
Message 3 of 4
(3,218 Views)

Hi all, 

 

I noticed you created a waveform. but I tried using your example vi to detect average peaks from a DAQ AI and it doesn't seem to be working for me.  I'm using USB 6212 daq board and LV 7.1.

 

My continuous AI signal is not exactly a set frequency and it is not repeating so I can detect the peak values but I can't seem to take the average of the last 3 or 4 peaks.  I like to just display avg numberical value of the last 3 peaks.

 

When I use a shift register to hold the previous N-1 values they cannot be displayed forever because of my buffer size.

 

Thanks!

 

Message Edited by immortalc on 10-14-2009 10:58 AM
0 Kudos
Message 4 of 4
(2,933 Views)