LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Zebra printer - Printing from LabVIEW using ZPL commands....

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 

Download All
0 Kudos
Message 1 of 158
(12,190 Views)

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?

Michael B.
Applications Engineer
0 Kudos
Message 2 of 158
(12,096 Views)

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..

Message 3 of 158
(12,093 Views)

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?

Michael B.
Applications Engineer
0 Kudos
Message 4 of 158
(12,084 Views)
Yes your right. FYI I've sent the string via USB to rs232 converter connected to the zebras db9 using VISA write.... And no issues.
Thanks for your time.
0 Kudos
Message 5 of 158
(12,081 Views)

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

0 Kudos
Message 6 of 158
(12,078 Views)
Don't wish to cure one thing and then generate issues. How would I retreive the VID and PID numbers?

Thx
0 Kudos
Message 7 of 158
(12,070 Views)

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.

0 Kudos
Message 8 of 158
(12,047 Views)

try to use EPL2 commands.

regards,

eyal.

0 Kudos
Message 9 of 158
(12,038 Views)

try to use EPL2 commands.

regards,

eyal.

0 Kudos
Message 10 of 158
(12,010 Views)