LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get data from bar code scanner

As a matter of Good Design and No Operator Errors, I would give an "OK to Proceed" message if the Product passed the test, and "Do Not Engrave" if it fails.  I would also do what I could to make them look as different as possible (Color, Size, Bells and Whistles).

 

So now the Program is as follows (tell me if I'm right):

  • Use Bar Code Reader to scan Product.
  • Verify Product by using data from Scan and "other information".
  • Notify User of Result (Go/NoGo).

There are some steps missing (I'm not thinking clearly ...)

  • Tell Operator to Scan Part
  • Read Scan (Bar Code)
  • Display Results (so Operator knows Scan "took")
  • Look up Info on Product
  • Tell Operator Go/NoGo
  • Wait (to let Operator Engrave or not)
  • Loop back to first step.  Note that the Wait provides a "natural Break" between parts.

Bob Schor

0 Kudos
Message 21 of 32
(2,367 Views)

I think you go out from my question: how to get data from kb in parallel application.

User see scanned code on screen and can check is it scanned correctly or not.
But I try make simple helper apps, NOT a nuclear power station, I don't need perfect secutity system, just popup window with warning.

0 Kudos
Message 22 of 32
(2,350 Views)

Sorry, I mis-understood.  If all you want to do is to have a Message pop up at a certain time, and have a button that the User presses to make it "go away", a simple VI consisting of Error In, Error Out (so you can put it on the Error Line and have it "work" at the right time) and Message In, with the Block Diagram being simply wiring Message to the One or Two Button Dialog (found on the Dialog Palette) should do the trick.  If you want to be a little more fancy, say have the sub-VI "more in control" of the Message, perhaps changing the Font/Size/Color, doing things based on User Choices, you can make the sub-VI a bit more complex, not use the Button Dialogs, but write your own Buttons and Actions and make the entire sub-VI a "Dialog" sub-VI (I think this is one of the choices on the Windows Appearance Property Page for the sub-VI).  You can control the placement, size, looks, etc. of your Dialog, and it will stay "in front" and "blocking" other code until you make it exit (presumably by pushing a Button or interacting with another control).

 

I use this, myself, to pop up a List Box that says "Choose the Server you want to use" and exits when the Server Listbox shows a Value Change Event (the chosen Server, a String or Path, is passed out through an Indicator).

 

Bob Schor

0 Kudos
Message 23 of 32
(2,345 Views)

- Make a VI with a String control

- place a KeyFocus property node and that VI should activate and the String control should be active

- Shoot scanner

- profit

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 24 of 32
(2,327 Views)

Gentlemen, or I have bad English, and I'm writing incorrectly.
Or you do not know how to read the question at all.
None of you tried to answer my question. You write your fantasies, which have nothing to do with reality.

0 Kudos
Message 25 of 32
(2,299 Views)

@Artem.SPb wrote:

Gentlemen, or I have bad English, and I'm writing incorrectly.
Or you do not know how to read the question at all.
None of you tried to answer my question. You write your fantasies, which have nothing to do with reality.


Many of us have tried to help you.  However, you have so far (a) clearly outlined the problem, telling us the specific hardware you are using (which clearly behaves differently from "bar code scanners" that we have used) and describing fully what you are trying to do, (b) not provided LabVIEW Code so we can see what you have tried and possibly "get a clue" at what you want to accomplish, and (c) have scolded us for our attempts to be helpful because we are "writing our fantasies, which have nothing to do with reality" (although perhaps a better way to say this is that they have a lot to do with reality, but our reality, which we know and understand, is different from your reality which you have failed to explain clearly to us.

 

Oh, well.  I hope you are successful in solving your problem.  I recommend that you seek out a good LabVIEW Developer doing consulting work and hire her/him -- having someone on site who can see the equipment, read the manuals, ask the questions and rewrite your code, all the while charging you for time and effort, will probably produce quicker results for you than our feeble efforts.  And perhaps you can find someone who speaks your language ...

 

Bob Schor 

Message 26 of 32
(2,292 Views)

Bob, read my first message in topic.
There are situation and questions and my code.

0 Kudos
Message 27 of 32
(2,275 Views)

Hi Artem,

 

you should rather point to the 5th message of this thread, it explains the requirements much better than your first message.

At first you did write about "shadow loops"...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 28 of 32
(2,266 Views)

Hey Artem,

 

Could you solve this problem?  I need the same solution here.

 

Thanks,

Flavio

Skype: flavio.luiz.puhl.junior
0 Kudos
Message 29 of 32
(2,149 Views)

Almost. The scanner can work in com-port mode. So, LV reads data by VISA and checks s/n.

If the number correct, LV simulates keyboard typing. Another case makes popup window.

0 Kudos
Message 30 of 32
(2,128 Views)