IVHooks interface : ScriptPlateError method

ScriptPlateError method
Event
VWorks software received an error message for the plugin from a script associated with a labware.
Description
VWorks software calls the ScriptPlateError method to send an error message to the plugin from a script associated with a labware.
In JavaScript, the following function invokes the ScriptPlateError method:
plate.reportErrorToPlugin("message to plugin");
Syntax
 
HRESULT ScriptPlateError(
[in] BSTR sXML,
[in, out] BSTR* sResultXML
);
Parameters
 
[in] A ScriptPlateError XML element that contains information about the labware and the error message from the script.
ScriptPlateError method input
VWorks software passes a ScriptPlateError XML element into the sXML parameter of the ScriptPlateError method. This XML element provides information about the labware and the error message from the script.
ScriptPlateError element
The ScriptPlateError element has the following attributes:
 
The barcode if it is located on the north side of the labware, or else the value No bar code.
The barcode if it is located on the south side of the labware, or else the value No bar code.
The barcode if it is located on the west side of the labware, or else the value No bar code.
The barcode if it is located on the east side of the labware, or else the value No bar code.
Example of ScriptPlateError method input
The following sample code is a ScriptPlateError XML element that is received by the plugin from VWorks software as a string in the sXML parameter of the ScriptPlateError method. VWorks software passes the following error message, which is from a script associated with the microplate named process  1 1:
This is a test error about the microplate.
 
<ScriptPlateError EastSideBarcode='No bar code' Labware='1536 Black Greiner'
Message='This is a test error about the microplate.' NorthSideBarcode='No bar code'
PlateName='process - 1 1' SouthSideBarcode='No bar code'
WestSideBarcode='No bar code' />
ScriptPlateError method output
The plugin returns a HookResults XML block in the sResultXML parameter of the ScriptPlateError method. For information about the structure and contents of this XML block, see “HookResults XML block” .
Example of ScriptPlateError 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 sResultXML parameter of the ScriptPlateError method. The plugin tells VWorks software to pause the protocol.
 
<HookResults>
<Results>
<HookResult ResultType='Pause Execution' ResultValue='True' />
</Results>
</HookResults>
Related information