08-20-2011 02:24 PM
Hello/
Im trying to print with a Zebra TLP2844 using labview, I already created the USB Driver, the Atomation Explorer detects it, when I write data to it No error is shown, but nothing is printed, I'm concatenating the next 3 strings and writing them with Visa Write.
N
B10,10,0,3,3,7,200,B,"998152-001"
P1
could you please help me?
08-20-2011 03:56 PM
So you decided to write your own driver instead of using the windows driver for the printer. I'm assuming that you got the details of the USB protocol from the vendor in order to make this work. Otherwise, creating a VISA driver just does not make much sense. Can you provide those details and the code you have written?
p.s. There have been numerous examples posted about the zebra printers. Have you looked at any of them?
08-22-2011 08:30 AM
Hi!!
I will definelty encorage you to use the Zebra drivers. It will make it easyer.
http://www.zebra.com/id/zebra/na/en/index/drivers_downloads/drivers.html
Regards
08-22-2011 11:16 AM
How did you create the driver? It is possible to use the basic VISA Write to send data to the printer provided you have the correct settings in your inf file. Can you post the driver file?
08-22-2011 11:18 AM - edited 08-22-2011 11:18 AM
@Dennis Knutson wrote:
So you decided to write your own driver instead of using the windows driver for the printer. I'm assuming that you got the details of the USB protocol from the vendor in order to make this work. Otherwise, creating a VISA driver just does not make much sense. Can you provide those details and the code you have written?
p.s. There have been numerous examples posted about the zebra printers. Have you looked at any of them?
Actually Zebra printers are fairly easy to communicate with using straight VISA calls and a USB connection. The most challenging part is creating the correct inf file. You can communicate with the printer using nothing more than VISA Write, Read, Open and Close.
08-22-2011 11:47 AM
Actually It's the only way I know to do this, It's working fine now, I needed to define the size of the label in the code, like I show you at the bottom of the email, I use zebra S4M as well but I didn't have that problem with those, Another thing is that I wasn't able to print with concatenated strings in the TLP2844, to solve this I had to make a constant string and replace some values intead of using variables In the concatenated string.
How can I do it with the zebra driver? I looked in the discussion forum but I didn't find it perhaps you can send me a link.
I'm printing a test label when the product passes the test.
label info
The label 4"x1" with 1" printable area.
N
q408
Q203,35+0
S3
D12
ZT
TTh:m
TDy2.mn.dd
A750,30,1,2,1,1,N,"CUSTOMER"
A720,30,1,1,1,1,N,"P/N"
A700,30,1,1,1,1,N,"REV:01"
B680,30,1,1,1,30,30,N,"INTP/N"
A645,30,1,1,1,1,N,"INT/PN"
A625,30,1,1,1,1,N,"FKDFD"
A605,30,1,1,1,1,N,"ASSY MEXICO"
B585,30,1,1,1,30,30,N,"OPERATOR"
A550,30,1,1,1,1,N,"OPERATOR"
A650,200,2,1,1,1,N,"DATE"
P1
08-22-2011 11:52 AM
Yes it is possible,, what windows are you using? I have the windows Vista and XP driver, what Windows are you using?
08-22-2011 01:06 PM
EPL (which is the label generation language you are using) is sensative to newlines. Every EPL command MUST appear on its on line. Unlike ZPL which doesn't care about newlines in the label format. This is most likely the issue you were having when you were concatenating the strings.
I mostly work with XP although I am doing some investigations on Win 7.
I am a Zebra employee and am on our test automation team. My group is responsible for testing the printer firmware. Therefore as you can imagine I am very familiar with communicating with our printers. I don't need the driver to see how to do it but rather to see if I can help you get your to work properly.
08-22-2011 04:30 PM
Actually, I insert a carriadge return on each line and the output string was exactly like the constant string I also create, but still doesn't work, even the string lenghts were the same.
I attached the driver that I use to control it with VISA, i just updated the driver from the device manager and selected the one I attached, and after that NI-Visa detects it.
Unfortunatelly I erased the code that wasn't working but this is the code that worked.
Could you please explain me or send me a code where the driver from Zebra is used?
08-22-2011 04:33 PM
I forgot to attach the driver.,
I change the file extension to be "sendable" you are going to need to change it to ".inf"