10-11-2012 08:01 AM
I have a Zebra printer, now i want to use visa to connect my printer through LPT port.
10-11-2012 08:33 AM
can i get your help? thanks.
10-11-2012 10:00 AM
First, I would say you need to have a little patience. Not all posts get replies as soon as they are posted. The vast majority of the people here are volunteering their time and can montior the forums continually and provide immediate responses.
To answer your question you would use VISA to conect to the printer. Open a VISA session using the string "ASRL10::INSTR". From that point on you simply use VISA Write and VISA Read to communicate with the printer.
03-04-2013 02:36 PM
Hi Mark,
I am having the same problem. I am having trouble communicating with my Zebra Printer. I have attached the code the way you have suggested. I would really appreciate if you can analyze the code and explain what I am doing wrong. By the way the Error I am receiving from the VISA Read is: -1073807339 ( VISA Read in Host Identification.vi ).
The interesting thing is that when I open Zebra Setup Utility, there is a option to communicate to the printer directly.So when I give the same ZPL commands I can actually see the response from the printer.
Thank you very much
03-04-2013 02:53 PM - edited 03-04-2013 02:59 PM
First comment is that the ^XA and ^XZ are not required for the ~HI command. Tilda commands are executed immediately and do not need to be within a ^XA/^XZ block.
When you use the Zebra Setup Utiliy are you communicating via the parallel port? Is the Zebra Setup Utility running while you execute your LabVIEW code? Have you verified that the parallel port is on COM 10?
Your code should work. I don't see anything particularly wrong. The only thing you can try is to cast the string to a VISA resource.
03-04-2013 06:39 PM
Mark, why are you responding while you're supposed to be listening at the CLA summit 😉
03-04-2013 07:44 PM
03-05-2013 02:22 AM
@PhillipBrooks wrote:
Because he is just that awesome!
He saw Zebra and couldn't resist! I joked with him about it tonight
03-05-2013 10:34 PM
Mark,
Thanks for you fast response. I was able to make it work. I had to go to My Computer-Properties-Device Manager-Hardware-COM/LPT Ports-LPT1 Port- Properties-PortSettings-Select using interrupt. After doing that I was able to communicate via LPT port just fine.
Again thank you very much for you suggestions.