IMAQ Read Data Matrix Barcode 3 VI
- Updated2023-02-21
- 16 minute(s) read
Requires: NI Vision Development Module
Locates and then reads the value encoded in a Data Matrix barcode. You can compare the decoded data to a reference string or check whether the data contains a specific pattern. Many of the options of this VI allow for automatic detection of Data Matrix barcode properties or determine which methods the VI should use to locate and decode the Data Matrix barcode. However, selecting specific properties and methods for these options will greatly increase the performance of the VI.
Supported Image Types

![]() |
Data Matrix Search Options is a cluster that contains the options to use when searching for Data Matrix codes in the image.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
Data Matrix Description Options is a cluster that contains the Data Matrix code description options to use when searching for Data Matrix codes in the image.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
Image is a reference to the source image. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
ROI Descriptor is a descriptor that defines the region of interest within which the Data Matrix code is located. The first contour of the ROI must be a rectangle, rotated rectangle, or convex polygon. If Skip Location? of the Data Matrix Search Options input is TRUE, a convex polygon contour has an additional constraint of being four-sided. If the ROI descriptor is empty or not connected, the entire image is considered to be the region.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
Prepare for Grading? specifies if the VI should make calculations needed to prepare to grade the Data Matrix code. The following are valid values:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
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.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
Data Matrix Size Options is a cluster that contains the code size options to use when searching for codes in the image.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
Advanced Options is an array of advanced options.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
Image (duplicate) is the reference to the image that contains the Data Matrix code. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
Data Matrix Report is a cluster of information about the code that the VI read.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
Mean Light is the mean of the light lobe from the final grid-point histogram of the symbol under test. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
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 an example that uses this VI.
- LabVIEW\examples\Vision\Barcodes\Read Data Matrix Code.vi























