11-02-2011 08:26 PM
I've setup a simple VI to print on a Zebra TLP 2824 Plus printer using ZPL commands and cannot print. Using USB connection. Prints fine with Zebra Simple Setup Utility and same commands. Tried using two methods without success. I've attached both vi's.
PLEASE HELP......
Thanks,
DG
11-03-2011 08:38 PM
Hello DG,
Have you been able to print ANY document using LabVIEW? I looked over your code, and I'm wondering, is your goal to simply print out a string using the default printer? What is the purpose of the ZPL commands?
11-03-2011 09:55 PM
Thanks for your reply..
Objective is to print a code 128 bar code serial number using the Zebra. Design ideas came from the forum. Prints fine to my Lexmark 4300 printer or a pdf file pro. With the Zebra, the only activity I see is the pulsing of the green LED. Tried both Windows XP and Windows 7 with the same results. Stripped down code to use the simple print vi and the ~wc (ZPL printer config. label) without success. Can't understand why other NI guys had no issues using same method.
Any additional direction would be great.....
Thanks again..
11-04-2011 03:10 PM
Hi DG,
To clarify, when you use your LabVIEW code to print something to your Lexmark printer, it works just fine. But, when you use the SAME LabVIEW code to send something to your Zebra printer, it fails. Am I understanding your problem correctly? Basically, the code works when you select one printer but doesn't work when you select the Zebra printer. Correct?
11-04-2011 03:38 PM
11-04-2011 03:54 PM - edited 11-04-2011 03:59 PM
I had to use the wizard to create a generic NI-VISA driver to send ZPL commands to the ZM400 printers we used.
see also,
http://zone.ni.com/devzone/cda/tut/p/id/4713
edit: This was necessary to use the USB connection. I recall determining that the supplied Zebra driver changed the formatting (headers, etc) and this was the easiest way I found to control the exact string being sent. Obviously if you change the Printer driver for this application, it may break other software on the machine.
Adam
11-04-2011 05:52 PM
11-06-2011 01:07 PM
Open device manager and open the printer driver properties. Select the hardware ID properties and you should see the VID and PID.
You can also do this with the "unknown device" if drivers are not installed.
11-07-2011 12:17 AM
try to use EPL2 commands.
regards,
eyal.
11-07-2011 01:44 AM
try to use EPL2 commands.
regards,
eyal.