LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

peak finding

Solved!
Go to solution

While I have an audience... The goal of this program is to take a 2D array (concentration in column 0, direction in column 1), and find peaks in the concentration column.  A peak must consist of atleast 5 points ( a peak with atleast two data points on either side, where the minimum point on either side is at most 50% of the peak).  Of course there can be multiple peaks in the array and since we are dealing with data taken on a circle there can be half a peak at 0-10 degrees and half a peak at 350-360 degrees, this is why I tack three copies of the array together.  If anyone has an elegent way to solve this problem I would love to hear it. See attached for an example of the 2D array.

 

Thanks!

0 Kudos
Message 1 of 4
(3,210 Views)
Solution
Accepted by topic author jon_mcbee

Can you use the Peak Detector.vi to accomplish this task and then manually examine the endpoints?  Can you send sample data?

-cb

Message 2 of 4
(3,206 Views)
See attached for a sample array (it has already been wrapped).  I have tried using the peak finder for this but that was a while back and perhaps I should revisit it as I can't remember why I didn't like it.  That's the problem with dropping a project for a year and then coming back to it...
0 Kudos
Message 3 of 4
(3,203 Views)
It seems that the Peak Detector.vi may be an answer, atleast for the simpler cases.  I will have to test it out some more.  Thank you for pointing me back to it again! 
0 Kudos
Message 4 of 4
(3,198 Views)