GxDmmSetRelative

Purpose

Sets the relative measurement state

Syntax

GxDmmSetRelative (nHandle, bEnable, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle for a GX2065 board.
bEnable
BOOL
Sets the relative measurement state
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

When in relative measurement mode, the DMM will read the last measurement taken and store it in memory. Any subsequent calls to GxDmmMeasure, GxDmmMeasureEx, GxDmmRead or GxDmmReadEx will result in a measurement that is relative to the baseline value stored when the measurement mode was set to relative.

Example

The following sets the relative measurement state to True:

 

SHORT nHandle, nStatus;

GxDmmSetRelative (nHandle, TRUE, &nStatus);

 

See Also

GxDmmGetRelative, GxDmmRead, GxDmmMeasure, GxDmmSetTriggerMode,  GxDmmGetTriggerMode, GxDmmSetRange, GxDmmGetRange, GxDmmSetFunction, GxDmmGetFunction,  GxDmmGetErrorString