mxcubecore.HardwareObjects.DESY.P11Transmission#

Classes

P11Transmission(name)

P11Transmission class for controlling transmission settings.

class mxcubecore.HardwareObjects.DESY.P11Transmission.P11Transmission(name)[source]#

Bases: AbstractTransmission

P11Transmission class for controlling transmission settings.

This class extends the AbstractTransmission class and provides methods to interact with hardware for setting and reading the transmission values, as well as handling state changes.

chan_read_value#

Channel object to read the current value.

Type:

Channel

chan_set_value#

Channel object to set the transmission value.

Type:

Channel

chan_state#

Channel object to track the state of the hardware.

Type:

Channel

get_state()[source]#

Gets the current state of the transmission.

Returns:

The current state of the transmission (“READY”, “BUSY”, or “FAULT”).

Return type:

str

get_value()[source]#

Retrieves the current transmission value from the hardware.

Returns:

The current transmission value, multiplied by 100.

Return type:

float

init()[source]#

Initializes the hardware channels and connects signals.

This method sets up the communication channels for reading, setting, and tracking the transmission state. It connects signals to handle updates from the hardware.

re_emit_value(*args)[source]#

Re-emits the current transmission value and state.

This method triggers the state and value updates to ensure the current hardware state and value are reflected in the software.

Parameters:

*args – Optional argument to handle extra signal data.

state_changed(state=None)[source]#

Handles state changes from the hardware.

Parameters:

state (str, optional) – The new state from the hardware. If None, the state is fetched from the channel.