Solution
Continually poll the value of the string control at user defined intervals until the string length reaches the size of the expected barcode.
- Create a property node for the string control.
- Wire a boolean True to the property UpdtWhileTyping to update the value of a string as the barcode scanner enters characters. This property is similar to the Update Value while Typing item on the shortcut menu of a string object.
- Inside a while loop, create a property node for the string control and select the property Value. Wire this value into the String Length VI and compare the length until it is the size of the barcode.
- When the string length equals the barcode size, exit the while loop and output the value of the string.
An example program is referenced below. Additional links are provided for further information on barcode scanners.