05-18-2015 01:59 AM
I send ESCAPE codes through a serial or USB port to communicate with CITIZEN printers. I guess this is also possible with ZEBRA printers.
05-20-2015 08:25 AM
You can send ZPL commands to the printer. My printer is networked, so I found it easier to save the text to a file and then use MSDOS command to send to printer. If your printer is connected by serial, you can probably send direct by a VISA command. The codes for the ZPL are explained in
https://www.zebra.com/content/dam/zebra/manuals/en-us/software/zpl-zbi2-pm-en.pdf
The attached snippet shows a simple datamatrix barcode. You can add more barcodes or text to the same label, start each one with ^XA and end with ^XZ. Use the ^FO to locate each one.
05-29-2015 09:45 AM
Would you have any example vi for this? This is exactly what I'm trying to accomplish. Zebra GK420d printer with using Bartender. Thanks.
08-04-2015 08:01 AM
Hi,
You can easily generate DataMatrix code into PNG file with Zint Barcode Generator using command line. For example: C:\...\zimp.exe -o YOUROUTPUTFILEPATH -b 71 --square -d YOURCODE creates PNG that you can use in LabVIEW (parameter -h shows complete options)
Download it here:
http://sourceforge.net/projects/zint/?source=navbar
Hope this helps,
Marek.
08-04-2015 10:23 AM
Thanks Marek. That Zint is slick, i hadn't run across it.
08-05-2015 06:18 AM
@MarekH wrote:
Hi,
You can easily generate DataMatrix code into PNG file with Zint Barcode Generator using command line. For example: C:\...\zimp.exe -o YOUROUTPUTFILEPATH -b 71 --square -d YOURCODE creates PNG that you can use in LabVIEW (parameter -h shows complete options)
Hi Marekh,
Thanks for your post. I tried to run as you said, I don't find problem in system cmd prompt it generates png very nicely.
But when do the same thing in LabVIEW, end up an error from system exec function as "Memory Full"
Any thoughts?
08-05-2015 07:55 AM
Hi Sasi,
maybe there's a problem with your access rights to Program Files (x86)\Zint directory, which is destination where image is saved if no -o parameter is specified. Or there maybe problem with directory names (if spaces are present in derectory name, you should use quotation marks in file path ")
Do you have this "Memory full" problem when you use just System Exec.vi, like in the picture ?
If not you can upload the VI so that we can see what the code looks like.
Regards,
Marek