LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

threshold control for peak detector

Hi there,

 

I am building a vi which recieves a set of data, and then needs to find the peaks in the data (there should be no more than 3). The problem is that the peaks are variable in amplitude, depending on the source and I need a method of controling the threshold without having to examine the raw data. The ideal solution would be a graph being displayed with a horizontal line whose height / distance from the threshold and is actively controllable.

 

Any ideas?

 

 

0 Kudos
Message 1 of 2
(2,676 Views)
What I usually do for automated peak detection is, assuming one ofthe the desired peaks is the highest values in the original array, I find the max value in this array and then set my threshold to some percentage of this value (i.e. 0.7 times the max value).
Randall Pursley
Message 2 of 2
(2,673 Views)