Efficient barcode input array variable buffering and duplicate input screening

Something clicked today and when reviewing array function options, I realized I could use take the array that I am using to buffer barcode device output to also screen for duplicate entries (happens all too easily). Our v1 app wasn’t using arrays so the duplicate check only worked if you scanned the same barcode back-to-back.

However, by using one Device trigger with Join To String to make a delimited string from the array of (previous unique) barcodes followed by another that conditionally adds the new barcode to the array only if it is not part of the existing delimited string.

This approach seems to allow rapid barcode scanning without any delay necessary between scans, and seamlessly ignores any duplicate entries (Message can appear if desired), whether they are adjacent or not.

1 Like