Sets the DAC currently under calibration to the specified min/max voltage level.
Gx1838CalByUserSetupDacForMeasurement (nHandle, nVoltageMinMax, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1838 board. |
nVoltageMinMax |
SHORT |
Specified voltage level:0. GX1838_CAL_OFFSET_VOLTAGE1. GX1838_CAL_POS_FULL_SCALE_VOLTAGE |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The function sets the DAC currently under calibration to either 0 volts (GX1838_CAL_OFFSET_VOLTAGE) or the positive full-scale voltage (GX1838_CAL_POS_FULL_SCALE_VOLTAGE). Following this function, the user needs to measure the voltage across the output load, as was set in the Gx1838CalByUserSetup function and write the value to the driver using Gx1838CalByUserWriteMeasuredVoltage function.
The following example sets up the internal DAC currently under calibration for measuring its output positive full-scale:
SHORT nStatus;
Gx1838CalByUserSetupDacForMeasurement (nHandle, GX1838_CAL_POS_FULL_SCALE_VOLTAGE, &nStatus);
Gx1838CalByUserWriteMeasuredVoltage, Gx1838CalByUserReadMeasuredVoltage, Gx1838CalByUserStoreDacCalibrationData, Gx1838SetDacCalibrationDataSource, Gx1838GetDacCalibrationDataSources, GxPdoGetErrorString