Searches for the maximum and minimum values in the set of input data points specified by sample length where the region of interest is determined by the last sample length data. The indexes are between 0 and sample length.

This VI is similar to the Array Max & Min function.

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 input data point

    input data point is an input data point.

  • ci32.png sample length

    sample length is the length of each set of incoming data. The VI performs computation for each set of data. The default is 100.

    When you set sample length to zero, the VI calculates a cumulative solution for the input data from the time that you called or initialized the VI. When the sample length setting is greater than zero, the VI calculates the solution for only the newest set of input data.

  • ii32.png max index

    max index is the index for the first max value.

    It is 0 ≤ max index < sample length.

  • idbl.png max value

    max value is the maximum value contained in the set of input data points specified by sample length.

  • ii32.png min index

    min index is the index for the first min value.

    It is 0 ≤ min index < sample length.

  • idbl.png min value

    min value is the minimum value contained in the set of input data points specified by sample length.

  • 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.