LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB Human Interface Device (HID) in LabVIEW

How do you write/read to/from an HID USB device in LabVIEW? Note that this
is not a mouse or keyboard but does use the standard Windows XP HID driver.


0 Kudos
Message 1 of 4
(9,531 Views)
That depends. If this device is part of the USB TMC standard, you can do the steps in the following KB.

http://digital.ni.com/public.nsf/websearch/044FA220F32774ED86256DB3005850CA

If not, use VISA to create a USB Raw device driver for it.

http://digital.ni.com/public.nsf/allkb/E3A2C4FE42D7ED0D86256DB7005C65C9

Best of Luck!
-Matt S.

LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.
Message 2 of 4
(9,496 Views)
Matt,

Neither of the bellow worked. I believe this answer's why:
http://digital.ni.com/public.nsf/websearch/273BB58D3B52CE6886256F3B00714D03
The device registers as an HID and the above link says that I would have to
change firmware to fix the problem. That's not going to happen because the
hardware is made by another Mfg.

Any other ideas for communication to my USB/HID device? All I need to do is
write and read data from it. The device driver shows an hid.dll. I wonder
if I could call the DLL to accomplish what I need to do. The problem is
that I don't know where to find documentation to setup the DLL call.

- Neal

"Matt_S." <x@no.email> wrote in message
news:1128620447472-275091@exchange.ni.com...
> That depends. If this device is part of the USB TMC standard, you can do
> the steps in the following KB.
>
> http://digital.ni.com/public.nsf/websearch/044FA220F32774ED86256DB3005850CA
>
> If not, use VISA to create a USB Raw device driver for it.
>
> http://digital.ni.com/public.nsf/allkb/E3A2C4FE42D7ED0D86256DB7005C65C9
>
> Best of Luck!
> -Matt S.


0 Kudos
Message 3 of 4
(9,484 Views)
If you knew the functions in that hid.dll, you could interface with it directly with LabVIEW using a Call Library Function Node. As far as the functions to do the reads and the writes, you'd need to know what calls they make in that DLL. That may be your best bet with this device.

Regards,
Matt S.

LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.
0 Kudos
Message 4 of 4
(9,457 Views)