GX5055, GX5295
Returns the calibration information.
DioGetCalibrationInfo (nHandle, pszCalibrationInfo, nInfoMaxLen, pnDaysUntilExpire, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Dio board handle. |
pszSummary |
PSTR |
Buffer to contain the returned board’s calibration information (null terminated) string. |
nSumMaxLen |
SHORT |
Size of the buffer to contain the error 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. “Gx5295 Master”
Serial Number: serial number, e.g. 216
Control Number: Marvin Test Solutions control number, e.g. “*-CH-CB-0”
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.
The following example returns the board’s calibration information string:
SHORT nStatus;
char szCalibrationInfo[1024];
BOOL bExpired;
DioGetCalibrationInfo(nHandle, szCalibrationInfo, sizeof szCalibrationInfo, &bExpired,&nStatus);
szCalibrationInfo string printout:
Model: Gx5295 Master
Serial Number: 216
Control Number: *-CH-CB-0
Production Calibration Date: Wed Oct 24 12:30:25 2007
Calibration Date: Wed Oct 24 12:31:58 2007
Recommended Interval: 1 year
Next Calibration Date: Fri Oct 24 12:31:58 2008
Status: Current (350 days until expire)