Array Max & Min function: Difference between revisions
Appearance
Add content |
mNo edit summary |
||
| Line 1: | Line 1: | ||
[[File:Array Max and Min - Terminals.png|thumb|Array Max & Min function]] | [[File:Array Max and Min - Terminals.png|thumb|Array Max & Min function]] | ||
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Array{{!}}Array palette|type=function}} | {{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Array{{!}}Array palette|type=function|icon=Array Max and Min.png}} | ||
The '''Array Max & Min''' function returns the maximum and minimum values and indices in an array. | The '''Array Max & Min''' function returns the maximum and minimum values and indices in an array. | ||
Latest revision as of 12:09, 29 June 2020

| Object information | |
|---|---|
| Owning palette(s) | Array palette |
| Type | Function |
| Requires | Basic Development Environment |
| Icon | |
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.
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
- Use the Search 1D Array function for Boolean arrays.
