Returns the calibration information.
Gx3788GetCalibrationInfo (nHandle, pszCalibrationInfo, nInfoMaxLen, pnDaysUntilExpire, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3788 board. |
pszCalibrationInfo |
PSTR |
Buffer to contain the returned board’s calibration information (null terminated) string. |
nInfoMaxLen |
SHORT |
Size of the buffer to contain the calibration information string. |
pnDaysUntilExpire |
PSHORT |
Returns the number of days until or from expiration, if number is > 0 then calibration is current otherwise past due. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The returned board’s calibration information has the following fields:
Model: model number, e.g. “GX3788”.
Serial Number: serial number, e.g. 37880016.
Control Number: Marvin Test Solutions control number, e.g. “BB-BA-00”.
Production Calibration Date: Wed Oct 24 12:30:25 2010.
Calibration Date: Wed Oct 24 12:31:58 2010.
Recommended Interval: 1 year.
Next Calibration Date: Fri Oct 24 12:31:58 2011.
Status: calibration status can be either “Expired” followed by the number of days past expiration or “Current” followed by number of days until expire.
Calibration License: can be either “Installed” with the calibration license number or “Not Installed”.
The following example returns the calibration information:
CHAR szInfo[2048];
SHORT nDays, nStatus;
Gx3788GetCalibrationInfo (nHandle, sz, 2048, &nDays, &nStatus);
Gx3788Initialize, GxFpgaGetErrorString, Gx3788GetBoardSummary