Initiates a new calibration process and sets up the specified DAC for calibration.
Gx1838CalByUserSetup (nHandle, nDac, nCalDataTarget, nChannel, dCalLoadVal, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1838 board. |
nDac |
SHORT |
Specified DAC number to be calibrated.0. GX1838_DAC_A1. GX1838_DAC_B2. GX1838_DAC_C |
nCalDataTarget |
SHORT |
Specified calibration data target to be applied to as follow:2. GX1838_CAL_DATA_USER_NONVOLATILE4. 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. |
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.
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);
Gx1838CalByUserSetupDacForMeasurement, Gx1838CalByUserWriteMeasuredVoltage, Gx1838CalByUserReadMeasuredVoltage, Gx1838CalByUserStoreDacCalibrationData, Gx1838SetDacCalibrationDataSource, Gx1838GetDacCalibrationDataSources, GxPdoGetErrorString