Use this example to read common 1D barcodes from sample images.
This example performs a simulated image acquisition using the Vision Acquisition Express VI. It then uses IMAQ Read Barcode 2.vi to locate and read 1D barcodes within the acquired image. The barcode location and data is overlayed onto the image and the results are shown in the front panel indicators. This VI is configured to only search for EAN 13, Code 39, and Code 128 barcodes, although it could be configured to search for additional types of barcodes.
This example is included with the LabVIEW Vision Development Module and can be found in the LabVIEW Example Finder.
Hardware and Software Requirements
LabVIEW Vision Development Module
Steps to Implement or Execute Code
Ensure that the Vision Development Module is installed.
Open the example from Help >> Find Examples >> Toolkit and Modules >> Vision >> Barcodes >> Read 1D Barcode.vi.
Run the VI.
Additional Information or References
The IMAQ Read Barcode 2 VI supports the following types of barcodes: