LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using ACTIVE X in labview

Hi all

 

Please see attach file ,, this is Active X  which called TPDFILTER.OCX . … this suppose to recognize if usb  device connected if yes letter E : rise

 

How can I use this active X in labview

This is the command in this ocx

 

System.String GetDriveLetterByHW_ID ( System.String strInput )

 

please i need this very urgent

 

thansk

 

 

 

 

 

0 Kudos
Message 1 of 2
(2,616 Views)
Not sure if you're asking how to use ActiveX in LabVIEW, or how to use this specific function. The latter I can't really help you with. Did you get documentation? Based solely on the name and the prototype it seems you pass in some sort of hardware ID and you get the drive letter. What this ID is supposed to be, I haven't a clue.

If you're asking how to use ActiveX in LabVIEW 8.2, you basically have to use Automation Open to create a reference to an ActiveX library, and then use the Property and Invoke Node functions to use the ActiveX library. There's plenty of examples that ship with LabVIEW that show you how to do this. Attached is a simple one for the library you posted and the function you provided.
0 Kudos
Message 2 of 2
(2,592 Views)