Barcode scanner into Max

Jan 22, 2014 at 4:13am

Barcode scanner into Max

I want to make the scanner scan barcodes and trigger a sample for each barcode. I am having trouble on how to get the data in.
Should I use the hi object? or key?
When I use the coll object it reads the barcode and outputs the code correctly but I don’t know if those values can be used.
I am stuck and would love some advice, Thanks!

#278843
Jan 22, 2014 at 8:50am

What is the barcode scanner you’re using? In my experience most are treated like keyboards that can just enter integers very quickly. So you could hook a [thresh] up to a [key] object that will collate all numbers within say, 25 ms, into a list.

#278867
Jan 22, 2014 at 9:50am

Its an Acan USB barcode scanner. I just added in the thresh object and it worked. The numbers were printing in discrete values but the thresh just printed the whole barcode. Thank you sooo much! My project is due tomorrow and you have saved me lol. I have been stuck on this first step all day.

Attachments:
  1. Screen-Shot-2014-01-22-at-17.47.14
#278871
Jan 26, 2014 at 7:31pm

How does the USB barcode scanner read the image? Well, there is a linear photodiode within the scanner head. This photodiode can read the reflected light off the lines on the barcode. This reflection is a digital image that is then scanned electronically within the devise. When the image is scanned electronically, each bar on the barcode is converted to the corresponding number or letter.

The barcode scanner is connected to a PC or Mac and the scanner then sends the sequence of numbers and/or letters to the PC or Mac to populate the field of entry. This connection can be made in a number of ways. On way is with a keyboard wedge.

#279219
Apr 8, 2014 at 7:34pm

this barcode scanner is what i’m using now

#286102

You must be logged in to reply to this topic.