Peak Detector PtByPt (Not in Base Package)

Finds the location of peaks or valleys in the set of input data.

initialize, when TRUE, initializes the internal state of the VI.
input data is the data to be processed.
threshold peak tells the VI to ignore peaks that have an amplitude that is less than the threshold peak value.
threshold valley tells the VI to ignore valleys that have an amplitude that is less than the threshold valley value.
width is the size of the region of interest. The default is 3. If width is an odd number, the VI can find a peak or valley only at the position (width+1)/2. If width is even, the VI can find a peak or valley only at the position width/2. Peaks or valleys represent local maximums, peaks, or local minimums, valleys, where width describes the region of interest.
peak identifies a peak within the region width.
valley identifies a valley within the region width.
error returns any error or warning condition from the VI. Refer to Point By Point Error Codes for more information about these conditions.