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 you will need communicate with the printer as a serial device. Additionally, you will need to understand the communication protocol of the printer. You can consult Zebra by contacting their technical support
for more information about the printer protocol.
Using LabVIEW to communicate with a serial device:
- Install the NI-VISA driver in the computer. You can download the NI-VISA installer from ni.com.
- Plug in the device to the computer.
- Find the serial port of the device in the computers device manager.
- If the computer is unable to identify the device, please check if the device’s driver is effective, or consult the device provider.
- 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 Serial.vi
- Continuous Serial Write and Read.vi