![]() |
2
3 For a Visual Basic project type, select Class Library from the templates, enter a Name for your project, and then click OK.
4 To successfully interact with VWorks Plugin, you must tell the compiler to generate a type library (TLB) and register it with COM as follows:
a
b
a
b Click the COM tab.
d If you want to implement the IVHooks interface, select the VHooksInterface 1.0 Type Library (VHooksInterface.dll).Note: If you do not see the type library on the list, click the Browse button and then navigate to the …\Agilent Technologies\VWorks folder.
e Click OK.
6 In the code window, add an Implements statement on the line after the Class statement in the following format:Refer to the table in “Interfaces overview” for a list of VWorks Plugin interfaces. For all interfaces but IVHooks, use the IWorksDriver Namespace. For the IVHooks interface, use VHookInterfaceLib.The following example shows the Implements statement for the IWorksDriver interface:
7 Press Enter.Visual Studio automatically creates empty method bodies for each method defined in the interface.
2
3 For a C# project type, select Class Library from the templates, enter a Name for your project, and then click OK.
4 To successfully interact with VWorks Plugin, you must tell the compiler to additionally generate a type library (TLB) and register it for COM interop as follows:
a
b
c
d Select the Make assembly COM-Visible check box.
a
b Click the COM tab.
d If you want to implement the IVHooks interface, select the VHooksInterface 1.0 Type Library (VHooksInterface.dll).Note: If you do not see the type library on the list, click the Browse button and then navigate to the …\Agilent Technologies\VWorks folder.
e Click OK.
6 In the code window, add the interface declaration to the class at the end of the class declaration in the following format:Visual Studio automatically creates empty method bodies for each method defined in the interface.
Loading your plugin into VWorks softwareTo load your plugin into VWorks software for testing:
1 Compile your plugin and copy the appropriate *.dll files into the …\Agilent Technologies\VWorks\Plugins folder as follows:
2 Now you can test your plugin using the IWorksTest utility and VWorks software. For more information about the IWorksTest utility, see “Testing and debugging” .
Defining the XML metadata for your plugin Testing your VWorks software plugin