Analyzes the set of input data points specified by width for valid peaks and detects the set of points that exceed the threshold in a valid peak.

This VI is similar to the Threshold Detector VI.

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


icon

Inputs/Outputs

  • cbool.png initialize

    initialize, when TRUE, initializes the internal state of the VI.

  • cdbl.png x

    x is an input data point.

  • cdbl.png threshold

    threshold is the level that all valid peaks must equal or exceed for the duration of width samples. The default is 0.0.

  • ci32.png width

    width determines the minimum width, in number of samples, for the set of input data points. detected becomes TRUE when width remains at or above the threshold value. The default of width is 1.

  • ibool.png detected

    detected is TRUE when the set of samples in width exceeds the threshold.

  • ii32.png index

    index indicates the beginning index of the most recent peak when detected is TRUE.

  • ii32.png error

    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.

  • A peak is valid where the consecutive elements of X exceed the threshold and the number of elements that exceed the threshold is equal to at least width.

    See Threshold Detector VI help for more information.