Analysis Library Chapter 3
LabWindows/CVI Standard Libraries 3-24 © National Instruments Corporation
MaxMin1D
int status = MaxMin1D (double inputArray[], int numberofElements,
double *maximumValue, int *maximumIndex,
double *minimumValue, int *minimumIndex);
Purpose
Finds the maximum and minimum values in the input array, as well as the respective indices of
the first occurrence of the maximum and minimum values.
Parameters
Input inputArray double-precision
array Input array.
numberofElements integer Number of elements.
Output maximumValue double-precision Maximum value.
maximumIndex integer Index of maximumValue in
inputArray.
minimumValue double-precision Minimum value.
minimumIndex integer Index of minimumValue in
inputArray.
Return Value
status integer Refer to error codes in
Table 3-2.
MaxMin2D
int status = MaxMin2D (void *inputArray, int numberofRows,
int numberofColumns, double *maximumValue,
int *maximumRowIndex, int *maximumColumnIndex,
double *minimumValue, int *minimumRowIndex,
int *minimumColumnIndex);
Purpose
Finds the maximum and the minimum values in the 2D input array, as well as the respective
indices of the first occurrence of the maximum and minimum values. The inputArray is
scanned by rows.