Returns the specified DAC calibration data source currently in use.
Gx1838GetDacCalibrationDataSource (nHandle, nDac, nDataSource, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1838 board. |
nDac |
SHORT |
Specified DAC number:0. GX1838_DAC_A1. GX1838_DAC_B2. GX1838_DAC_C |
nDataSource |
SHORT |
Returns calibration data source currently in use, data source are as follow:1. GX1838_CAL_DATA_FACTORY2. GX1838_CAL_DATA_USER_NONVOLATILE4. GX1838_CAL_DATA_USER_VOLATILE |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
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:
GX1838_CAL_DATA_FACTORY: Always exists for all three DACs.
GX1838_CAL_DATA_USER_NONVOLATILE: Exists only if the user calibrated the specified DAC using the Calibration By User set of functions. This calibration is a nonvolatile type (save to the on-board EEPROM).
GX1838_CAL_DATA_USER_VOLATILE: Exists only if the user calibrated the specified DAC using the Calibration By User set of functions. This calibration data source is a volatile type (not saved to the board). The calibration data is valid only if the current application (ATEasy or executable) used for calibration was not terminated.
The following example returns the currently used calibration data source for DAC C:
SHORT nDataSource, nStatus;
Gx1838GetDacCalibrationDataSource (nHandle, GX1838_DAC_C, &nDataSource, &nStatu);
Gx1838GetDacCalibrationDataSources, Gx1838GetDacCalibrationDataSource, Gx1838CalByUserWriteMeasuredVoltage, Gx1838CalByUserSetup, Gx1838CalByUserSetupDacForMeasurement, Gx1838CalByUserStoreDacCalibrationData, Gx1838CalByUserWriteMeasuredVoltage, Gx1838GetBoardSummary, GxPdoGetErrorString