![]() |
Testing your VWorks pluginIMPORTANT You should always thoroughly test your plugin using the IWorksTest utility before putting your plugin into production.Compile your plugin and copy the appropriate *.dll files into the …\Agilent Technologies\VWorks\Plugins folder as follows:
• For Visual Basic, copy the project *.dll and TLB files into the …\Agilent Technologies\VWorks\Plugins folder
• For C#, copy the project *.dll, TLB, and interop *.dll files into the …\Agilent Technologies\VWorks\Plugins folder
1
2 Double-click IWorksTest.exe.
3 In the IWorksTest dialog box that appears, select your plugin from the list at the top.The names displayed in this list box are from the Device element’s Description attribute provided in the XML metadata. See “Device element” .If your plugin is not on the list, make sure you copied all of the proper *.dll and TLB files into the …\Agilent Technologies\VWorks\Plugins folder.Note: You can add breakpoints to your code to determine if the plugin is invoked when IWorksTest is started.IMPORTANT Your plugin will not load if the XML metadata is not well-formed.
1 In the MetaData area, click one of the following buttons to display all or one of the root nodes:
•
•
•
• If you provided a 32x32 bitmap icon for the device, the icon should be displayed on the right side of the IWorksTest dialog box.
a Click the Dump MetaData button.
b Enter a File name with an .xml extension so you can open the file in an XML editor or in a Web browser.
c Click Save.
1
2 Click Initialize.If the device is powered on, you can verify that your plugin can communicate with the device and perform any required initialization such as “home the device’s motors.”
1 Select a user privilege from the menu under the Diags button.
2 Click Diags.By selecting different user privileges, you can test the behavior of the diagnostics dialog box under different security levels without having to log in to VWorks software as a different user.
1
2 In the Command area, specify the parameter values you want to pass in the method call.
3 Click Command.IWorksTest calls the IWorksDriver Command method using the parameter values you specified in step 2. See “Command method” .If your plugin implements the IRobotDriver interface, you can check two of its methods using IWorksTest: CheckPlatePresent and Move. See “CheckPlatePresent method” and “Move method” .
1
• Check microplate presence for the CheckPlatePresent method
• Move microplate for the Move method
3 In the Command area, specify the parameter values you want to pass in the method call.
4 Click Command.
IWorkDiags ShowDiagsDialog method IWorksDriver Get32x32Bitmap method