s c n O p e n S c a n n e r S h a r e d

Description

Enables the scanner and sets the configuration values to the defaults. Be sure to enable the scanner only when it is already disabled.

Because this function resets the

configuration values to the defaults, you must configure the scanner every time you enable it.

This function allows the serial port to be shared for scanning and serial communications (unlike scnOpenScanner). There may be a slight delay when enabling the scanner for the software to determine the scanner type being used.

Because this function allows the serial port to be shared, application does not need to enable and disable the scanner repeatedly to free the serial port for RS-232 communications. It can enable the scanner at the beginning of processing and disable the scanner at the end of processing.

Using this function has the benefit of eliminating processing delays (enabling and disabling the scanner repeatedly), making the application run faster.

The application must call this function before it calls any other scanner function (unless it uses scnOpenScanner).

Syntax

short far scnOpenScannerShared(void);

Parameters

None

Function Reference 4-69

Page 105
Image 105
Paxar Gold 6037EX manual N O p e n S c a n n e r S h a r e d