Returns the specified DAC calibration source data string.
Gx1838GetDacCalibrationDataSources (nHandle, nDac, nDataSources, 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 |
nDataSources |
SHORT |
Returned calibration data sources is a combination of the 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. |
This function returns the calibration data sources currently available to use. The returned value is a combination of the following:
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 on-board EEPROM). 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 available to use calibration data sources for DAC C:
SHORT nDataSources, nStatus;
Gx1838GetDacCalibrationDataSources (nHandle, GX1838_DAC_C, &nDataSources, &nStatus);
Gx1838GetDacCalibrationDataSource, Gx1838SetDacCalibrationDataSource, Gx1838CalByUserReadMeasuredVoltage, Gx1838CalByUserSetup, Gx1838CalByUserSetupDacForMeasurement, Gx1838CalByUserStoreDacCalibrationData, Gx1838CalByUserWriteMeasuredVoltage, Gx1838GetBoardSummary, GxPdoGetErrorString