04-02-2008 11:35 AM
04-02-2008 01:16 PM - edited 04-02-2008 01:16 PM
04-02-2008 01:34 PM
For USB scanners, most emulate a keyboard and VISA will not work. It's only serial scanners that can use VISA. For USB scanners, you just need a string control for data entry.
I did find a product manual and it appears that by default, it scans when something is nearby or you can optionally send it a trigger.
04-02-2008 03:33 PM
04-02-2008 04:01 PM
I don't know the trigger mechanism for this scanner. It should be in your manual.
A USB scanner that emulates a keyboard is indistinguishable from the normal keyboard. There is nothing to tie a string control to it. It's not any different from a string control where you expect someone to manually type something in. For an event structure, you can use a value change event. With a lot of scanners, you can also program them to append a character (i.e. CR/LF) and have a front panel 'OK' button mapped (Key Navigation) to that. Long before there was an event structure, a simple while loop would work this way.
04-21-2008 06:33 PM
04-22-2008 10:51 PM
04-24-2008 03:02 PM
04-28-2008 01:36 PM - edited 04-28-2008 01:37 PM
04-28-2008 02:46 PM
Hi Paul,
It looks like your VI will onlt exit the while loop if the string length is=0, therefore if it ends, there was no data to display. Also, you do not show how you are triggering the scanner.