Avery Dennison 6035 Programmer Manual Rev.CA 6/01 User Manual

Page 110

Advertising
background image

Function Reference 4-69

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

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 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

Advertising