取消
显示结果 
搜索替代 
您的意思是: 

Quality Print

已解决!
转到解答

I am looking for a print directly from LV to a Zebra label printer. Requirements:

  • good qualitiy (will include QR code too)
  • directly to a printer

What would you suggest?

 

I've been trying this:

 

2020-09-21 18_16_12-labview print image directly – Google Suche.png

 

left side: how to get rid of the vi title at the bottom?

 

right side: poor quality and the size of the font (configured with 24) does not affect.... any ideas especially about the quality? anti aliasing would be good.

 

or are there ways recommended? any help appreciated.

 

thanks in advance

0 项奖励
1 条消息(共 15 条)
4,031 次查看
解答
已被主题作者 mischl 接受

Don't try to print directly to the label printer from the report toolkit.  Use the Zebra software to design a label.  From there you can output EPL or ZPL code to a text file.  This is the code that you can send to the printer that will print your label.  Take this code file and add tokens for the variable information.  Save this code in your project.  When you need to print a label, replace the tokens and save the label code as a temporary file. 

You will need to have your Zebra printer shared and give it a name.

Using the System EXEC VI, you can copy the temporary file to the printer using the printer share name.

 

cmd /c copy %filename% \\%computername%\%printershare%

aputman
2 条消息(共 15 条)
3,994 次查看

Wow, that's awesome!

 

Thank you @aputman for all these insights. You hit me to the right direction, saving me a lot of time and effort.

 

Now I know also what to look for here in the forum: ZPL is the key

0 项奖励
3 条消息(共 15 条)
3,939 次查看

Hello,

 

I'm currently looking to do something similar to what you are saying, but am having trouble interfacing the printer and LabVIEW. Would you be able to share the code you used to have LabVIEW trigger the print on the Zebra? 

 

Thanks very much. 

0 项奖励
4 条消息(共 15 条)
3,671 次查看

What model printer are you using? What is your interface to the printer? I generally send the ZPL directly to the printer bypassing all drivers. If you have a network interface (wired or wireless) simply use TCP to connect to port 9100 and send the ZPL. If you are using USB I can see if I can release our LabVIEW library which uses the Zebra SDK to communicate with the printer. Serial and parallel ports can also be accessed directly from within LabVIEW using VISA.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
5 条消息(共 15 条)
3,653 次查看

If you are using USB, you only need to use the command I wrote above.  After giving the printer a share name, you can copy a label ZPL or EPL code file directly to the printer and it will print.  

 

cmd /c copy %filename% \\%computername%\%printershare%


aputman
6 条消息(共 15 条)
3,638 次查看

I am using a GC420t printer interfacing with USB. I have so far been unsuccessful in interfacing the printer with NI MAX or VISA.

0 项奖励
7 条消息(共 15 条)
3,618 次查看

I do intend to use USB. I understand the method of copying a ZPL code file, but I am not sure how to give the printer a share name. Are you able to expand on how to do that? Thank you. 

0 项奖励
8 条消息(共 15 条)
3,612 次查看

That is the same printer I use.  You do not need VISA or Max.  You only need a command prompt using the command I have posted twice now.  

 

Edit:  Go to Printer Properties -> Sharing and enter a name.  Do not use a name with spaces.  This may look different on Win10 computers.  This screen is from Win7.

aputman_0-1621367616081.png

 

aputman
0 项奖励
9 条消息(共 15 条)
3,609 次查看

@kjr53105 wrote:

I am using a GC420t printer interfacing with USB. I have so far been unsuccessful in interfacing the printer with NI MAX or VISA.


You can't connect to the printer via USB using VISA or NI Max, at least not easily. It was possible prior to Windows 7 but Windows 10 requires driver files to be signed which makes it very difficult. You could use the approach that Putnam suggested or I can see if I can package up our code which uses the Zebra SDK.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 项奖励
10 条消息(共 15 条)
3,606 次查看