Read 1D Barcode Controls

NI Vision Builder

Identify Parts Tab

Read 1D Barcode Controls

Main Tab

The following controls are available on the Main tab.

Control Name Description
Step Name Name to give the step.
Region of Interest The region of interest you want to use for 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.

Settings Tab

The following controls are available on the Settings tab.

Control Name Description
Barcode Type Specifies the type of barcode you want to read.
Optional Checksum Coded When enabled, the step calculates the optional checksum data. If the barcode type is Codabar, Code 39, or Interleaved 2 of 5, it is possible for the code to include an optional checksum in the code. Most of the time this checksum is not present, but if a checksum is present, you can enable this option to calculate and apply the checksum. If the checksum fails, the step also fails.
Add Special Characters 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 Characters Layout
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>
Pharmacode None <data char>
RSS Limited None <linkage flag> <data> <checksum>
Region Profile Average intensity of the pixels in the region of interest.
Code Read Decoded barcode data.

Limits Tab

The following controls are available on the Limits tab.

Control Name Description
Code Equals When enabled, the decoded barcode data must equal this string in order for the step to pass.
Code Contains When enabled, the decoded barcode data must contain the specified string for the step to pass. You can use the following wildcards:

Special Character Interpretation
. Matches any character.
? Matches zero or one instances of the expression proceeding ?.
[ ] Encloses alternates. For example, [abc] matches a, b, or c. The following characters have special significance when used within the brackets:

- (hyphen) Indicates a range when used between digits or letters (for example, [0-5], [a-g], or [L-Q])

The following characters have significance only when they are the first character within the brackets:
~ Excludes the set of characters, including non-displayable characters. [~0-9] matches any character other than 0 through 9.
^ Excludes the set with respect to all the displayable characters (and the space characters). [^0-9] gives the space characters and all displayable characters except 0 through 9.
Code Read Decoded barcode data.