Loosing Connection with Serial Based Barcode Scanner


Recommended Posts


I am currently using a serial based barcode scanner connected to the computer through a serial to USB cable. The COM # is setup correctly on the computer but from time to time DAQFactory seems to fail to read the port. Nothing shows on the Comm Monitor. The other still functions normally. This can be fixed by rebooting the computer or sometimes closing and opening the software. Any idea?

Below is the code put in On Recieve:

if (strIn == chr(13))

 private string DataIn = ReadUntil(13)
 strTemp = DataIn


//reset_strTemp is to reset the variable back to 0 after 10 seconds.


Link to comment
Share on other sites

Yeah, I'm not a fan of USB to serial converters (which is what is inside the barcode scanner).  I'd rather have a true serial scanner and a real serial port, or an Ethernet to serial converter.  But, that is not always the option.  You probably just need to reset the port.  Just do:



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.