LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom HID App

Hi,

 

Is there an example CVI project that I can start with to communicate with a custom HID device?

 

I've done lots of CDC but never an HID, so I'm starting from scratch.

 

Any pointers will be appreciated.

 

Thanks,

 

Dave

0 Kudos
Message 1 of 7
(4,132 Views)

Hi d.,

 

Unfortunately, there are no shipping examples that explicitly cover this topic. However, this should be similar to using a driver with another instrument or creating your own driver. Communicating with a custom HID in CVI would be the same as any other ANSI C API. If you can find an example of how to communicate with an HID with the same communication method as your own in ANSI C, you should be able to apply that in CVI. 

 

Andy F.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 7
(4,089 Views)

Bummer.

 

OK, thanks Andy.

 

Dave

0 Kudos
Message 3 of 7
(4,085 Views)

Just out of curiosity, what is an HID? I'm not familiar with such acronym (neither with CDC, for what is worth...)



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 7
(4,076 Views)

Hi Robert,

 

CDC is Communications Device Class under USB.  Basically, a device will enumerate on a USB port as a standard serial port so you can use standard Windows UART drivers to talk to the USB device.

 

HID is Human Interface Device, mouse, pointer, joy stick, etc.

 

I have a custom embedded system which uses CDC, but the stack keeps crashing.  Not my stack but Microchip's.  So I thought it's easy enough to switch to HID on the embedded side.  I don't know how to do that on the PC side with CVI.  I did find something called libwin that might provide a .dll interface to the Windows USB API that doesn't (appear) to exist in CVI.  Maybe that will work.

 

Thanks,

 

Dave

0 Kudos
Message 5 of 7
(4,070 Views)

Thanks for the Info: I never dealed with such kind of objects in my activity, apart using some USB-to-serial device but only to emulate a standard serial port.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 6 of 7
(4,068 Views)

Yes, the USB to serial device uses CDC.  You'd normally not come across the term CDC unless you were implementing the USB protocol of some sort.  Can't claim I'm an expert because there are dozens of differnt USB classes, thumb drives, printers, etc., and obviously, I don't know HID.

 

d.

0 Kudos
Message 7 of 7
(4,066 Views)