10-12-2010 07:26 PM
Hi guys,
I have a question that has been bugging me for a couple of weeks now. For some reason I can't seem to understand how LabVIEW handles Active X calls. Here is my example. Suppose I have the following VBA code:
Set Devices = ZiApplication.Devices
Set FocusDevice = Devices.Open("Focus")
FocusDevice.Initialize
Would the corresponding LabVIEW be something like the following
I guess I have just been confused as to how LabVIEW handles calls like FocusDevice.Initialize, since FocusDevice was a variable of type Devices.
Cheers,
Shivels
Solved! Go to Solution.
10-12-2010 08:49 PM
What you put together appears valid. In the VB code the "Set" operation instantiates the class, returning an object of that class. This is the same as the wire that comes out of the Property Node that is accessing the "Devices" property for the IZiApplication class.
10-13-2010 04:13 PM
Thanks! It all makes sense now, I can't believe it never clicked with me before.
Cheers,
Shivels