Re: Labview driven USB Label printer
- From: rolfk <x@xxxxxxxx>
- Date: Wed, 5 Apr 2006 03:10:18 -0500 (CDT)
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
.
- References:
- Labview driven USB Label printer
- From: HaemoPhil
- Labview driven USB Label printer
- Prev by Date: Re: How to combine 2 complete .vi's
- Next by Date: Re: READ/WRITE MS WORD FILE (NY)
- Previous by thread: Labview driven USB Label printer
- Next by thread: Re: SVT 3.1 FFT Spectrum Magnitude VI output is RMS or Peak (db OFF)
- Index(es):
Relevant Pages
|
Loading