Analyzes the input sequence X for valid peaks and keeps a count of the number of peaks encountered and a record of Indices, which locates the points that exceed the threshold in a valid peak. Details
![]() |
X is the input sequence. The number of samples in X must be greater than the specified width. If X is less than or equal to width, the VI sets count to zero and returns an error. |
![]() |
threshold is the level that all valid peaks must equal or exceed for the duration of width samples. The default is 0.0. |
![]() |
width determines the minimum width, in number of samples, that the input sequence X must remain at or above the threshold value for the candidate peak to be considered valid. width must be greater than zero. If width is less than or equal to zero, the VI sets count to zero and returns an error. The default is 1. |
![]() |
Indices contains the beginning index of all valid peaks. |
![]() |
count is the number of valid peaks. |
![]() |
error returns any error or warning from the VI. Refer to Signal Processing Error Codes for more information about these conditions. |
A peak is valid where the elements of X exceed the threshold and then return to a value less than or equal to the threshold and the number of elements that exceed the threshold is equal to at least width.