LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read barcode scanner that share with keyboard via keyboard buffer?

Solved!
Go to solution
I use barcode scanner that share with keyboard.
These barcode scanners have three connector : connection to barcode scanner, connection to keyboard, and connection to PC keyboard input.
When we read barcode with scanner output of it act similar to pressing keys with keyboard and we able to show it in text box or other text editors.
I want to access to chars of outputs without focusing to text boxes. how i can do it?
for example: if my output of barcode scanner be 9876543210 and focus of my program be in other controls except text boxe, how i can read output of scanner i.e. 9876543210 ?
 
 
0 Kudos
Message 1 of 3
(3,941 Views)
Solution
Accepted by topic author javadi_ali

You can use the event structure to capture the keyboard input and write a filter to catch the barcodescanner.

See HELP /Manual KB on how to use the event to catch keyboard inputs.

Some scanner allow to define some characters as an additional header. In that case you can create a even more sophisticating filter that will only catch the scanner input. However sometimes scanner don't work, so a manual input of the barcode should be kept as a fall back solution.

Message Edited by Henrik Volkers on 05-07-2007 12:59 PM

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 2 of 3
(3,939 Views)

Good post !

Find to be highly useful currently in my project all of a sudden due to customer requirement.

Looking for more details here. Smiley Wink

- Partha ( CLD until Oct 2027 🙂 )
Message 3 of 3
(3,907 Views)