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[float])source2 (
SignalR[float])selected_source (
SignalRW[SelectedSource])name (
str, default:'')source1 – Energy source that corrosponds to SelectedSource.SOURCE1.
source2 – Energy source that corrosponds to SelectedSource.SOURCE2.
selected_source – Signal that decides the active energy source.
name – Name of this device.
Methods
Attributes
energy