dodal.devices.beamlines.i09_1_shared.HardInsertionDeviceEnergy#
- class dodal.devices.beamlines.i09_1_shared.HardInsertionDeviceEnergy[source]#
Compound device to control insertion device energy.
This device link hard x-ray undulator gap and order to the required photon energy. Setting the energy adjusts the undulator gap accordingly.
- Parameters:
undulator_order (
UndulatorOrder)undulator (
UndulatorInMm)config_server (
ConfigClient)filepath (
str)gap_to_energy_func (
EnergyGapConvertor)energy_to_gap_func (
EnergyGapConvertor)name (
str, default:'')
Initialize the HardInsertionDeviceEnergy device.
- Parameters:
undulator_order (UndulatorOrder) – undulator order device.
undulator (UndulatorInMm) – undulator device for gap control.
config_server (ConfigServer) – Config server client to retrieve the lookup table.
filepath (str) – File path to the lookup table on the config server.
gap_to_energy_func (EnergyGapConvertor) – Function to convert gap to energy using the lookup table.
energy_to_gap_func (EnergyGapConvertor) – Function to convert energy to gap using the lookup table.
name (str, optional) – Name for the device. Defaults to empty string.
Methods
get_look_up_table()set(value)Update energy demand and set energy to a given value in keV.
Attributes