GxDmmSetResolution

Purpose

Sets the measurement resolution

Syntax

GxDmmSetResolution (nHandle, pdwResolution, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle for a GX2065 board.
dwResolution
DWORD
Sets the measurement in terms of digits of resolution.
  1. GXDMM_RESOLUTION_3_5_DIGITS – 3 and a ½ Digits of Resolution
  2. GXDMM_RESOLUTION_4_5_DIGITS – 4 and a ½ Digits of Resolution
  3. GXDMM_RESOLUTION_5_5_DIGITS – 5 and a ½ Digits of Resolution
  4. GXDMM_RESOLUTION_6_5_DIGITS – 6 and a ½ Digits of Resolution
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Resolution determines the number of digits returned in a normalized reading. Larger resolutions will result in slower measurement times for a given function. Setting the resolution will result in the aperture being set to a corresponding value internally when not in AC function.

Example

The following example sets the resolution to 6 ½ digits:

 

SHORT nHandle, nStatus;

GxDmmSetResolution (nHandle, GXDMM_RESOLUTION_6_5_DIGITS, &nStatus);

 

See Also

GxDmmGetResolution, GxDmmSetRange, GxDmmGetRange, GxDmmSetFunction, GxDmmGetFunction, GxDmmGetErrorString