Array Max & Min function

From LabVIEW Wiki
Jump to: navigation, search
Array Max & Min function
Object information
Owning palette Array palette
Type Function
Requires Basic Development Environment

The Array Max & Min function returns the maximum and minimum values and indices in an array.

Usage

Connect an array of any size and dimensionality to the array input terminal in order to receive the maximum and minimum values and indices.

Array Max & Min - Numeric Array.png

The output changes depending on the contained data type of the array. If two elements have the same value, the element with the lowest index is returned.

Description
Numeric Numeric elements are evaluated based on their value.
String Strings are evaluated based on their ASCII values. If two elements have the same ASCII character, the next character is evaluated (i.e. "AA" < "AB").
Cluster Clusters are evaluated based on their first contained element (cluster element at index zero).

Best practice