08-22-2011 04:48 PM - edited 08-22-2011 04:53 PM
All EPL commands MUST be terminated with a line feed (\n). Carriage returns are ignored and will cause the printer's parser to ignore the incoming commands.
Your code that is creating the USB resource name has a hardcoded Product ID (PID) and device serial number. At a minimum the device serial number must be changed for every printer you want to communicate with. How did you add the device/install the driver on Windows? VISA requires an extra step when adding devices.
You can download the driver for Zebra from Zebra's website. If you print through the Zebra driver you need to configure the printer as a raw device to pass your format commands directly through the driver Otherwise it will simply print the label commands themselves on the label.
08-22-2011 05:56 PM
Yes unfortunatelly this only works with that printer in particular.
You mean How did I upgrade the driver to be controlled by Visa?
I just select the driver from the specific location(where the created driver was placed), and VISA-TLP2844 appears I select that one open Software and Automation explorer and the printer appears there, I open Visa test panel, I get the resource name atribute and it returns "USB0::0x0A5F::0x000A::41J110900992::RAW".
I come up with this because I was trying to print from a computer that doesn't have serial or parallel port.
Do you have a code that works using zebra driver? it would help me a lot.
thanks!
08-22-2011 06:07 PM - edited 08-22-2011 06:09 PM
Here is the application I use to add USB devices to Windows. When a new device is detected simply run this program to add the "driver". (This is not the Zebra Printer Driver but rather the hooks for VISA USB to work. Change the file extensions on the attachment. to ForceINF.dll and "Install Zebra Test USB Driver.exe". When you run the program point it to your inf file.
If you need to add other Zebra printer models let me know and I can get you their PIDs.
The application assumes you have either LV 2010 installed or the LV 2010 runtime.
I do not use the actual printer driver since I communicate directly to the printer in everything I do. I can see if I can find some information on using the actual driver. However information regarding using a native printer driver should be available here on the forums. The mechanics will be the same regardless of whether it is the Zebra driver or some other printer's driver.
08-22-2011 07:02 PM
If I get it right this aplication is going to give me the device soruce name that will work with all the tlp2844?
actually I do need it for the S4M and the Z4M plus.
thanks a lot for your help!
08-23-2011 09:23 AM
No, this application simply completes the install/linkage of the specific device to the NI VISA USB drivers. When you plugin a new device you get the Windows New Hardware Device message. Cancel that and run the application I posted above. Select the correct device type and click add. Now the device is added. I have attached the VIs we use to see what devices are currently contected. You can use this list to chose the device you want to use. You can also store this information in a configuration file and use that to determine which device you would like to connect to.
I updated your driver file to include the additional printers. You may want to rename it Zebra_Printers.inf. This is the default file name the VIs I use look for. When you get this file copy it to your Windows\inf directory and right click on the file (in the inf directory). Select install. You should be good to go for the additional printer models.
11-08-2011 10:29 PM
I've been combing the forums and web and have read and re-read this thread, but I'm missing something. I'm using Vista and when I plug in my TLP 2844, the driver is installed automatically (usbprint.inf/usbprint.sys) before I even get a chance to prevent it and when I run the Install app you posted, no USB devices appear in the list. The printer doesn't appear in any VISA list. Any help would be appreciated. I'm nearly at a loss to even know what information I'm not providing here.
Thanks in advance.
Dave