GxDmmGetReadStatus

Purpose

Returns the measurement status

Syntax

GxDmmGetReadStatus (nHandle, pbValid, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle for a GX2065 board.
pbValid
PBOOL
Returns the DMM’s Valid Reading flag value
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Every time a measurement is made by the instrument, the pbValid flag will be TRUE. After the measurement data is read by the PC using an API function call, this flag is cleared and set to FALSE. This function allows the user to determine if the measurement data stored in the DMM is fresh.

Example

The following example gets the current trigger timer rate:

 

SHORT nHandle, nStatus;

BOOL bValid;

GxDmmGetReadStatus (nHandle, &bValid, &nStatus);

 

See Also

GxDmmSetTriggerMode, GxDmmGetTriggerMode, GxDmmSetRange, GxDmmGetRange, GxDmmSetFunction, GxDmmGetFunction, GxDmmGetErrorString