02-15-2021 12:41 AM
Hello Everyone!!!
I have a signal with multiple peaks. I am interested to find the location of 1st and 2nd highest peak only.
Can anyone please help.
I have applied a derivative method then savitzky-Golay filter and then peak detection method on my input signal but i am getting many locations.
I only want 2 highest locations.
Attach is the screenshot of my VI and Front panel diagram.
Thanks,
02-15-2021 03:29 AM - edited 02-15-2021 03:30 AM
Here is an idea ...
just sort the results by amplitude and pick the first two ...
Adding the bells ( at least two peaks? ) is your homework 😉
Why not posting the data? (Or a vi including the data ? Hint: Edit: Make current values default 😉 )
02-15-2021 10:49 PM
Thank you for your reply and suggestion.
But.. it didn't work for me. The method u suggested gives me highest value 10.70 and 2nd highest value 10.64. but on actual the second highest peak is on 15.53. i am interested in peak values where slope is zero not the side points.
can u suggest me other approach?
Thank you
02-16-2021 02:06 AM
First you should read the help files of the vis you are using 😉
peak search uses a fit approach and the parameters have influence on the result...
after you have a good guess of the two max peak positions, you can cut out an area around it and look for the maximum..
here I made something similar