IMAQ Read Barcode VI
Owning Palette: Instrument ReadersInstalled With: NI Vision Development ModuleReads common 1D barcode types, including Codabar, Code 39, Code 93, Code 128, EAN 8, EAN 13, Interleaved 2 of 5, MSI, UPCA, Pharmacode, and RSS Limited.
![]() |
Image is a reference to the source image. |
||||||||||||||||||||||
![]() |
ROI Descriptor is a descriptor that defines the region of interest within which the code is located. The ROI must be a rectangle or rotated rectangle with a rotation of 0 degrees. If the ROI descriptor is empty or not connected, the entire image is considered to be the region.
|
||||||||||||||||||||||
![]() |
Barcode Type is the type of barcode to read.
|
||||||||||||||||||||||
![]() |
error in (no error) describes the error status before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
||||||||||||||||||||||
![]() |
Validate specifies whether to validate the barcode's data. If the barcode type is Codabar, Code 39, or Interleaved 2 of 5, the error correction information is used to validate the results. For all other barcode types, either no validation is performed or the validation is performed automatically because the type requires it. |
||||||||||||||||||||||
![]() |
String is the decoded barcode data. |
||||||||||||||||||||||
![]() |
Extra Info is a cluster that returns information about the barcode read. Extra Info contains the following elements:
|
||||||||||||||||||||||
![]() |
Checksum(s) is error correction information added to the encoded data that you can use to validate the decoded data. Because Checksum(s) is not part of the input data, it is not returned in the output string.
|
||||||||||||||||||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|
Examples
Refer to the following for examples that use this VI.
- LabVIEW\examples\Vision\3. Applications\Barcode Example.vi
- LabVIEW\examples\Vision\2. Functions\Image Management\Unwrap Barcode Example.vi