Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to receive USB device handle from DLL

Hi All,

 

I'm working on a firmware running on a development kit and I'm trying to communicate with the board through USB from Labview in Windows environment. For that, I've built a DLL which enumerates, opens Read/Write file handle and does a few other functions. I'm using standard Windows APIs for USB initialization. 

 

I use  "Call libr. function node" in labview to call these dll's. Inside the DLL, I use a function to initialize the USB which returns a device handle to the labview. My question is,  in "Call libr. function node" what is the parameter type I should use to receive the device handle? The device/file handle is defined in the WinAPI as a void pointer.

 

 

Any help will be much appreciated.

 

Thanks,

Hari

0 Kudos
Message 1 of 5
(8,346 Views)

Hello Hari,

 

Have you seen this thread?  DLL call with HANDLE type
0 Kudos
Message 2 of 5
(8,325 Views)

Hi Charlie,

 

That thread is really helpful. Thank you.

 

Regards,

Hari

0 Kudos
Message 3 of 5
(8,323 Views)

how to receive and send bulk data from microcntroller using usb communication and dll concept ...same dll i will use in application1 and application2 for sending and receiving data

0 Kudos
Message 4 of 5
(3,488 Views)

Hey I would recommend starting a new thread on our discussion forum with details about your specific issue. This thread is 9 years old so any new posts on it will not get much visibility.

 

Regards,

Applications Engineering
National Instruments
0 Kudos
Message 5 of 5
(3,479 Views)