Barcode Scanning

I have a popup with an text field component in it, where it allows the user to scan a barcode with the paired a hand scanner to scan it , how do I prevent the user from typing in it, but allow the hand scanner ? as they often type in the wrong barcode, The barcode is 4 digits , so I have seen in another forum maybe you can do some sort of timing to determine if its a user or a hand scanner, but sometimes they hand scanner speed is similar to a user typing in 4 digits

Take the number keys off the keyboard.

Perspective is a browser technology, so keyboard wedge mode is all you have (except for integrated mobile barcode scanning).

If you cannot take the keyboard away, you should use Vision, and configure the scanner to operate as a serial device.

1 Like

We programmed our scanners to prepend a ~ (tilde) prefix character to scanned data; then in our scripts, if the ~ is present the data was scanned, if not, the data was entered by hand. Throw away the ~, it’s done it’s job once you know the source of data entry
(yes, operators can type a ~ but if laziness of grabbing a scanner is the issue typing a ~ adds weight)

I also highly recommend using Data Identifiers (DI) in your barcodes to guarantee the data goes into the correct fields. Ignition has built in handling prepended characters including DIs.

Here’s a link to a free version of the ANSI Data Identifier Standard:
Data Identifier and Application Identifier Standard

1 Like