ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems to load HIDAPI.DLL using external code (HID USB)

Hello, during the last months I have worked with interface USB in Bulk mode using NI VISA RAW to control my devices, so I tried to use HID interface for a specific proyect. I found that is some complicated implement it. Searching the internet I found a library which can be used with Windows, Mac and Linux. This library is specified in http://www.signal11.us/oss/hidapi/ and http://www.signal11.us/oss/hidapi/hidapi/doxygen/html/group__API.html

In windows it is necesary a .dll file. I want to use it with LabVIEW using "Call Library Functions Node". I have had some problems to implement it, principally because in some functions of this library,  the input and output parameter is a structure. Also, in this structure there are variables such as "wchar_t" which I don't know what is the equivalence in labview. I would like to know if you can help me.

Best Regards

0 Kudos
Message 1 of 2
(6,214 Views)

Hi Diegin,

 

In order to use Call Function Library node, you should know the DLL structure. Please refer to this link to configure that node:

https://decibel.ni.com/content/docs/DOC-9069

 

Best,

 

CarmenC.

0 Kudos
Message 2 of 2
(6,118 Views)