Gx1838SetDacCalibrationDataSource

Purpose

Returns the specified DAC calibration data source currently in use.

Syntax

Gx1838GetDacCalibrationDataSource (nHandle, nDac, nDataSource, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1838 board.
nDac
SHORT
Specified DAC number.
0. GX1838_DAC_A
1. GX1838_DAC_B
2. GX1838_DAC_C
nDataSource
SHORT
Returns calibration data source currently in use, data source are as follow:
1. GX1838_CAL_DATA_FACTORY
2. GX1838_CAL_DATA_USER_NONVOLATILE
4. GX1838_CAL_DATA_USER_VOLATILE
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Calibration data source can be changed to any of the currently available data source using the function. The user needs to use the function prior of using either the GX1838_CAL_DATA_USER_NONVOLATILE or GX1838_CAL_DATA_USER_VOLATILE data source in order to verify their existence.

Calibration data sources:

Example

The following example set DAC C calibration data source for GX1838_CAL_DATA_USER_NONVOLATILE:

 

SHORT nStatus;

Gx1838SetDacCalibrationDataSource (nHandle, GX1838_DAC_C, GX1838_CAL_DATA_USER_NONVOLATILE, &nStatu);

 

See Also

Gx1838GetDacCalibrationDataSources, Gx1838GetDacCalibrationDataSource, Gx1838CalByUserReadMeasuredVoltage, Gx1838CalByUserSetup, Gx1838CalByUserSetupDacForMeasurement, Gx1838CalByUserStoreDacCalibrationData, Gx1838CalByUserWriteMeasuredVoltage, Gx1838GetBoardSummary, GxPdoGetErrorString