01-03-2014 02:43 AM - edited 01-03-2014 02:44 AM
Is this possible to read two barcode inputs by two different application running parallely in one CPU?
Solved! Go to Solution.
01-03-2014 03:01 AM
I only have a little experience reading barcodes so i am by no means an expert.
I would guess it would depends on your barcode scanner(s). We have two types at work one behaves as a HMI device and therefore i dont think Labview can tell the difference between the scanner(s) and the keyboard. In this case i dont know of a solution.
The other type of scanner we have is older and commicates over a serial port. As the two scanners would separte serial port there would be no reason why two applications could not run on the same CPU.
Hope this helps
01-03-2014 03:32 AM
For two parallel reading barcode I need two keyfocus indicator and pass it to TRUE?
How can I make it work two indicator and both keyfocus to be true?
01-03-2014 05:32 AM
If your scanner commincates over a serial port then you dont need key focus. Just create a loop that monitors serial port X until data arrives then process the data.
I am guessing your scanner behaves like a HMI device as you are talking about key focuses i am afriad your now out of my area of experience.
Good luck
01-03-2014 06:37 AM
I am aware of that.....Now a days all scanner comes with USB for your kind information.
01-03-2014 07:27 AM
@Ranjeet_Singh wrote:
I am aware of that.....Now a days all scanner comes with USB for your kind information.
Right, but you can receive data from your scanners in a few ways. I have several applications that simply use a scanner as the keyboard, so the user (or, my program) needs to be sure to have the key focus set properly. I have another system that uses the USB scanner as a virtual COM port and my software monitors that for data. This doesn't require key focus to be set and lends itself well to having multiple scanners. I think that's what D.Barr was trying to say.
If you can be certain of the sequence in which the barcodes will be scanned, you can set the key focus appropriately as you recieve data. If you can't be sure of the sequence, but the formats of the bar-codes from each scanner are different, you can capture the keystroke events at the <This VI> level, make the distinction and then send the data wherever it's needed.
01-03-2014 08:15 AM - edited 01-03-2014 08:18 AM
When a barcode reader is installed as an HID input device, LV treats it as a keyboard and doesn't see a difference between the various keyboards.
I haven't tried doing what you want myself, but I understand you basically need to get the data in a different way. I expect the information in this thread might be useful
01-03-2014 08:20 AM
OK, for some reason it didn't like the link. Here it is - http://forums.ni.com/t5/LabVIEW/Nugget-1-of-n-GEtting-started-with-USB-communication-via-VISA/m-p/74...
01-03-2014 08:56 AM
@Ranjeet_Singh wrote:
I am aware of that.....Now a days all scanner comes with USB for your kind information.
That is simply not true.
01-03-2014 08:47 PM
@Dennis_Knutson wrote:
That is simply not true.
I had a requirement of RS232 scanner, when I asked my supplier, he simply said cannot supply becasue now a days they are all using USB