11-16-2009 01:10 AM
11-17-2009 08:37 AM
Can you post the VI that you're using?
Try using the VI attached.
Regards
04-10-2010 06:48 PM
Look at the following blog, you will find a way to do this here:
http://extremetesteng.blogspot.com/
02-03-2011 04:56 PM - edited 02-03-2011 05:00 PM
Hello to all of you guys,
so this is my post on the forum and I hope it will be any good.
I started using LabVIEW about 3 months ago and in the last week I am doing a project where you have to read a barcode and then take some information out of it. This data and some other data from a work place have to create a new barcode.
The WI works !!! In my case !!!
I am using a Zebra 105SL printer and a USB to RS232 connection.
The first thing that you have to be careful is of course the settings between the printer and the VISAserial in LabVIEW !
The second thing (in my case) is that the printer is a DTE (data terminal equipment (IBM)) device and so is the computer. So you need a USB to RS232 + null modem + woman to man connector.
The flow control setting is not important in the program (in my case).
And be careful when you put the code for Zebra into strings. I spent 1 days studying the code. You have to be careful about the ^ sign and use the commands for BEGIN CASE(^XA) and START PRINTING(^XZ) that must start and end each stcker.
When you end the line with END LINE (^FS) use the Line Feed Constant that you found in Strings menu in LabVIEW. It is enough. If you want to send the code to any other device or files use End Of Line Constant (Line feed + Carriage return), the Carriage return will not effect the Zebra printer(in my case).
So my VI works great 🙂
Print screen picture added.
I hope that this will help anybody with something.
Marko
02-03-2011 06:05 PM
You do realize that you are responding to a thread that was started 5 years ago and the most recent post before yours was almost a year ago.
Anyway, there are better ways to build the label fomrat in your code. I would recommend you look at the Format To String VI. Using a massive concatenate string is not the best way to go.
I have communicated with Zebra printers over all interfaces. this includes parallel, serial, USB, Blue Tooth and network. The actual communication with the printer is very straightforward. The challenging part is defining the label format itself. You can download the latest ZPL manual from www.zebra.com. I tried to attach the manual but it is over the size limit for attachments. Even when it is zipped.
04-10-2012 12:52 PM - edited 04-10-2012 12:52 PM
I now have problems with my own solution.
I think Windows 7 is different. I have changed the driver to a Generic/Text but still can't communicate with a newer Zebra.
Has anyone done this with Windows 7 and USB?
06-19-2012 07:57 PM
i am using zebra 110XiIII plus with windows 7 environment.
Interface is USB cable.
Please follow the steps:
1) create raw VISA driver using Driver Wizard after get the correct VID & PID from Device Manager
2) install/update the printer driver using the NI generated inf driver
3) Using VISA open and write.vi, send ZPL text command directly to printer
I have tested this and it works.
10-22-2012 08:59 AM - edited 10-22-2012 09:01 AM
sharinganezz (or anyone else that has gotten this to work) - I am using a ZM400 printer and have not had the same luck with getting the procedure you outlined to work on several Windows 7 PC's. XP seems to work OK.
I'm wondering if there is a difference in either the version of Measurement and Automation eXplorer or the NI-VISA Driver Wizard utility. I am using MAX version 5.01.0f0. I'm not sure how to tell what version of NI-VISA Wizard Driver software I have, but some of the screenshots do not match the NI white paper (http://www.ni.com/white-paper/4478/en) on how to create the driver. My version has a firewire option in addition to PCI/PCX and USB in Figure 1 of the white paper. I also do not see the screenshots shown in Figures 2 and 4 (after selecting USB bus it jumps right to Figure 5).
I appreciate any insight you can provide. Thanks.
10-22-2012 09:30 PM
raydur, how you configure labview to trigger zebra printer for printing?
how is the protocol/control system?
are you using the exact way as i was?
create a raw USB driver through NI-VISA driver wizard utility?
can you share what are the steps that you have taken?
i've checked on ZM400, it seems compatible to win7.
Since you are using only VISA to control the printer, this doesnt seems to be Measurement Automation Explorer (MAX) problem.
If you are able to create a raw USB driver (with the correct VID and PID), you should able to get the things work very soon.
10-26-2012 10:06 AM
Hi there
I am trying to communicate to ZM400 via LPT but cannot get the port to open..Any ideas?
Thanks