LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communicate with a USB Barcode Scanner

Hi,

 

I have a usb barcode scanner with an image function that I would like to use with Labview. However I have only got the scanner to take images with a software provided by the manufacturer. When you press the trigger otherwise it acts as a normal barcode scanner - no picture taking. I need to send an "enable image taking" command somehow and use the trigger and also collect the image data in some smart way. The idea is to use Vision and do a bunch of stuff with the scanned images. The problem is that I cant seem to find a way to send any commands to the scanner. I use com port emulation and try to send commands that way but no luck. Im quite new with LV so I might have missed some obvious solution. Help on this issue would be much appreciated.

 

Best regards

Andreas

0 Kudos
Message 1 of 6
(3,158 Views)

Hi Andreas,

you have to know the provided interface. Maybe you can use a shipped dll or ActiveX. If you want to send serial commands, then you have to know them and your scanner has to have this functionality. Do you know how to do it with other programming languages?

 

Mike

0 Kudos
Message 2 of 6
(3,155 Views)

Thanks for your reply. I have a dll file shipped with the scanner. I read something about using call library function node when dealing with dll files. I found all the commands available for the scanner when checking the configure options. Now I just need them to be sent to the scanner. Any easy way to do this perhaps? I will continue work on this and reed some in the help files but if you have a quick solution or suggestion on how to proceed it would be great!

 

//Andreas

0 Kudos
Message 3 of 6
(3,148 Views)

Hi Andreas,

see this link please. To create the different vi´s for your functions, you can also use the dll import if you have the header file.

 

Hope it helps.

Mike

0 Kudos
Message 4 of 6
(3,143 Views)

To create the different vi´s for your functions, you can also use the dll import if you have the header file.


 

I think the Import Shared Library wizard was introduced with LabVIEW 8.20. See this link...

Message Edited by Phillip Brooks on 10-17-2008 06:36 AM

Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

0 Kudos
Message 5 of 6
(3,121 Views)

I will look into that. Thanks a lot for your help!

 

//Andreas

0 Kudos
Message 6 of 6
(3,104 Views)