LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read from/write to an HID device with Call Library Function?

Solved!
Go to solution

I have been having tons of trouble reading from an HID USB device in VISA. I had no problems making a driver for it and writing to it in LabVIEW. However, everytime I try to read from it using Visa Read, Visa USB Control In, or USB Interupt event I get different kinds of error messages.

 

I decided to give up on this route and talk to the device through hid.dll, setupapi.dll and any other .dll's I need to use. The problem is I am not sure I am using the Call Library Function nodes correctly... I have seen several KB articles that explain how to set up the Call Library Function Nodes, but I need more information this. I can set stuff up and sometimes get some things to work, but I am not always sure what each of the specific selections in the parameters tab is actually doing. Can someone provide me to more detailed information about what the parameters tab and all of its items are doing?

 

Thanks,

 

Matt

0 Kudos
Message 1 of 4
(5,756 Views)
Solution
Accepted by topic author zenthoef

Have you looked HERE?

 

Shane.

Message 2 of 4
(5,750 Views)
That solved my problem! Thanks so much! I was using the interuptusb.vi but my timeout was too low at 10s for my device. I turned it up and was able to get all the data. Using the mouse example helped me understand the whole USB HID interupt thing a lot better.
0 Kudos
Message 3 of 4
(5,724 Views)

Glad to be of help.

 

Shane.

0 Kudos
Message 4 of 4
(5,711 Views)