IVHooks interface : CustomHook method

CustomHook method
Event
A labware was inventoried.
Description
VWorks software calls the CustomHook method after the storage device inventories a labware. This method is for Liconic incubators that support only west-side barcodes.
Syntax
 
HRESULT CustomHook(
[in] BSTR sXML,
[in, out] BSTR* sResultXML
);
Parameters
 
[in] An OnPlateInventoried XML element that contains information about the inventoried labware.
CustomHook method input
VWorks software passes an OnPlateInventoried XML element into the sXML parameter of the CustomHook method. This XML element provides the following information about the labware that was inventoried.
OnPlateInventoried element
The OnPlateInventoried element has the following attributes:
 
Example of CustomHook method input
The following sample code is an OnPlateInventoried XML element that is received by the plugin from VWorks software as a string in the sXML parameter of the CustomHook method. The plugin returns information about the labware that was inventoried by the device named Store X Device Driver.
 
version='1.0' >
<OnPlateInventoried cassette='1' slot='1' west_barcode='XUB89893-909'
device_name='StoreX driver - 1' />
CustomHook method output
The plugin returns a HookResults XML block in the sResultXML parameter of the CustomHook method. For information about the structure and contents of this XML block, see “HookResults XML block” .
Example of CustomHook method output
The following sample code is a HookResults XML block that is returned to VWorks software by the plugin as a string in the sXML parameter of the CustomHook method. The plugin tells VWorks software to write the following Info-type message to the Main Log:
A microplate was inventoried.
 
<HookResults>
<Results>
<HookResult ResultType='LogMessage' ResultValue='A microplate was
inventoried.' />
</Results>
</HookResults>
Related information