Source code for RsSmw.Implementations.Source.Iq.Doherty.Power.Attenuation.Coupling

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CouplingCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("coupling", core, parent)

[docs] def get_state(self) -> bool: """ ``[SOURce]:IQ:DOHerty:POWer:ATTenuation:COUPling:[STATe]`` \n Snippet: ``value: bool = driver.source.iq.doherty.power.attenuation.coupling.get_state()`` \n If enabled, the digital attenuation values set with the method ``RsSmw.source.iq.doherty.power.attenuation.value()`` for both signals are coupled. The difference between the values is, however, maintained. :return: state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce:IQ:DOHerty:POWer:ATTenuation:COUPling:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``[SOURce]:IQ:DOHerty:POWer:ATTenuation:COUPling:[STATe]`` \n Snippet: ``driver.source.iq.doherty.power.attenuation.coupling.set_state(state = False)`` \n If enabled, the digital attenuation values set with the method ``RsSmw.source.iq.doherty.power.attenuation.value()`` for both signals are coupled. The difference between the values is, however, maintained. :param state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce:IQ:DOHerty:POWer:ATTenuation:COUPling:STATe {param}')