Can I Control My Zebra Printer Using LabVIEW?

Updated Jan 7, 2019

Reported In

Software

  • LabVIEW

Driver

  • NI-VISA

Other

Used in a Zebra GK420T printer

Issue Details

I want to send data to my Zebra printer and print it as a label using LabVIEW.
How can I communicate LabVIEW to my Printer to control it?

Solution

One way to achieve sending data to the printer is using the VISA API to send commands through a serial port. Zebra printers can be controlled through ZPL commands which can be consulted on the manufacturer´s site . Once you know what commands to use, you must build a string with them as seen on the example code and send them to the COM port your printer is connected to.

 

Additional Information

  • Since the ZPL commands are part of a third-party programming language, we recommend you consult them directly on the documentation provided by the manufacturer. If the right commands are sent, LabVIEW will be able to control the printer.