mxcubecore.HardwareObjects.LNLS.EPICS.EPICSActuator#

Classes

class mxcubecore.HardwareObjects.LNLS.EPICS.EPICSActuator.EPICSActuator(name)[source]#

Bases: AbstractActuator

abort()[source]#

Immediately terminate HardwareObject action.

Should not happen in state READY.

get_value()[source]#

Read the actuator position.

Returns:

Actuator position.

init()[source]#

Init properties: actuator_name, username, read_only and default_value.

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

Set actuator to value.

If timeout == 0: return at once and do not wait (default). If timeout is None: wait forever.

Parameters:
  • value – target value

  • timeout (float) – Optional timeout in seconds. Default is 0: do not wait.

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

  • RuntimeError – Timeout waiting for status ready (from wait_ready):

wait_ready(timeout: float | None = None)[source]#

Wait timeout seconds till object is ready.

If timeout is None: wait forever.

Parameters:

timeout (Optional[float], optional) – Timeout (seconds). Defaults to None.