GxDmmGetCalibrationSet

Purpose

Returns the currently applied calibration set

Syntax

GxDmmGetCalibrationSet (nHandle, plCalSet, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle for a GX2065 board.
plCalSet
PLONG

Returns the currently applied calibration set.

The following are acceptable values:

  1. GXDMM_CALSET_USER_CALIBRATION: User calibration
  2. GXDMM_CALSET_FACTORY_CALIBRATION: Factory calibrated values
  3. GXDMM_CALSET_FOR_CALIBRATION: Special calibration set used only when calibrating the DMM
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The GX2065 has the ability to load different calibration sets dynamically. The EEPROM stores two full calibration sets, User and Factory. The Factory calibration is done at Marvin Test Soplutions and cannot be overwritten by the end user. The User Calibration stores a copy of the Factory Calibration but can be overwritten by the User if a Calibration License is active.

The Factory calibration can be restored by calling GxDmmRestoreFactoryCalibration. This function will copy the contents of the Factory calibration to the User calibration.

Note that the User Calibration is always loaded by default on initial power up and reset.

Example

The following example gets the currently loaded calibration set:

 

SHORT nHandle, nStatus;

LONG lCalSet;

 

GxDmmGetCalibrationSet (nHandle, &lCalSet, &nStatus);

 

See Also

GxDmmSetCalibrationSet, GxDmmSetCalibrationMeasurements, GxDmmWriteCalibrationEEPROM, GxDmmRestoreFactoryCalibration, GxDmmGetErrorString