Hi there,
I have to print serial numbers with a Zebra Z4M+ label printer. I design Labels with Bar-One
Lite and save them as *.txt files. On each label I have placed a text box with dummy text. Then
I open the text file with notepad and replace this dummy with "%s". This variable I then replace
within my LabVIEW application with the actual serial numbers. So far so good...
I tried several methods to print this string to LPT1. If I print it with "copy myfile.txt LPT1"
via command.com, it works fine. If I try the same operation (identical command line, correct
working directory) with the LabVIEW System Exec.vi, nothing happens. An error is reported (2:
Memory is full)
Printing with VISA write from file.vi causes LabVIEW to crash (cpp error line xxx). After
quitting the error dialog, LV closes and the print starts, but not the complete label is
printed.
When printing with VISA write.vi (Resource name LPT1 or ASRL10::INSTR), no error is reported but
also nothing else happens.
I then tried to print with the old serial port write.vi (serial.llb). When I want to print the
whole label (text file with approx. 600 KB), a error is reported: -1073807339 (VISA: (Hex
0xBFFF0015) Timeout expired before operation completed.). When I send a smaller string (only the
part with the serial number, without all the graphics information), these numbers are printed
correctly.
I tried it also via COM1, and that works perfectly. Unfortunately I have no spare COM port,
because the only one available on my machine is already used to connect some FieldPoint modules
to my application.
Can anybody help me out? How do I have to use the VISA VIs to write to LPT? Any other
suggestions? I guess the solution isn't that complicated because printing directly from Bar-One
Lite to LPT1 and from command.com works fine...I would really appreciate any help I can get!
Before I forget it: I use LV7 on a WinXP machine
Thanks in advance
Kind regards
Achim Traeger