LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

need vi for bar code reader Symbol CS1504 USB

Need a vi to down load collected date/time and bar code from Symbol CS1504 through USB port. Also need command to 'flush' the reader from stored data.
0 Kudos
Message 1 of 3
(3,401 Views)
In order to read information from the USB port you will have to use VISA. There are several helpful links on National Instruments web page that should help out with the programming. However, you will not find a driver specifically designed for the CS1504 or information about the specific commands use.

Here are some links to help get you started.

http://zone.ni.com/devzone/conceptd.nsf/webmain/6792BAB18242082786256DD7006B6416?opendocument

http://digital.ni.com/public.nsf/websearch/044FA220F32774ED86256DB3005850CA?OpenDocument

I hope this helps out.

JoshuaP
National Instruments
0 Kudos
Message 2 of 3
(3,401 Views)
Test Engineering Leader wrote:

> Need a vi to down load collected date/time and bar code from Symbol
> CS1504 through USB port. Also need command to 'flush' the reader from
> stored data.

I would hope your barcode reader comes with some documented software
drivers already or alternatingly either has a COM port driver or plugs
into the keyboard queue directly.

If there is a DLL driver available with decent documentation you can
connect to it through the Call Library Node. This can be difficult work
to do, especially if you are not familiar with DLLs and C programming.

COM port emulation would be probably the most simple soution for full
programmatic control. You can just use the serial port VISA functions to
communicate with such a driver.

If the driver pl
ugs directly into the keyboard queue it may seem limited
but in most cases we have used such barcode scanners with success. You
just place a string control on the front panel and program some logic to
make sure the key focus is set appropriately to the string control
before you trigger the barcode scanner. For semi automated operation
this is usually enough.

Programming USB directly through the VISA USB raw interface is quite a
task, requires that the device has no other driver installed for it as
VISA otherwise can't see it and you need good documentation about its
USB interface which could be tricky to optain.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 3 of 3
(3,401 Views)