From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
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.
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.
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.
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).