Writes the measured value by the user for the specified voltage level used in the calibration process for the DAC currently under calibration.
Gx1838CalByUserReadMeasuredVoltage (nHandle, nVoltageLevel, dVoltage, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1838 board. |
nVoltageLevel |
SHORT |
Specified voltage level:0. GX1838_CAL_OFFSET_VOLTAGE1. GX1838_CAL_POS_FULL_SCALE_VOLTAGE |
dVoltage |
DOUBLE |
Supplied voltage value measured by the user for the specified voltage level used in the calibration process. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
This function is valid only if calibration is in process.
The voltage value is the voltage that was measured by the user for the specified calibration voltage level. The written voltage value can be read back using the Gx1838CalByUserReadMeasuredVoltage function. The voltage always refers to the DAC currently calibrated.
The function will return an error if currently not in calibration process.
The following example writes the measured voltage value for the minimum voltage level used in the calibration process:
SHORT nStatus;
Gx1838CalByUserWriteMeasuredVoltage (nHandle, GX1838_CAL_OFFSET_VOLTAGE, 0.12, &nStatus);
Gx1838CalByUserSetupDacForMeasurement, Gx1838CalByUserReadMeasuredVoltage, Gx1838CalByUserStoreDacCalibrationData, Gx1838SetDacCalibrationDataSource, Gx1838GetDacCalibrationDataSources, GxPdoGetErrorString