Returns the measured value of the specified voltage level used in the calibration process for the DAC currently under calibration.
Gx1838CalByUserReadMeasuredVoltage (nHandle, nVoltageLevel, pdVoltage, 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 |
pdVoltage |
PDOUBLE |
Returned value that was supplied and 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 returned value is the voltage that was measured by the user for the specified calibration voltage level and written to the driver using the Gx1838CalByUserWriteMeasuredVoltage function. The voltage always refers to the currently calibrated DAC.
The function will return an error if currently not in calibration process.
The following example returns the measured value of the minimum voltage level used in the calibration process:
SHORT nStatus;
DOUBLE dVoltage;
Gx1838CalByUserReadMeasuredVoltage (nHandle, GX1838_CAL_OFFSET_VOLTAGE, &dVoltage, &nStatus);
Gx1838CalByUserSetupDacForMeasurement, Gx1838CalByUserWriteMeasuredVoltage, Gx1838CalByUserStoreDacCalibrationData, Gx1838SetDacCalibrationDataSource, Gx1838GetDacCalibrationDataSources, GxPdoGetErrorString