Gx3348CalSetMode

Purpose

Sets the calibration constants to a default value before starting the calibration procedure

Syntax

Gx3348CalSetMode (nHandle, nCalibrationMode, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle for the PXI board.
nCalibrationMode
SHORT
Enables or disables the calibration mode:
0. GX3348_CAL_MODE_DISABLED: Disables calibration mode
1. GX3348_CAL_MODE_ENABLED: Enables calibration mode
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

This function sets the driver to calibration mode. Calibration mode causes the ADC to use default gain and offset constants.

Example

The following example calibrates DAC A:

 

SHORT nHandle, nStatus;

DOUBLE dRefPositive, dRefNegative, dRefZero;

 

Gx3348Initialize (1, &nHandle, &nStatus);

Gx3348CalSetMode(nHandle, GX3348_CAL_MODE_ENABLED, &nStatus);

Gx3348CalSetDacVoltagePoint(nHandle, GX3348_RAIL_DAC_A, GX3348_CAL_DAC_VOLTAGE_POINT_POSITIVE, &nStatus);

DMMMeasure(&dRefPositive);

Gx3348CalSetDacVoltagePoint(nHandle, GX3348_RAIL_DAC_A, GX3348_CAL_DAC_VOLTAGE_POINT_ZERO, &nStatus);

DMMMeasure(&dRefZero);

Gx3348CalSetDacVoltagePoint(nHandle, GX3348_RAIL_DAC_A, GX3348_CAL_DAC_VOLTAGE_POINT_NEGATIVE, &nStatus);

DMMMeasure(&dRefNegative);

 

Gx3348CalDac(nHandle, GX3348_RAIL_DAC_A, dRefPositive, dRefNegative, dRefZero, &nStatus);

Gx3348CalWriteEEPROM(nHandle, &nStatus);

 

See Also

Gx3348CalSetDacVoltagePoint  Gx3348CalWriteEEPROM, GxPdoGetErrorString