Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5625

USB HID Device LabWindows Communication

$
0
0

Hello!

 

I'm working on creating a system that will consist of a computer communicating with up to 10 different devices that communicate using USB HID. We will be making multiple duplicate systems, and I'm looking for the best way to approach the communication.

 

At first, I followed the information in this article:

http://www.ni.com/tutorial/4478/en/

 

After following the instructions followed by some trial and error with the VISA Driver Wizard and Device Manager, I was able to get a device enumerating in Device Manager under "NI-VISA USB Devices" and was able to write a simple program in LabWindows that used the VISA interface to find it and open a session with the device.

 

However, if I connect another device to the computer (same Vendor ID and Product ID but different serial number), it enumerates as a standard HID device instead of under "NI-VISA USB Devices".

I also noticed that when the article indicated that a "PNF" was supposed to be created, the file wasn't being created. When I looked into this issue, thinking it was related, I found these articles indicating that VISA has some problems with USB HID devices due to the way Windows handles HID devices:

 

http://digital.ni.com/public.nsf/allkb/8FD4C1DC8E80637E862572EF00784338
http://digital.ni.com/public.nsf/allkb/EA2A99F90D5E84EE86256F400064FF7D

 

Even if I'm able to repeat the steps for each device, since there will be multiple systems (and each system will have 10 devices) going through the VISA Driver Wizard / Device Manager for each one would add a lot of complication and time. I'm also concerned that any future changes / debugging efforts could potentially require going through the whole process again.

 

So, I've been investigating alternate ways of approaching the communication (such as dynamically linking to the standard hid.dll), but each approach has had some dificulties along the way.

 

My question is: What's the recommended approach for communicating with USB HID devices with LabWindows?


Viewing all articles
Browse latest Browse all 5625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>