mxcubecore.HardwareObjects.ESRF.BlissHutchTrigger#

Read the state of the hutch from the PSS device server and take actions when enter (1) or interlock (0) the hutch. 0 = The hutch has been interlocked and the sample environment should be made

ready for data collection. The actions are extract the detector cover, move the detector to its previous position, set the MD2 to Centring.

1 = The interlock is cleared and the user is entering the hutch to change

the sample(s). The actions are insert the detector cover, move the detecto to a safe position, set MD2 to sample Transfer.

Example xml file: <object class = “ESRF.BlissHutchTrigger”>

<username>Hutch Trigger</username> <pss_tango_device>acs:10000/bl/sa-pss/id30-crate02</pss_tango_device> <polling_interval>5</polling_interval> <pss_card_ch>9/4</pss_card_ch> <object href=”/bliss” role=”controller”/> <values>{“ENABLED”: 1, “DISABLED”: 0}</values>

</object>

Classes

BlissHutchTrigger(name)

Read the state of the hutch from the PSS and take actions.

class mxcubecore.HardwareObjects.ESRF.BlissHutchTrigger.BlissHutchTrigger(name)[source]#

Bases: AbstractNState

Read the state of the hutch from the PSS and take actions.

get_pss_value()[source]#

Get the interlock value :returns: 0 = Hutch interlocked, 1 = Hutch not interlocked. :rtype: (bool)

get_value()[source]#

The value corresponds to activate/deactivate the hutch trigger polling. :returns: Last set value. :rtype: (ValueEnum)

hutch_actions(enter, **kwargs)[source]#

Take action as function of the PSS state :param enter: True if entering hutch (interlock state = 1) :type enter: bool

init()[source]#

Initialise properties and polling

set_value(value, timeout=0)[source]#

Set actuator to value. :param value: target value :param timeout: optional - timeout [s],

If timeout == 0: return at once and do not wait

(default);

if timeout is None: wait forever.

Raises:
  • ValueError – Invalid value or attemp to set read only actuator.

  • RuntimeError – Timeout waiting for status ready # From wait_ready