LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting from LPT1 print to USB print

I have an application where printing is accomplished by sending strings to LPT1. Most printers are now USB. How can I convert these vis to utilize a USB printer?
0 Kudos
Message 1 of 7
(4,233 Views)
Hello,

Instead of LPT1 or COM, have you tried using the name of your USB port? What occurs when you try using the name of your USB port?


Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 7
(4,206 Views)
Wendy

Before buying a USB printer I was hoping to hear from someone who had similar experiences.


Regards

Tom Radford
0 Kudos
Message 3 of 7
(4,198 Views)
Hello Tom,

I have searched the discussion forums, and it seems like other customers have had success printing to your USB printers. If you set the USB printer to be the default printer for you computer, you can use the Print Report VI to print to it. You would leave the printer name terminal blank, which will default to printing to your USB printer.


Hope that helps.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 4 of 7
(4,182 Views)
what about usb printer print data line by line? I mean printing one line, and then wait,keep paper still in the usb printer, till you send a command to finish printing and paper come out of the usb printer.
http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer
0 Kudos
Message 5 of 7
(4,109 Views)

I didn't see any difference when I switched to a USB printer... well... appart from USB being fantastic 😉

However, the printer is part of the network and is connected to the USB port on the firewall.  I configured the port according to the instructions from the firewall manufacturer.  And basically, I changed the resource name to point to the new driver name LPT1 Port xx, and that was it.  I also thought there would be issues going to USB!!  There were none.

The other fun part is that I also connected my old parallel port printer directly on the parallel port.  I can select it by changing the resource name. 

However, I have not attempted specific printing schemes such as printing a single line, then waiting.  But those are control messages sent to the printer.  Therefore, these are more printer specific features.  You should verify that the new printer supports it.  As for the USB port... it's fantastic.  My next attempt is to place a second USB printer on the network.

And yes... I do try to save paper..  😉

JLV

Message 6 of 7
(4,102 Views)

USB may be nice, but it seems there are too many software layers in between.

I have currently a problem that our barcode label printer needs a lot of special escape sequences to make it print a bar-code. I used to interface it to a VISA LPT1 line and that worked fine. But now VISA does not show the USB001 pinterport as a valid option.

The print-report VIs can use the new port, but there, all my escape chareters are filtered out. So 😞 ---- I'd really like to know how to solve this.

Gabi

7.1 -- 2013
CLA
0 Kudos
Message 7 of 7
(4,056 Views)