Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
9 ratings:
 2.44 out of 5     Rate this Document

Programming HID Compliant USB RAW Devices in Windows Vista using NI VISA

Primary Software: Driver Software>>NI-VISA
Primary Software Version: 4.4.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I have a USB-RAW device that I would like to communicate with it in LabVIEW, LabWindows/CVI, or Visual Studio. How do I use the NI-VISA driver to communicate with this device?

Solution:
General instructions for interfacing with USB RAW devices using the NI-VISA driver are given in the following article KnowledgeBase 325APJ2Y: How Can I Communicate With a Device Using NI-VISA USB RAW Mode?. The VISA Driver Development Wizard is used to create the INF file so that Windows can detect your USB RAW device and use the NI-VISA driver to communicate with it. 

However, HID Compliant devices are a special case. By default, Microsoft Windows installs a Microsoft signed driver for any HID Compliant device on your machine, which can not be overwritten by the VISA Driver Development Wizard generated INF file (on Windows Vista).

The best way to access an HID Compliant device is by making calls directly to the hid.dll library provided in Windows Vista. In LabVIEW, this can be done using the Call Library Function Node located on the functions palette under Connectivity » Libraries and Executables » Call Library Function Node.



The hid.dll library is not supported directly by National Instruments, see the related links section below for more information on communicating with your HID Compliant USB device via this library.

Related Links:
External Site: Microsoft Developer Network (MSDN) HID Drivers
External Site: Human Interface Device FAQ
KnowledgeBase 325APJ2Y: How Can I Communicate With a Device Using NI-VISA USB RAW Mode?
KnowledgeBase 321A2A2Y: What is USBTMC and How Can I Communicate with my USB Instrument?

Attachments:





Report Date: 06/03/2007
Last Updated: 01/22/2009
Document ID: 4A2FRO0E

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit