GxDmmGetMinMax

Purpose

Returns the maximum value recorded since changing function

Syntax

GxDmmGetMinMax (nHandle, pdMin, pdMax, bClear, pnStatus)

Parameters

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.

Comments

The maximum and minimum accumulators are reset when the function is changed or when bClear is set to TRUE.

Example

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);

 

See Also

GxDmmSetFunction, GxDmmGetFunction, GxDmmGetErrorString