Example Code

Windows API: HID Functions (Enumeration)

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW Database Connectivity Toolkit
  • LabVIEW

Code and Documents

Attachment

Download All

Overview

This example shows you how to call into the hid.dll to enumerate the human interface devices on your system.

 

Description

This example will call into the hid.dll to enumerate the human interface devices, using Call Library Function Node expand and show data types for the wired inputs and outputs, similar to the Bundle function.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI .
  2. The GUID and Device Data will enumerate the human interface devices.

 

Additional Information or References  

VI Snippet

122.png

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Che T.
Applications Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
iverson77401
Member
Member
on

Hello,

I use this example code,

I got the data of hidguid

but this data is not same with my divice manager(hid-compliant device )

can you tell me why~~

thanks a lot

taoufiksmires
Member
Member
on

hello ,

i have a handle get class devices but theenum device interfaces don't work . can you help me ? 

amberchang
Member
Member
on

hello,

can support labview 8.6 vi?