37
Signametrics
Value
Meaning
SCAN_OKAY
Operation was successful.
Negative number
Error code
Example
int bus, slot; // Find on which bus, and slot the DMM is at
SCANGetCalDate(3, &bus, &slot); // SCANNER#3
SCANGetConfig
H/W access Command
;
Polled Command
Description
Read the current configuration of the scanner.
int SCANGetConfig(int
iScan
)
Remarks
This function reads the current configuration settings from the Scanner hardware. The
configurations are defined in the ScanUser.H file.
Parameter
Type/Description
IScan
int
Identifies the Scanner. Scanners are numbered starting with zero.
Return Value
The return value is an integer configuration code or an error code
Value
Meaning
Positive Value
Configuration code
Negative Value
Error code
Example
int iConfig = SCANGetConfig(0);
SCANGetGrdVer
H/W access Command
;
Polled Command
Description
Get Scanner firmware version.
#include “SM4040.H”
int SCANGetGrdVer
(
int
iScan
)
Remarks
This function reads and returns the Scanner’s firmware version, which is the on-board
Microcontroller’s S/W version. This integer should be divided by 10 to get the actual
version. i.e., 15 equals version 1.5.
Parameter
Type/Description
IScan
int
Identifies the Scanner. Scanners are numbered starting with zero.
Return Value
Integer version value or an error code.
Value
Meaning
Содержание SM4020
Страница 61: ...Signametrics 60...