12-16-2012 08:15 PM
thanks for all the posts.......
12-16-2012 08:16 PM
Well, I don't understand why you need an event for each digit, even if it's scanned, but that's your call.
You can consider a couple of options:
1... Have a SCAN / MANUAL switch, which changes the property of the control that accepts the code from the scanner. (UPDATE VALUE WHILE TYPING is a programmable property).
Kind of ugly, but do-able.
2... Have TWO controls. One the user sees and can type into, another one that's hidden and the scanner types into. (Hiiden controls can still generate events).
Looking at this part:
if the user needs to press the enter key or click on the front panel after ever scan of a barcode scanner that would be annoying.
You want the scan to be a complete operation - scan --> event... scan---> event.
Not scan <enter> - event... scan <enter> event.
I can see that.
But I don't see how to get there unless you can guarantee that all scans are 10 digits or end with a ? or something easily detectable.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
12-16-2012 08:24 PM
You want the scan to be a complete operation - scan --> event... scan---> event.
this is exactly what i want, but the event is only triggered when i click on the front panel if i use the barcode scanner.
12-16-2012 08:36 PM
Then your only choice is to detect the VALUE CHANGED yourself.
three options:
1... Count N digits assuming a fixed length code.
2... Detect each digit via the existing VALUE CHANGED event, and set a timer for now + 50 mSec (or something). When the timer expires, declare it to be done and use the value. (each digit received extends the deadline).
3... if the code has a terminating character from the scanner, use that.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
12-16-2012 08:41 PM
yeah i think option 1 as johnsold previously posted......
thanks all...........