LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Barcode Inputs parallely

Solved!
Go to solution

jcarmody,

                             I have one application to which I have no control. It will read the scanned number by user and search in database and process it and generates the output.

 

Another application is written in LV writes the SR no scanned by scanner and do some processing and update to database.

 

Now one application will read and another will write the data to database. In both the cases input is given by scannner to application.

 

Is this possible to run both application parallely in one CPU. Here the sequence of inputs is also not fixed. Both the application will read independently from different scanner.

 

In my end for one application I can add enter at last(already there) and for another scanner I can add TAB at last

 

 

--------------------------------------------------------------------------------------------------------
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 11 of 30
(969 Views)
Haven't you used Google? A search for 'bar code scanner rs232' returns numerous results.

Since you have no access to one application, use a wedge type/ USB for that. Use an RS232 one for the second or just use the same scanner for both. With USB scanners, it's really a difficult exercise to make Windows see different ones. They are all keyboards.
0 Kudos
Message 12 of 30
(957 Views)

@Dennis_Knutson wrote:
Haven't you used Google? A search for 'bar code scanner rs232' returns numerous results.

Since you have no access to one application, use a wedge type/ USB for that. Use an RS232 one for the second or just use the same scanner for both. With USB scanners, it's really a difficult exercise to make Windows see different ones. They are all keyboards.

I did that but what I mean to say is now a days nobody is buying that(Except the peoples have no choice). I never said this doesn't exists.

 

Regarding my question, I have a project needs to be done in this way only. Using same scanner is not possible(If I do that then user needs to bring the window to TOP all the time, becasue in one project only sr no needs to be scanned but for other some other things also needs to be scanned). 

 

One more things I need to ask, for barcode I need cursor, if I use two USB barcode then creating two cursor is different. For RS232 scanner then use USB to serial and reading using VISA then is it good solution? 

  

--------------------------------------------------------------------------------------------------------
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 30
(947 Views)
You did say all bar code scanners come with USB.

If your users are unwilling to click on different Windows to obtain focus then the most sensible option is to use a non-usb scanner for one of them. This has already been suggested by several answers you got here. Windows itself does not differentiate between multiple USB scanners. One or many show as a single keyboard.
0 Kudos
Message 14 of 30
(936 Views)

A USB scanner does not necessarily mean it can only act as a keyboard. Many scanners can emulate a serial port by scanning a special barcode to put it into that mode.

Message 15 of 30
(918 Views)

@nathand wrote:

A USB scanner does not necessarily mean it can only act as a keyboard. Many scanners can emulate a serial port by scanning a special barcode to put it into that mode.


Can you please elobrate? Is it possible to write to an indicator without focus? My other application which is not written using LV needs focus so if I can able to write scanned value to my indicator without focus then all job is done.

 

Thanks

--------------------------------------------------------------------------------------------------------
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 16 of 30
(886 Views)

@Dennis_Knutson wrote:
You did say all bar code scanners come with USB.

If your users are unwilling to click on different Windows to obtain focus then the most sensible option is to use a non-usb scanner for one of them. This has already been suggested by several answers you got here. Windows itself does not differentiate between multiple USB scanners. One or many show as a single keyboard.

Yes when I enquired about it then my delar said no. If I can emulate the USB as serial and can write to my indicator without focus then I think it will be done.

--------------------------------------------------------------------------------------------------------
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 17 of 30
(885 Views)

What is a "delar"?

0 Kudos
Message 18 of 30
(877 Views)

@Ranjeet_Singh wrote:

Can you please elobrate? Is it possible to write to an indicator without focus? My other application which is not written using LV needs focus so if I can able to write scanned value to my indicator without focus then all job is done.


Of course writing to an indicator does not require focus - an indicator displays values. I'm not sure why this is relevant here. You can read from a serial port at any time, regardless of whether the application has focus. You will have to consult the manual for your scanner to see if it supports serial port emulation. The Honeywell (formerly Handheld) scanner I used in a previous application had special barcodes to switch between keyboard emulation and serial communication. Other devices might require installing a specific driver.

0 Kudos
Message 19 of 30
(870 Views)

@RavensFan wrote:

What is a "delar"?


Dealer.

0 Kudos
Message 20 of 30
(869 Views)