LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using bar code scanner

Solved!
Go to solution

Hi,

 

I am using a USB interface barcode reader. I have successfully connected this to labview, that is, when I scan a code, it is displayed in the control string. However, for some strange reason, the control string at that moment only displays the very first character of the code, for example for the code "5032608001610" i got only "5" in my string. when I ran the VI again i got the full string in my indicator. It is like during the first execution the value is not obtained then during the second execution (without scanning) I get the first scan.

 

can someone help pls? here's the VI...

0 Kudos
Message 11 of 15
(1,697 Views)

@racdar92 wrote:

However, for some strange reason, the control string at that moment only displays the very first character of the code, for example for the code "5032608001610" i got only "5" in my string. when I ran the VI again i got the full string in my indicator. It is like during the first execution the value is not obtained then during the second execution (without scanning) I get the first scan.

 

can someone help pls? here's the VI...



Since you're checking for empty string in your loop it's no wonder it'll stop early. 🙂

Place a event structure with a value change event for the string control, it'll make your life alot easier. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 12 of 15
(1,695 Views)

Hi Sumithra_Nagap…

                                  Any working sacanner will work with labview also.. For verification open one notepad and scan any code. It should write the scanned code with enter at last..

 

 

Take reference of this VI..

 

 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 13 of 15
(1,692 Views)

hi ranjeeeth singh..

 Thanks for your piece of information.By the way i have solved this issue an year back.

0 Kudos
Message 14 of 15
(1,612 Views)

hi

I am basic Lerner of labview.. can any one explain me how to programmed for scanner?

I want to scan barcode & Compare, tell result.

please explain me.

 

 

Thanks

sati

0 Kudos
Message 15 of 15
(1,287 Views)