cancel
Showing results for 
Search instead for 
Did you mean: 

USB barcode scanning using keyboard input!!!

ramtekpr
Member

USB barcode scanning using keyboard input!!!

Hello All,

I am trying to read a USB barcode scanner configured as a keyboard input in Labview. I initialize the keyboard input and wait for the scan in a while loop to read the scanner input. I am able to read the characters but the keyboard does not return the barcode as is printed. It returns 0's in between characters and also misses some characters. So, it is not consistent on what it reads each time. have any of you had a similar problem, your help is appreciated.

Thanks
PR
6 REPLIES 6
Dennis_Knutson
Knight of NI

Re: USB barcode scanning using keyboard input!!!

Message contains a hyperlink Message contains an attachment
Along with this, you seem to want to do things the hard way. Have you tried a simple string control for entering the scan? Here's a a simple VI. The front panel Stop control is set for a 'Return' toggle in the Key Navigation menu so that the while looop stops as soon as the bar code scanner sends a return character. It's in 8.0.
ramtekpr
Member

Re: USB barcode scanning using keyboard input!!!

Hey,

 

Thanks for the feedback...I realised it later on. Thank for the inputs.

 

PR

arronlee
Member

Re: USB barcode scanning using keyboard input!!!

Message contains a hyperlink

ramtekpr wrote:
Hello All,

I am trying to read a USB barcode scanner configured as a keyboard input in Labview. I initialize the keyboard input and wait for the scan in a while loop to read the scanner input. I am able to read the characters but the keyboard does not return the barcode as is printed. It returns 0's in between characters and also misses some characters. So, it is not consistent on what it reads each time. have any of you had a similar problem, your help is appreciated.

Thanks
PR
 

Hi,

Have you worked it out yet?

Highlighted
RavensFan
Knight of NI

Re: USB barcode scanning using keyboard input!!!

PR hasn't been on the forums since 2008.  I doubt he is still following.

 

If you have a particular issue, ask about it in a new thread.  But first search the forums because there are many other threads that discuss keyboard wedge type scanners.

AC-LMD
Member

Re: USB barcode scanning using keyboard input!!!

Hi there,

 

I just got the VI and I have aquestion: is there any way to have the string control active, when I run the VI ? As it is now, I must click it, in order to make it ready to get the data I read from the barcode.

thanks !

Intaris
Proven Zealot

Re: USB barcode scanning using keyboard input!!!

Try setting the focus of the control, that should do it.

 

Search the VI server properties and methods until you've found it.