LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling driver DLLs

Solved!
Go to solution

I am trying to write a LabView program to control a digitizer card. The manufacturer provided a DLL and some example C/C++ code to do this.  My problem is finding out how to pass the driver handle within LabView.  The C code to call this dll looks like this:

 

# define drv_handle void* // This is in the header

 

 

drv_handle hDrv; // returns the handle to the opended driver or NULL in case of error
hDrv = spcm_hOpen ("/dev/spcm0"); // string to the driver to open

 

I can get the card to initialize just fine. I can't figure out how to pass the void* through LabView in to the other functions.  Any suggestions or places to look?

0 Kudos
Message 1 of 3
(2,286 Views)
Solution
Accepted by topic author Aalenox

That would have to be a "pointer sized integer". signed or unsigned doesn't really matter, but you should definitely keep it consistent and personally I prefer unsigned.

Rolf Kalbermatter
My Blog
Message 2 of 3
(2,282 Views)

That worked. Thanks!

0 Kudos
Message 3 of 3
(2,272 Views)