Starts a scan operation, but returns immediately, permitting continuous scans.
BarcodeScanner objects
Integer scanner.ScanNoWait ( )
Argument |
Description |
---|---|
scanner |
The scanner object for which you want to set up continuous scanning |
Integer. Returns 1 for success or one of the following negative values if an error occurs:
-9 Incorrect scan state for the requested action (typically benign)
-14 Error creating the asynchronous read from the message sink
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.
The following example in the script for the ScanTriggered event sets the scanner for continuous operation:
li_rtn = l_scanner.ScanNoWait()