Gx1838GetDacCalibrationDataString

Purpose

Returns the specified DAC calibration source data string.

Syntax

Gx1838GetDacCalibrationDataString (nHandle, nDac, nDataSource, pszCalData, nSumMaxLen, 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
Specified calibration data source as follow:
1. GX1838_CAL_DATA_FACTORY
2. GX1838_CAL_DATA_USER_NONVOLATILE
4. GX1838_CAL_DATA_USER_VOLATILE
pszCalData
PSTR
Buffer to contain the returned board info (null terminated) string.
nSumMaxLen
SHORT
Size of the buffer to contain the error string.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

See the Gx1838SetDacCalibrationDataSource function for details of each of the calibration data source. The user needs to check if the specified nDataSource supports by the board by calling Gx1838GetDacCalibrationAvailableDataSource function.

The DAC calibration source data string provides detailed information for each DACs’ calibration parameters. The returned string provides the following data in the order shown:

Example

The following is an example of DAC B with calibration source set as GX1838_CAL_DATA_USER_NONVOLATILE:

 

“DAC B, Load Value:1234.56, Low Voltage:0.88, High Voltage:32.93, Calibration time: Thu Oct 09 10:24:31 2003”;

 

See Also

Gx1838GetDacCalibrationDataSources, Gx1838GetDacCalibrationDataSource, Gx1838SetDacCalibrationDataSource, Gx1838GetBoardSummary, GxPdoGetErrorString