10-08-2010 05:24 AM
Hi guys:)
On the image below you can see a small piece of my FP. It's a part of a bigger FP for a quite huge test of electronics. Each circuit board got its own serial number made of barcode. I got a reader for this that is connected to my keyboard. So when I read the barcode the numbers will come up in the textbox on my FP, IF i click the textbox first. Then the user only has to press START to do the test. My problem, or wish if you like, is that when the program starts, or is finished with a test, the cursor/marker is placed in the textbox so I only have to read the barcode.
Right now the user has to click in the textbox before reading the barcode. Is there any way that this can be done by Labview?
I haven checked property node yet, because I'm busy with other things right now at work. Just writing this in my break.
Thanks for any help!
P.S I might would have found the answer in the forum, but I'm from Norway and not all the computer language is easy to translate since I use Norwegian windows. I belive it's called cursor or marker though.
Regards,
Even
Solved! Go to Solution.
10-08-2010 05:33 AM
Hi emyh,
It could be done using property nodes, or maybe even by using an event structure that would run once the test has been complete.
I hope this link will help you: Event Structures
Regards,
10-08-2010 05:58 AM
Hi,
The property node "KeyFocus" attached here brings the cursor automatically into the textbox. Set the "Val(Sgnl)" to blank to trigger the event associated with this text box (if required).
Hope this helps.
10-08-2010 06:01 AM
Thanks alot! Both of you:)
I accept the last post as solution since I only got Base Develop system and cannot use event structure, which is a bummer >.<
But you're both right so thanks alot:) I'll look into it later on, and put it into my program.
10-08-2010 08:30 AM
Something else you may want to try (nothing to do with placing the cursor) ...
Programme your barcode scanner to append a 'carriage return' to the end of the scan. All of the barcode scanners I've used have this ability, generally a programming booklet, or even available on the net on the manufacturers website. Then link your start button to a carriage return.
This way scanning the barcode starts the test.
Sebster.
10-11-2010 01:02 AM
Thanks for the tip, Sebster! Nice nudget indeed!
10-11-2010 07:00 AM
@sebster wrote:
Programme your barcode scanner to append a 'carriage return' to the end of the scan. All of the barcode scanners I've used have this ability, generally a programming booklet, or even available on the net on the manufacturers website. Then link your start button to a carriage return.
This way scanning the barcode starts the test.
The problem with that solution can be that the scanned code hasn't registered before activating the Start. That's happened to me. The solution was to move the key focus to the start button to make sure the text field got a Value Change event.
/Y