02-06-2013 02:02 PM
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?
Solved! Go to Solution.
02-06-2013 02:23 PM
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.
02-06-2013 02:31 PM
That worked. Thanks!