05-01-2008 11:32 AM
05-01-2008 11:41 AM
10-20-2008 08:59 PM
I have successfully used a Symbol (Now Motorola) LS2208 USB barcode scanner with events.
I have a dialog that prompts the user to enter or scan (if enabled) a barcode, & checks the data before returning.
So it has an event structure with "OK", "Cancel" and "Key down" (To filter user input - eg discard letters) and a dynamic "barcode scan" user event.
.
To configure the scanner I had to Scan the IBM HAND HELD USB barcode and install the OPOS drivers on the PC. (easist way is to install their TESTSCAN App as the COM (Componet Object Model ) needs registering).
I then added an activeX container the the VI front panel and selected the OPOS Scanner Control. I found an UnifiedPOS spec that detailed the properties / methods etc required to interface to the scanner (chapter 22 in version 1.7 of the spec - see javapos.com).
From there I had to register a call back dynamic event that calls a VI that reads the data from the scanner when the scan event occurs. The call back then passes the scanned data to my main event case.
*****
While I have only used Symbol scanners you can only have one USB scanner per host. I have an app at the moment where I need two scanners (Two seperate test slots on 1 PC), where I have to implement it using the serial interface cable. Same deal with the USB "virtual" COM port - only 1 per host/PC).
The quick start guide with the LS2208 scanner does not include the USB virtual COM port mode. You have to go to motorola's website & download the driver that includes the barcode to configure the scanner.
Hope this is useful 🙂