12
How can I...
Get information about my instrument
Get the calibration date
word GetCalibrationDate( dword *dwDate )
Description:
This routine returns the calibration date of the instrument. The
date is encoded in a packed 32 bit variable:
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
|<-------------------->|<--------------------->|<---------------------------------->|
| day (8 bits) | (month (8 bits) | year (16 bits) |
Example decoding routine in C/C++:
day = number >>
24
;
/* highest 8 bits */
month = (number >>
16
) &
0xFF
;
/* middle 8 bits */
year = number &
0xFFFF
;
/* lowest 16 bits */
Input:
-
Output:
dwDate
The calibration date
Return value
E_NO_ERRORS
E_NOT_SUPPORTED
E_NO_HARDWARE
Get the instrument serial number
word GetSerialNumber( dword *dwSerialNumber )
Description:
This routine returns the Serial Number of the instrument. This
number is hard coded in the hardware. TP112, TP208 and
TP508 do not have a serial number in the instrument.
Input:
-
Output:
dwSerialNumber
the serial number
Return value
E_NO_ERRORS
E_NOT_SUPPORTED
E_NO_HARDWARE
Summary of Contents for Handyscope HS3
Page 2: ......
Page 8: ...8 Introduction...
Page 65: ...Deprecated routines 65...
Page 67: ...TiePie engineering DLL programmer s manual rev 1 26...