ScanNoWait

Description

Starts a scan operation, but returns immediately, permitting continuous scans.

Applies to

BarcodeScanner objects

Syntax

Integer scanner.ScanNoWait ( )

Argument

Description

scanner

The scanner object for which you want to set up continuous scanning

Returns

Integer. Returns 1 for success or one of the following negative values if an error occurs:

Usage

The ScanNoWait function is used to set an asynchronous scan operation. In a typical implementation, the ScanNoWait call is made in the ScanTriggered event, which leads to continuous (asynchronous) scan readings.

Examples

Example 1

The following example in the script for the ScanTriggered event sets the scanner for continuous operation:

li_rtn = l_scanner.ScanNoWait()

See also