dodal.devices.electron_analyser.base.DualEnergySource#
- class dodal.devices.electron_analyser.base.DualEnergySource[source]#
Holds two EnergySource devices and provides a signal to read energy depending on which source is selected. The energy is the one that corrosponds to the selected_source signal. For example, selected_source is source1 if selected_source is at SelectedSource.SOURCE1 and vise versa for source2 and SelectedSource.SOURCE2.
- Parameters:
source1 (SignalR) – Energy source that corrosponds to SelectedSource.SOURCE1.
source2 (SignalR) – Energy source that corrosponds to SelectedSource.SOURCE2.
selected_source (SignalRW) – Signal that decides the active energy source.
name (str, optional) – Name of this device.
Methods
Attributes
energy