From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview driven USB Label printer

Dear Labview user,

I'm looking to implement a USB Label printer into my Labview application, this printer should print out some parameters that where used in the running application.
Does someone of you know if there exemple exist for such USB communication system or did some one already experienced USB communication with Labview and a third part device like a printer.

Thanks in advance

Regards

HaemoPhil
Message 1 of 30
(21,637 Views)


@HaemoPhil wrote:
Dear Labview user,

I'm looking to implement a USB Label printer into my Labview application, this printer should print out some parameters that where used in the running application.
Does someone of you know if there exemple exist for such USB communication system or did some one already experienced USB communication with Labview and a third part device like a printer.


Unfortunately USB is not just another communication interface with an according API to program like you are used with serial or GPIB. USB is just the lowest level of the electrical specification and protocol for an interface and the actual data transfer is then managed in a differnt protocol level that is highly device specific.

VISA does allow to communicate with USB devices on raw level which means you have to implement the higher level protocol yourself. But without the exact protocol specification used by the device you can't do that and many devices especially in the consumer area do not really specify the exact protocol they use or use one of the predefined protocol classes all modern OS do already have some protocol support for.

As such it is difficult to give a generic advice that would fit all USB devices. Printers I would expect to be handled by the Windows printer manager and should be accessed through the standard Windows printer interface. Label Printers are somewhat special as they do not fit well into the page oritented printing system Windows and most other OS's are using so they usually have their own application that controls them. This application accesses the label printer usually over a proprietary protocol interface. While the protocol itself is almost never disclosed the interface API sometimes is and that can be either a DLL interface or an Active X Automation Server interface (and newer versions probably .Net).

Depending on what interface is provided AND documented you will either have to use the Call Library Node to access the interface API DLL or the Active X (or .Net) functions to get the according interface running. Trying to talk to the device on USB raw is no option IMHO eventhough the protocol may be documented  (which is highly unlikely).

Rolf Kalbermatter
Rolf Kalbermatter
My Blog
Message 2 of 30
(21,618 Views)
I have used the Brother PT-9500DX with Labview and USB.  Brother has an SDK, called B-PAK, that uses com objects to control the printer.
Message 3 of 30
(21,598 Views)

Brian,

Thanks for information, the Brother SDK looks much more complete as the one we where looking for from Seiko...

Would it be possible for you to send me an example of your Labview implementation as I am really new and not familiar in such programing methodes...

Thanks in advance...

0 Kudos
Message 4 of 30
(21,586 Views)
Here is an example.  You need to create a label template using the regular Brother software.  You can then run your Labview program to change the data in the template, and print your label.
Message 5 of 30
(21,573 Views)

Brian,

Thanks a lot that's exactly what I need for my application... 

Regards 

0 Kudos
Message 6 of 30
(21,568 Views)