Sets the currently applied calibration set
GxDmmSetCalibrationSet (nHandle, lCalSet, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle for a GX2065 board. |
lCalSet |
LONG |
Sets the currently applied calibration set.The following are acceptable values:
|
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
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.
The following example sets the currently loaded calibration set to User Calibration:
SHORT nHandle, nStatus;
GxDmmSetCalibrationSet (nHandle, GXDMM_CALSET_USER_CALIBRATION, &nStatus);
GxDmmGetCalibrationSet, GxDmmSetCalibrationMeasurements, GxDmmWriteCalibrationEEPROM, GxDmmRestoreFactoryCalibration, GxDmmGetErrorString