LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string control KeyFocus

My Focus don't get off my string control. When I let it loose focus the VI goes on. I attached my VI.

0 Kudos
Message 1 of 14
(3,763 Views)

Hi,

 

What do you mean "don't get off my string control"? What exactly do you want to do. Can you explain?

 

Regards,


Nitzz

0 Kudos
Message 2 of 14
(3,756 Views)

When the barcode finished scanning the VI needs to stop.

0 Kudos
Message 3 of 14
(3,753 Views)

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:smileywink:)    

0 Kudos
Message 4 of 14
(3,745 Views)

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.

0 Kudos
Message 5 of 14
(3,741 Views)

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

 

0 Kudos
Message 6 of 14
(3,734 Views)

hehehe... 🙂 ... U let the user click away fome the control.... It's purpose is to go automatic... only scanning and the VI stops...

0 Kudos
Message 7 of 14
(3,730 Views)

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. 

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 8 of 14
(3,728 Views)

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 

0 Kudos
Message 9 of 14
(3,724 Views)

Here you go

 

Nitzz: He uses a bar code scanner, since it sends \n I guess.Like this one 

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
Message 10 of 14
(3,720 Views)