LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue connecting to Barcode Scanner using ConnectToTCPServer

Hello everyone,

 

I am having a weird issue when using ConnectToTCPServer  to connect to a barcode scanner. 

 

The first attempt at connecting will always fail due to a timeout error, but then if I immediately call the function and try again, it connects without issue. I have tried increasing the timeout value to see if that was the issue, but no matter how large I make it, it will always fail on the first attempt.

 

I am using the same function to connect to a printer, and I am having no issues with that.

 

Has anyone experienced this issue before or know how I can resolve it?

 

Thanks!

 

 

 

0 Kudos
Message 1 of 2
(2,557 Views)

Hi mjeddi

 

How are you?

 

Can you provide more information about that barcode scanner? Do you have the manual ? The barcode scanner wait for a specific command?

0 Kudos
Message 2 of 2
(2,523 Views)