Read 1D Barcode Configuration

NI Vision Builder

Identify Parts Tab

How to Read a 1D Barcode

Use the Read 1D Barcode step to decode a 1D barcode.

Main Tab

  1. In the Step Name control, enter a descriptive name for the step.
  2. Choose one of the following methods to specify the region of interest for the step:
    • Create a new region of interest.
      1. Select Constant from the Region of Interest listbox.
      2. Select a tool from the menu toolbar that matches the type of region of interest you want to specify.
      3. Draw a region of interest on the image.
    • Select a previously defined region of interest from the Region of Interest listbox.
  3. Verify that the Reposition Region of Interest option is enabled if you want to link the region of interest specified in this step to a previously defined coordinate system.

    Link the region of interest to a coordinate system if the position of the object under inspection changes from image to image, and you need to adjust the position of the region of interest to match the new location of the object.

Settings Tab

  1. Select Barcode Type you want to read.

    If the barcode type is Codabar, Code 39, or Interleaved 2 of 5 you can enable the Optional Checksum Coded control to use the encoded checksum information to validate the results. If the validation fails, the step also fails.

    If the barcode type is Codabar, Code 128, EAN 8, EAN 13, or UPCA, you can enable the Add Special Characters to Code control to add the special characters of the code to the encoded data. You can also add a checksum to the encoded data, regardless of barcode type, by enabling the Add Checksum to Code Read control.

Limits Tab

  1. If you want to compare the decoded data to a constant, enable the Code Equals control and enter a string that the decoded data must match. If you want to verify that the barcode contains a specific string, enable the Code Matching control and enter the string.