Capturing input from a barcode scanner

I am trying to set up an asset tracking system for computers in my organization. I have a usb barcode scanner and would like a text area to capture the input from the scanner so that it filters the power table below it. I just don’t know how to configure the text area to capture the scanner’s input. Can anyone help me with this?

Thank you,


It is my understanding that most barcode scanners can act like a keyboard and just type out the data - wouldn’t this do what you want if the focus was on the text area?

That’s what I thought too, but it doesn’t populate the text area when I scan the barcodes I’ve made. Maybe there’s something wrong with the barcode itself? I’m using a CODE_128 barcode format, and it’s bound to a mac_address datakey, so that it should decode to the computer’s mac address.

Does it work when in something like just Notepad? If not, it sounds like theres an issue with the configuration there. Otherwise, it should input into the text area just fine.

Also make sure the text area has focus when you’re scanning.

1 Like

I’ve narrowed it down to the barcode itself. For some reason the barcode doesn’t get picked up by the scanner. I’m not sure what I need to do to remedy this. The barcode is made in a report, with the datakey bound to a parameter, then that parameter gets set through a binding in another window. The barcode appears to change according to the what data is selected. Any suggestions? It’s like the barcode isn’t actually encoding the data.

Can you use another scanner to verify the generated barcode is valid (ie an application on your phone)? If it appears to scan (ie, the scanner beeps) then it’s odd that you wouldn’t get any output. Depending on the make/model, there may be a configuration/debugging tool you can hook up to it (something like 123scan if it’s Motorola/Zebra)

I’m able to scan a totally different barcode into Notepad using this scanner. It’s just the barcodes I’m generating that have the problem. Both barcodes use the same format (CODE_39) and are encoding the same data type (VARCHAR(45)).

A phone scanner can’t decode the barcodes I’m generating either.

Does the number of characters being encoded matter? The barcode I can scan is 9 characters and the barcode I’m generating (and can’t scan) is 17 characters… although I’ve tried it with a 4-character datakey and that didn’t work either.

I’m just wondering if there’s something special I have to do when generating the barcode?

Whitespace matters. Make sure there’s enough on either side of the printed barcode.


Thanks! This helped me figure it out. I just didn’t have enough space for the entire barcode on the labels.


Related to this topic, I need to scan an employee badge to log in to the Ignition security system. Since the login is normally two fields, how would I go about reading the employee badge (I don’t yet know the format of what the input will be) and completing the login? Anybody have any ideas? Thanks.

If performing this action in vision, you may need to create a separate project to capture the badge ID then forward to the project after logging in as the appropriate user.

In Perspective, They have implemented a badge system, which I am thinking could potentially be used with barcode scanning instead of RFID badges, but someone else might be able to clarify a bit more on that.

After thinking about this, it seems like I could use a Text input field, select it, and scan the badge.
Then with property change script, derive the user name and password from the scanned in badge data, then use that to log the operator in with

1 Like