06-16-2011 03:55 AM
My Focus don't get off my string control. When I let it loose focus the VI goes on. I attached my VI.
06-16-2011 04:12 AM
Hi,
What do you mean "don't get off my string control"? What exactly do you want to do. Can you explain?
Regards,
Nitzz
06-16-2011 04:15 AM
When the barcode finished scanning the VI needs to stop.
06-16-2011 04:31 AM - edited 06-16-2011 04:32 AM
Hi,
I dont see any scaning in this program. Its just that you are typing the bar code into the string control. If you just want to stop the program after typing the bar code into the string control, just press enter after typing it. This will generate the termination charecter and while loop will be stopped.
Regards,
Nitzz
(Give kudos to good Answers, Mark it as a Solution if your problem is Solved)
06-16-2011 04:37 AM
Ah.... 🙂 .... Instead of typing, I scan the code. And indead it set a termination (\n) sign after scanning the BC. U will see that it stay running after scanning untill u put the focus away from the control.
06-16-2011 04:54 AM
Hi,
Isn't this the complete code which you are working with?
How are you scanning the code and can you show me the scan results?
Also try the attached VI.
Regards,
Nitzz
06-16-2011 04:59 AM
hehehe... 🙂 ... U let the user click away fome the control.... It's purpose is to go automatic... only scanning and the VI stops...
06-16-2011 05:03 AM - edited 06-16-2011 05:03 AM
I have done alot of bar code stuff.
I create a string control and a "Submit" button that I connect to a case structure (I only have BDS version of LV). I then bind the "Enter" button on my keyboard to the "submit" button. In LV the enter-key is called "Return".
My barcode scanner sends \n after the code, which triggers the submit button. This is a good way to do it, because if the bar code is unreadable, you can still input the data and just press enter on your keyboard.
06-16-2011 05:04 AM
Hi JoVMo,
As long as you wont explain your code well enough, I don't think anyone can help you solve your problem. You have attached a code with a couple of controls and indicators wired to each other and want someone to guess how does it work and then solve your problem. You say that the code is being scanned, but what i am trying to ask you is how is it being scanned? Do you have a hardware for that or you are using a camera and IMAQ for this using LabVIEW?
Regards,
Nitzz
06-16-2011 05:19 AM - edited 06-16-2011 05:20 AM
Here you go
Nitzz: He uses a bar code scanner, since it sends \n I guess.Like this one