LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Jervin Justin

Generate Barcodes in LabVIEW

Status: New

The IMAQ VIs are great for recognizing barcodes that are scanned.

 

On the flip side, there's not a really portable way to generate a barcode in LabVIEW (without having to install a barcode font). The nicest approach would be to have a custom control that has string datatype, and then on the front panel, the string gets displayed as a barcode!

Other approaches could involve using a picture control or something as well.

 

Barcode.png

Jervin Justin
NI TestStand Product Manager
7 Comments
AristosQueue (NI)
NI Employee (retired)

Just use a barcode font. There are many of them available on the web. Here's one for example that is free: http://www.barcodesinc.com/free-barcode-font/

PhillipBrooks
Active Participant

Simple numeric barcodes are possible with fonts, but most barcodes require calculating a checksum and/or start-stop characters. 2D barcodes are a different matter and wouldn't work as a font.

 

Was this suggestion in any way related to this LabVIEW/TestStand question?

 

If using TestStand, you could use various barcode software packages that include an API to create an image (in memory or as a file) and place this in the report.

 

You can also use the Google Chart API to create QR codes

 

http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=LabVIEW+Rocks&choe=UTF-8

 

 


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

AristosQueue (NI)
NI Employee (retired)

> but most barcodes require calculating a checksum and/or start-stop characters.

 

Interesting. I did not know that.

Mr.Mike
NI Employee (retired)

I'm actually working on this as a side project.  I'm implementing UPC, EAN-13, and Code 39 (AKA 3 of 9).  Do you have any other suggestions?  I was thinking Code 128.  Currently my framework only works for 1D barcodes, but I could conceivably expand it for 2D barcodes (QR, DataMatrix).

 

- Mike

-- Mike
Mr.Mike
NI Employee (retired)

I just posted the beginning of my barcode project in the NI Developer Community: http://decibel.ni.com/content/docs/DOC-14718.

-- Mike
sanss
Member

hi, 

Am not able to read the barcodes as well as 2D codes from images(photographs) using labview. It shows code not found. Can someone help with this? 

RavensFan
Knight of NI

This forum is for posting new ideas for LabVIEW and commenting on them.  You've posted a troubleshooting question which belongs in the LabVIEW forum.