Peak Detector PtByPt VI

Owning Palette: Signal Operation PtByPt VIs

Requires: Full Development System

Finds the location of peaks or valleys in the set of input data points specified by width.

This VI is similar to the Peak Detector VI.

Note  By default, reentrant execution is enabled in all Point By Point VIs.

 Add to the block diagram  Find on the palette
initialize, when TRUE, initializes the internal state of the VI.
x is an input data point.
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 from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.