PE43711Controller

class rfblocks.PE43711Controller(controller_id: str, device: pe43711)[source]

Higher level control for the PE43711 step attenuator board

Documentation for the PE43711 step attenuator rfblocks module can be found here: A PE43711 Step Attenuator

Parameters:
configure(ser: Serial) None[source]

Set the current device attenuation.

Raises:

AttenuationRangeException If the specified attenuation is out of range.

dump_config() Dict[source]

Return the current configuration for this attenuator.

Returns:

A dictionary containing the current attenuator

configuration:

atten:

attenuation in dB

load_config(config: Dict) None[source]

Set the current configuration for this attenuator.

Parameters:

config (Dict) – A dictionary containing the attenuator configuration to be set.

Note that in order to update the attenuator hardware set_attenuation() should be called.