Returns the maximum value recorded since changing function
GxDmmGetMinMax (nHandle, pdMin, pdMax, bClear, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle for a GX2065 board. |
pdMin |
PDOUBLE |
Returns the minimum value recorded |
pdMax |
PDBOULE |
Returns the maximum value recorded |
bClear |
BOOL |
Resets the minimum/maximum accumulators |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The maximum and minimum accumulators are reset when the function is changed or when bClear is set to TRUE.
The following example returns the minimum and maximum values without resetting the accumulators:
SHORT nHandle, nStatus;
DOUBLE dMin, dMax;
GxDmmGetMinMax (nHandle, &dMin, &dMax, FALSE, &nStatus);