Neil Pate Posted July 27, 2017 Report Share Posted July 27, 2017 Firstly, although I was able to get the custom VISA driver to work (USB Zebra printer) I have reverted back to this technique for getting the printer to work. Have had good success with it. Now onto my problem. I want to print a logo on a label and am struggling to get the ^GF command to work properly (with binary data). I can successfully print a stripe pattern but am not having any success printing the actual logo. In the attached code (very rough prototype code just to get me up and running) I can print a stripy pattern (0xF0, so 11110000 alternating gives me columns of printing in the desired dimension) if I change the selector input to a T (to print my bit-packed logo) nothing prints and the printer seems to get stuck. I do not understand what the problem is as I just assumed, even if my logic for packing the logo into bits is incorrect, I should still get something printed. If I force the top bit high in my bit packing routing I get something printed but obviously not what I expect. Any ideas what could be wrong? I have tried lots of variants of this code without any success. I am stumped why it does not print. My only conclusion is that Windows is mangling the string commands because technically I am sending null characters and backspace etc in my binary data, but I really just assumed the printer would interpret this stuff correctly. logo (64x64).bmp Print Test 5.vi Quote Link to comment
Phillip Brooks Posted July 28, 2017 Report Share Posted July 28, 2017 I would suggest posting on the NI forums and seeking out Mark Yedinak. He's works at Zebra and has been answering LabVIEW / ZPL related questions for a long time. Quote Link to comment
Neil Pate Posted July 28, 2017 Author Report Share Posted July 28, 2017 Thanks Phillip, I did actually try there first, there are some nice threads on zebra specific stuff, but the forum would not allow me to post for some reason! Will try again. Quote Link to comment
infinitenothing Posted July 31, 2017 Report Share Posted July 31, 2017 I've always used Zebra designer to convert my logos to ZPL. Quote Link to comment
Neil Pate Posted August 1, 2017 Author Report Share Posted August 1, 2017 Nice tip, thanks! I tried that and it seemed to generate some sensible ZPL. Interestingly it is using ^GFA rather than the ^GFB which I was trying to use. I do not have access to the printer anymore but should be able to test soon. Quote Link to comment
Neil Pate Posted August 7, 2017 Author Report Share Posted August 7, 2017 Managed to get this working in the end. http://labelary.com/viewer.html 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.