dodal.devices.current_amplifiers.CurrentAmp#
- class dodal.devices.current_amplifiers.CurrentAmp[source]#
Base class for current amplifier, it contains the minimal functionality a current amplifier needs:
- gain_conversion_table#
The conversion table between current and gain setting.
- Type:
Enum
Methods
decrease_gain([value])Decrease gain, decrement by 1 by default.
get_gain()Get the current gain setting.
Get the lower limit of the current amplifier.
Get the upper limit of the current amplifier.
increase_gain([value])Increase gain, increment by 1 by default.
Attributes
- abstract async increase_gain(value: int = 1) None[source]#
Increase gain, increment by 1 by default.
- abstract async decrease_gain(value: int = 1) None[source]#
Decrease gain, decrement by 1 by default.
- abstract async get_gain() Enum[source]#
Get the current gain setting.
- Returns:
The member name of the current gain setting in gain_conversion_table.
- Return type:
Enum