Hi there,
Not sure what you mean but you can definitively simulate your run.
In the Run Control: Settings, Simulate:
If you want to crash your method on purpose, just include some errors in your method.
If you want to see how the system handles them, check the trace file or include custom traces.
You can also use the user handler step to automatically handle errors (if you do not see it: right click in the general section and remove the smart step DATA Handling steps)
There is no installer for the ErrorSimulator Library. Follow the steps below for setup:
Download ‘ErrorSimulator v1.0.0.zip’
Extract the zip to the “C:\Program Files (x86)\Hamilton\Library\ErrorSimulator” folder.
Open ‘ErrorSimulator Demo.med’ in the “C:\Program Files (x86)\Hamilton\Library\ErrorSimulator\Test Method” and modify the Deck Layout as needed.
Run the demo method to confirm functionality.
Note: the ErrorSimulator Library requires the HSLExtensions library already be installed on the system.
How to use:
The ErrorSimulator Library contains four functions:
InitializeLibrary
Call this function at any time in a method before using any other function from the library. This function performs various checks to confirm the instrument type, database connection, and simulation mode. It also has three parameters to toggle library settings, including Trace Level, Internal dialogs for library error handling, and whether to reset the Simulator Config file as part of initialization.
ResetConfigFile
Call this function at any time to set all functions in the Simulator Config file back to a “No Error” state. This is the same functionality performed as part of the InitializeLibrary function, if set to true. While not required, calling this step at the end of a method and/or in the OnAbort submethod can help avoid incorrect error calls between runs.
SetError
This is the main function of this library, and is used to activate the instrument error at runtime in simulation mode. Call this function any time before calling the instrument step that is intended to error. SetError has three parameters, which are used to determine the function and error to activate.
i_strModule - the device to receive the error (e.g. “1ml channels” or “IPG”)
i_strFunction - the step the receive the error (e.g. “Aspirate” or “Load Carrier")
i_strError - the description of the error to activate on the given step (e.g. “1.Insufficient Liquid Level” or “Y-drive step lost”)
SetErrorByCode
This function can be used in place of the SetError function to the same effect, but requires knowledge of the specific Firmware command and error code syntax. It’s useful to call functions/errors that don’t exist in the library database.
Refer to the Demo Method for more information on using the ErrorSimulator Library.