05-04-2007 12:42 PM
05-04-2007
04:33 PM
- last edited on
11-06-2025
12:54 PM
by
Content Cleaner
HI amicshah,
You can use the ActiveX Controller Wizard (Tools >> Create ActiveX Controller...) to generate a new instrument driver (essentially a wrapper) for an ActiveX server. This instrument driver contains functions to instantiate the server's object, reference existing server objects, get/set the object's properties, and call the object's methods.
As you know, ActiveX servers specify the events they generate as a collection of methods in an event object. For each event object you select, the wizard generates a set of functions you can use to register callbacks for each event. LabWindows/CVI calls the callbacks when the server generates the events. After you use this wizard, you will notice in your newly creaed instrument driver, a class called "Event Callback Registration Functions". You use those functions to specify the callback functon that gets fired on that event.
You can also check out the low-level ActiveX functions in the Library Tree under Libraries >> ActiveX Library >> Low-Level Functions >> Events.
Hope this helps!
Best Regards,