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.

energy_demand#

The energy value that the user wants to set.

Type:

SignalRW[float]

energy#

The actual energy of the insertion device.

Type:

SignalRW[float]

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

set(value: float) None[source]#

Update energy demand and set energy to a given value in keV.

Parameters:

value (float) – Energy in keV.

Return type:

None