GxCntSetCalibrationMode

Purpose

Sets the Calibration mode.

Syntax

GxCntSetCalibrationMode (nHandle, nMode, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
nMode
SHORT
Calibration mode:
  • 0 = GXCNT_CAL_OFF: The current calibration factors are retained. Stable calibration factors preclude a possible shift in results during a period of data collection.
  • 1 = GXCNT_CAL_CONTINUOUS: Calibration is performed continuously approximately once every 60 seconds. Default settings.
  • 2 = GXCNT_CAL_ONCE: Selecting “Once” causes an immediate execution of the calibration procedure, and then disables future calibration. This mode ensures that data is taken with recent calibration factors, and prevents re-calibration from causing a systematic shift in results.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The calibration mode controls how often the calibration routine is invoked.

Example

The following example sets the Calibration mode to on:

 

SHORT nHandle, nStatus;

GxCntSetCalibrationMode (nHandle, GXCNT_CAL_ON, &nStatus)

 

See Also

GxCntGetCalibrationMode, GxCntGetErrorString