User manual

67
4.41 OBRStartScanning
This function turns on the laser and initiates continuous scanning. Scanning in the mode can be
stopped in mid-course by carrying out OBRStopScanning function. Before calling
OBRStartScanning function, OBROpen funct
ion must be called first to open the scanner diver.
There is no limit to the number of times for scanning. However, care must be taken, because if the
power is turned off in the continuous scanning mode, the scanner will automatically resume in
operation when the power is turned on.
Calling Sequences
[C++]
int OBRStartScanning(
DWORD dwTimeout
)
[Visual Basic]
Public Shared Function OBRStartScanning( _
ByVal dwTimeout As Int32 _
) As Int32
[C#]
public static Int32 OBRStartScanning(
Int32 dwTimeout
);
Parameters
dwTimeout
This parameter is for specifying a time period for timeout in the range of 1 to 300 seconds
or OBR_INFINITE (no timeout).
Return Values
OBR_OK : Normal end
OBR_NOT_DEVICE : Scanner driver error. In the Device Emulator, this value is not returned.
OBR_ERROR_SCANNING : Mid scan error
FUNCTION_UNSUPPORT : Unsupported error
Note:
After scanning one bar code and then no subsequent action is taken within the time period
set in the dwTimeout parameter, scanning will stop.