Gx1838CalByUserSetup

Purpose

Initiates a new calibration process and sets up the specified DAC for calibration.

Syntax

Gx1838CalByUserSetup (nHandle, nDac, nCalDataTarget, nChannel, dCalLoadVal, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1838 board.
nDac
SHORT
Specified DAC number to be calibrated.
0.  GX1838_DAC_A
1.  GX1838_DAC_B
2.  GX1838_DAC_C
nCalDataTarget
SHORT
Specified calibration data target to be applied to as follow:
2. GX1838_CAL_DATA_USER_NONVOLATILE
4. GX1838_CAL_DATA_USER_VOLATILE
nChannel
SHORT
Specified output channel number 0-7where the calibration load is connected.
dCalLoadVal
DOUBLE
Calibration load value in ohms. Value is measured by the user and can be between 64Ω to 50KΩ.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Calling this function will imitate a calibration process and set a path between the calibrated DAC and the load connected on the output connector (J3). The specified calibration data target will be applied to either the dynamic calibration that is not stored on the on-board EEPROM or user calibration that at the end of the calibration process will be stored to the on-board EEPROM for the specified DAC:

Following this function, the user must call the Gx1838CalByUserSetupDacForMeasurement function in order to follow the calibration sequence.

Example

The following example sets up DAC B for calibration using a 200Ω load that is connected to channel 3, the calibration type is User Calibration (stored to the on-board EEPROM):

 

SHORT nStatus;

Gx1838CalByUserSetup (nHandle, GX1838_DAC_B, GX1838_CAL_DATA_USER_NONVOLATILE, 3, 200, nStatus);

 

See Also

Gx1838CalByUserSetupDacForMeasurement, Gx1838CalByUserWriteMeasuredVoltage, Gx1838CalByUserReadMeasuredVoltage, Gx1838CalByUserStoreDacCalibrationData, Gx1838SetDacCalibrationDataSource, Gx1838GetDacCalibrationDataSources, GxPdoGetErrorString