mxcubecore.HardwareObjects.LNLS.EPICS.EPICSActuator#
Classes
|
|
|
This class alters the _set_value function of EPICSActuator for cases when the set is done via bluesky rather than directly by MXCuBE. |
- class mxcubecore.HardwareObjects.LNLS.EPICS.EPICSActuator.EPICSActuator(name)[source]#
Bases:
AbstractActuator- set_value(value, timeout: float = 0)[source]#
Set actuator to value.
If
timeout == 0: return at once and do not wait (default). Iftimeout 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):
- class mxcubecore.HardwareObjects.LNLS.EPICS.EPICSActuator.EPICSActuatorBluesky(name)[source]#
Bases:
EPICSActuatorThis class alters the _set_value function of EPICSActuator for cases when the set is done via bluesky rather than directly by MXCuBE. The plan’s name and parameter must be specified at the configuration file. Because wait_ready function works the same way as EPICSActuator, frontend functionality remains the same.
YAML Example#
%YAML 1.2 — class: LNLS.EPICS.EPICSActuator.EPICSActuatorBluesky epics: “MNC:A:DCM01:”:
channels: rbv:
suffix: “GonRx_Energy_RBV” polling_period: 200
- val:
suffix: “Energy_SP”
configuration: tolerance: 0.01 plan_name: “move_energy_and_phase” plan_parameter: “energy” default_limits: (5, 20)