From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

averaging data shown on the graph

I need to find the average of the data shown by white line in the graph attach. I know there are 160 peaks in the data. The graph below shows how the peak looks like when you zoomed in. 

 

 Peakgraph3.PNGPeakgraph2.PNGPeakgraph.PNG

 

 

0 Kudos
Message 1 of 3
(2,182 Views)

Are these peaks always going to be happening at the same location each run? You can just index the array and do the averaging that way. 

 

If you have to programatically locate these peak values it will be a bit trickier...

Nathan Murphy
0 Kudos
Message 2 of 3
(2,135 Views)

I would just do a simple moving average.  Look into the Mean Pt By Pt VI.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(2,098 Views)