beautypg.com

Paxar Gold 6037EX User Manual

Page 131

background image

Function Reference 4-95

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:

0

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

1

Wait until the scan is complete, timed out, or

un-decodable.


Return Values

0 Successful.

-9

The scanner is disabled.

-10

The scanner timed out.


Example

See “scnGetScannedData” for an example.