docHandler, Door

The measured 0D and 1D data have to be passed to user code for monitoring or pre-analysis purposes. This section discusses how this feature is implemented in Bluesky and Sardana.

Bluesky

An object being derived from from bluesky.callbacks.CallbackBase or bluesky.callbacks.mpl_plotting.QtAwareCallback is registered to a RunEngine to receive the documents generated by the RunEngine, see here The object implements the functions, start(), descriptor(), event(), stop(), clear().

Sardana

Doors are used to receive data records. This example code demonstrates how a simpleDoor is created by inheriting from sardana.taurus.core.tango.sardana.macroserver.BaseDoor. Notice that the simpleDoor is 'activated' by importing it in the main code.