GxDmmSetCalibrationSet

Purpose

Sets the currently applied calibration set

Syntax

GxDmmSetCalibrationSet (nHandle, lCalSet, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle for a GX2065 board.
lCalSet
LONG
Sets 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 Solutions 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 sets the currently loaded calibration set to User Calibration:

 

SHORT nHandle, nStatus;

GxDmmSetCalibrationSet (nHandle, GXDMM_CALSET_USER_CALIBRATION, &nStatus);

 

See Also

GxDmmGetCalibrationSet, GxDmmSetCalibrationMeasurements, GxDmmWriteCalibrationEEPROM, GxDmmRestoreFactoryCalibration, GxDmmGetErrorString