08-19-2017 04:33 PM
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):
There are some steps missing (I'm not thinking clearly ...)
Bob Schor
08-20-2017 10:36 AM
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.
08-20-2017 11:04 AM
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
08-21-2017 05:13 AM
- 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
08-27-2017 08:41 AM
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.
08-27-2017 09:30 AM
@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
08-27-2017 01:39 PM
Bob, read my first message in topic.
There are situation and questions and my code.
08-27-2017 02:38 PM - edited 08-27-2017 02:40 PM
04-18-2018 07:30 AM
Hey Artem,
Could you solve this problem? I need the same solution here.
Thanks,
Flavio
04-18-2018 03:01 PM
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.