Example Code

USB HID utility in CVI

Code and Documents

Attachment

I'd recently created this sample CVI program to talk to any of the USB HID devices.
This program allows the user to do query and response in raw value of USB HID.

The GUI also has user friendly features such as:

1) Auto file save (if ON)
2) Create list of commands for frequent use
3) Save device setting (e.g. VID, PID, timeouts) 
4) Quick link to reports

Before using the GUI, I encourge one should read the READ_ME.txt.

If you want to use the program right away, you can compile and deploy the software.
Otherwise feel free to modify the software for your application needs.

If you come across any issue with the software, you can e-mail me.
Hope this project will benefit you especially the CVI programmers.

The project is deveoped under Window CVI 2010 and tested with ST and Freescale based microprocessor devices.

-------------------------------------------------------------------------------------------------

This sample USB HID Utility in CVI is developed by:
Chee Chong
Design Engineer
Illinois, U.S.A.
e-mail: cheechong04@yahoo.com

Date: 24-May-2011

-------------------------------------------------------------------------------------------------

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

Comments
noussaier
Member
Member
on

Thank you cheec.

I tested you application but it doesn't send or receive any data, may be i didn't configure correctly the application. I want to communicate with an STM32F4 Discovery board with a 2 bytes report. I don't know what i have to do to make your application communicate with sthe board.

Thank you very much.

S_Guna
Member
Member
on

Thank you Checc. Your example was really helpful, now I can communicate with Custom HID device via LabWindows CVI running in Windows 10. 

Contributors