
s c n T r i g g e r
Description
Initiates a scan, placing the scanned data in the scanner buffer. If the LED on the keypad turns green, the scan was successful. This function works with each scanner.
Call scnGetScannedData immediately after calling scnTrigger. scnGetScannedData allows the application to read the scanned data.
Syntax
short far scnTrigger(short sWait);
Parameters
sWait Flag indicating whether to wait until the scan is complete. Values are:
0Return immediately. If the application uses this option, the scan may still be in progress when the function returns to the application. If so, it must use scnScannerHit to determine when the scan ends.
1Wait until the scan is complete, timed out, or
Return Values
0Successful.
-9 The scanner is disabled.
-10 The scanner timed out.
Example
See “scnGetScannedData” for an example.