09-02-2013 04:54 AM
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...
09-02-2013 05:10 AM
@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
09-02-2013 05:19 AM - edited 09-02-2013 05:20 AM
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..
02-03-2014 02:11 AM
hi ranjeeeth singh..
Thanks for your piece of information.By the way i have solved this issue an year back.
04-28-2017 09:30 AM
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