Avery Dennison 6035 Programmer Manual Rev.CA 6/01 User Manual
Page 108
![background image](https://www.manualsdir.com/files/773025/content/doc108.png)
Function Reference 4-67
s c n O p e n S c a n n e r
Description
Enables either 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 directs the serial port to the scanner, making
external RS-232 communications unavailable (unlike
scnOpenScannerShared) until the application disables the
scanner with scnCloseScanner. There may be a slight delay
when enabling the scanner for the software to determine the
scanner type being used.
Because the scanner takes over the serial communications port,
the application should disable the scanner immediately before
using the port for serial communications and enable it
immediately afterwards. When possible, the application should
use scnOpenScannerShared to avoid processing delays
(enabling and disabling the scanner repeatedly).
scnOpenScanner also saves the serial port’s configuration
(baud, parity, data bits, stop bits) to restore when the
application disables the scanner. The application must enable
the scanner before configuring it.
The application must call this function before
it calls any other scanner function (unless it
uses scnOpenScannerShared).
Syntax
short far scnOpenScanner(void);