Barcode Reader

NI Vision Assistant

Barcode Reader

Reads a one-dimensional barcode.

Main Tab

The following controls are available on the Main tab.

  • Step Name—Name to give the step.
  • Reposition Region of Interest—When enabled, the step dynamically repositions the region of interest based on a coordinate system you built in a previous step.
  • Reference Coordinate System—Coordinate system to which you want to link the region of interest.

Read 1D Barcode Tab

The following controls are available on the Read 1D Barcode tab.

  • Barcode Type—Type of barcode you want to read.
  • Validate—When enabled, the step validates the barcode data. If the barcode type is Codabar, Code 39, or Interleaved 2 of 5, the error correction information built into the barcode is used to validate the results. For all other barcode types, either no validation is performed or the validation is performed automatically because the barcode type requires it.
  • Add Special Character to Code Read—When enabled, this step adds the special characters to the encoded data. Only Codabar, Code 128, EAN 8, EAN 13, and UPCA barcodes contain special characters.
  • Add Checksum to Code Read—When enabled, this step adds the checksum value read with the barcode to the encoded data. Refer to the following table for the layout of special characters, data, and checksum for each type of barcode.

    Barcode Type Special CharactersLayout
    Codabar Start character and stop character   <start char> <data> <checksum> <stop char>
    Code 39 None <data> <checksum>
    Code 93 None <data> <checksum>
    Code 128 FNC Number <FNC> <data> <checksum>
    EAN 8 Country character 1 and 2 <country char1> <country char2> <data> <checksum>
    EAN 13 Country character 1 and 2 <country char1> <country char2> <data> <checksum>
    Interleaved 2 of 5   None <data> <checksum>
    MSI None <data> <checksum>
    UPCA System char <system char> <data> <checksum>
    Pharmacode None <data char>
    RSS Limited None <left guard> <left data char> <check char> <right data char> <right guard>
  • Region Profile—Average intensity of the pixels in the region of interest (ROI).
  • Code Read—Decoded barcode data.