How Do I Use LabVIEW to Communicate with a USB Printer?

Updated Aug 7, 2018

Reported In


  • LabVIEW



Issue Details

I have a 3rd-party printer Zebra ZT210. It has a USB port. How can I use LabVIEW to control the printer?


In general, a printer with a USB port has a virtual COM port created by USB-to-serial adapters within the printer. Using LabVIEW to communicate with the printer:
  1. Understand the communication protocol of the printer. You can consult the printer’s provider for more information about the protocol.
  2. Use LabVIEW to communicate with the printer as a serial device.
Using LabVIEW to communicate with a serial device:
  1. Install the NI-VISA driver in the computer. You can download the NI-VISA 17.0 installer or other versions from
  2. Plug in the device to the computer.
  3. Find the serial port of the device in the computer device manager.
    1. If the computer is unable to identify the device, please check if the device’s driver is effective, or consult the device provider.
  4. Program in LabVIEW to communicate with the serial port. You can search in the NI Example Finder with keyword “VISA” for related examples. To open the NI Example Finder, click Help Find Example in LabVIEW. The following examples may help:
    • Simple
    • Continuous Serial Write and


Not Helpful