Source code for RsSmbv.Implementations.Source.Iq.Output.Analog.Power

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


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

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

[docs] def get_att_digital(self) -> float: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:POWer:ATTDigital`` \n Snippet: ``value: float = driver.source.iq.output.analog.power.get_att_digital()`` \n For method ``RsSmbv.source.iq.output.analog.mode()`` VATTenuated, set the attenution with that the signal is attenuated. :return: dattenuation: float Range: -3.522 to 80 """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:POWer:ATTDigital?') return Conversions.str_to_float(response)
[docs] def set_att_digital(self, dattenuation: float) -> None: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:POWer:ATTDigital`` \n Snippet: ``driver.source.iq.output.analog.power.set_att_digital(dattenuation = 1.0)`` \n For method ``RsSmbv.source.iq.output.analog.mode()`` VATTenuated, set the attenution with that the signal is attenuated. :param dattenuation: float Range: -3.522 to 80 """ param = Conversions.decimal_value_to_str(dattenuation) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:POWer:ATTDigital {param}')