01-10-2018 08:35 AM
Hello All,
I am scanning two serial ports (barcode scanners on usb ports with usb to serial converter) simultaneously and creating an array for the different entries as shown in VI
Apart from it I am also scanning Digital inputs (not shown in attached VI, in a while loop).
Sometimes, I get an overrun error, how can I overcome it or what changes should I made in my VI.
I am using LV 2013
Thanks & Regards
JP
01-10-2018 10:06 AM
What is the data being scanned? I am more concerned with the format. Typically, bar codes will used ASCII representations for the letters and numbers and then end the data with a Line Feed character. If this is the case, then you need to enable the termination character. Regardless, you really should not be using the Bytes At Port to tell the VISA Read how many characters to read. There are much better ways, but they depend on the data format.
01-10-2018 10:18 AM
Hello,
Barcodes in ASCII will be scanned, around 12 characters.
Thanks
01-10-2018 11:10 AM
@james_p_martin wrote:
Barcodes in ASCII will be scanned, around 12 characters.
And they end with a Carriage Return and/or Line Feed?
01-14-2018 06:24 AM
Hi Cross
No they dont end with line feed, or carriage return
01-14-2018 02:48 PM
james_p_martin wrote:No they dont end with line feed, or carriage return
Well, regardless, with a barcode, they should always be the same length. So just tell VISA Read to read the 12 bytes.