Returns the maximum and minimum values found in an array, along with the indexes for each value.
array
An
n-dimensional array of any type.
This input also supports waveforms.
Data Type Changes on FPGA
When you add this node to a document targeted to an FPGA, this input has a default data type that uses fewer hardware resources at compile time.
max value
Maximum value found in
array.
Data Type Changes on FPGA
When you add this node to a document targeted to an FPGA, this output has a default data type that uses fewer hardware resources at compile time.
max index(es)
Index for the first
max value.
If
array
is multidimensional,
max index(es)
is an array whose elements are the indexes for the first maximum value in
array.
If
array
is empty,
max index(es)
and
min index(es)
are -1.
Data Type Changes Based on Input Array Dimension
The following table explains how the output data types change based on the dimension of the input array.
Dimensions in a numeric
array
|
max index(es)
and
min index(es)
data type
|
1
|
scalar integers
|
More than 1
|
1D arrays that contain the indexes of the maximum and minimum values
|
min value
Minimum value found in
array.
Data Type Changes on FPGA
When you add this node to a document targeted to an FPGA, this output has a default data type that uses fewer hardware resources at compile time.
min index(es)
Index for the first
min value.
If
array
is multidimensional,
min index(es)
is an array whose elements are the indexes for the first minimum value in
array.
If
array
is empty,
max index(es)
and
min index(es)
are -1.
Data Type Changes Based on Input Array Dimension
The following table explains how the output data types change based on the dimension of the input array.
Dimensions in a numeric
array
|
max index(es)
and
min index(es)
data type
|
1
|
scalar integers
|
More than 1
|
1D arrays that contain the indexes of the maximum and minimum values
|
Where This Node Can Run:
Desktop OS: Windows
FPGA:
All devices (only within an optimized FPGA VI)
Web Server: Supported in VIs that run in a web application