Gx1838CalByUserReadMeasuredVoltage

Purpose

Returns the measured value of the specified voltage level used in the calibration process for the DAC currently under calibration.

Syntax

Gx1838CalByUserReadMeasuredVoltage (nHandle, nVoltageLevel, pdVoltage, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1838 board.
nVoltageLevel
SHORT
Specified voltage level:
0.  GX1838_CAL_OFFSET_VOLTAGE
1.  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.

Comments

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.

Example

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);

 

See Also

Gx1838CalByUserSetupDacForMeasurement, Gx1838CalByUserWriteMeasuredVoltage, Gx1838CalByUserStoreDacCalibrationData, Gx1838SetDacCalibrationDataSource, Gx1838GetDacCalibrationDataSources, GxPdoGetErrorString