Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

driver wizard is serial number specific

Using LabVIEW 2011 with Windows XP and cRIO.  I am using a Cognitive label printer via USB.  I created a VISA driver using the wizard and it works beautifully.  The problem that I have is that when I remove the Cognitive label printer and replace it with the same model, the device driver does not work with the printer.  It appears that the driver is specific to the serial number of the printer.  This does not work well if our product goes into the field and we have a printer failure which requires replacement of the printer.  

 

The question is:  how do I make the device driver generic for the printer model?

0 Kudos
Message 1 of 3
(4,148 Views)

Hello BJMarsh,

 

The only information that is required are as follows:

 

USB Manufacturer ID (Vendor ID)

USB Model Code (Product ID)

Manufacturer Name

Model Name

 

Go through the VISA Driver Wizard again and compare what values are generated for these and see if they are different for the two printers you are using. I've attached a picture indicating what information is necessary to be the same in order for the driver to work for both devices.

 

Ian M.
National Instruments
0 Kudos
Message 2 of 3
(4,114 Views)

Hi,

 

I apologize for my ignorance!  I didn't describe the problem very well.  What I was doing was using a constant to open the barcode printer.  The constant was generated by the project when I browsed for VISA devices.  The constant was specific to the installed barcode printer.  To get around this, I gave it an alias of "BarcodePrinter".  That still didn't work for me.  To make a long story short, I dug into the VISA VI's and found "Find Resource" and made the search string "USB?::0x1840::0x0100::?*".  That resolved the issue.

 

Thanks for your help.

0 Kudos
Message 3 of 3
(4,057 Views)