From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-15-2010 02:52 PM
I am trying to program a simple sub-vi that takes either a keyboard entry or keyboard wedge scanner entry from an operator into a string field. The data entry is a 9 digit serial number. The scanner used has a carriage return programmed into the scanner for other applications running on this machine so I can't change the scanner programming. Just wondering a way that I can progam a VI to wait for a 9 digit serial number to be passed then jump focus to the 'OK' button after 9 digits are passed? This way if the operator manually types 9 digits then carriage return the VI ends or if they scan a serial barcode it will take the first 9 digits and then read the carriage return as an 'OK' button press.
I did see a couple of old postings of similar stuff but none that had a concrete solution.
An example VI is attached....
Thanks!
Solved! Go to Solution.
02-15-2010 02:57 PM
When time it read the scanner set the Key focus to a string control. Then you can use an event structure to watch updates (update while typing). I think the CR will cause the string to loose focus but don't remember that detail.
Ben
02-15-2010 03:20 PM
02-15-2010 03:27 PM
08-24-2011 02:24 AM
Hi,
I'm working on something similar and need help, can someone convert the above vi for Labview 8.5 so that I can open it? I would really appreciate it.
Thanks
08-24-2011 08:36 AM
Here you go...
08-25-2011 01:36 AM
Thanks...