Source code for RsSmw.Implementations.Source.Iq.Output.Analog.Envelope.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_offset(self) -> float: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:POWer:OFFSet`` \n Snippet: ``value: float = driver.source.iq.output.analog.envelope.power.get_offset()`` \n Queries the current power offset, that is the sum of enabled 'RF Level > Offset' and 'User Correction'. :return: power_offset: float Range: -200 to 200 """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:POWer:OFFSet?') return Conversions.str_to_float(response)