Gx1838CalByUserSetupDacForMeasurement

Purpose

Sets the DAC currently under calibration to the specified min/max voltage level.

Syntax

Gx1838CalByUserSetupDacForMeasurement (nHandle, nVoltageMinMax, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1838 board.
nVoltageMinMax
SHORT
Specified voltage level:
0. GX1838_CAL_OFFSET_VOLTAGE
1. GX1838_CAL_POS_FULL_SCALE_VOLTAGE
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

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.

Example

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

 

See Also

Gx1838CalByUserWriteMeasuredVoltage, Gx1838CalByUserReadMeasuredVoltage, Gx1838CalByUserStoreDacCalibrationData, Gx1838SetDacCalibrationDataSource, Gx1838GetDacCalibrationDataSources, GxPdoGetErrorString