LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX Device Driver Control from Labview

Hello,

I have inherited an device driver that has been wrapped as an ActiveX component
I have been trying to figure out how to interface to the driver with Labview (7.1)
The problem I am facing is that the type library for the ActiveX component (driver)
is expecting varables passed to it by reference such as int * and double * as well as
pointers to arrays.   The question is how to pass data to the invoke node as a reference to
a Labview variable i.e. is there a way to pass a pointer to a Labview int32 to the ActiveX component?. 
My feeling is this can't be done and the solution is for me to rewrite the
driver using the Variant type and pass by value where possible.   I also need to call the same
driver from Matlab.  I am not sure if Matlab can deal with Varients so anyone who has any insight please
feel free to share your thoughts and experiences.

Thanks,

Devnull
0 Kudos
Message 1 of 2
(2,655 Views)
Hi Devnull,
 
Have you tried using the MoveBlock function with the Call Library Funciton Node?  I think you might find the following discussion forums helpful.  Please let me know if you still have questions, thanks!
 
 
0 Kudos
Message 2 of 2
(2,619 Views)