Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Sense.Sweep.Egate.Level.RfPower

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


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

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

[docs] def set(self, level: float) -> None: """ ``[SENSe]:SWEep:EGATe:LEVel:RFPower`` \n Snippet: ``driver.applications.k14Xnr5G.sense.sweep.egate.level.rfPower.set(level = 1.0)`` \n Defines the gate level for which the gate is open. Note that any RF attenuation or preamplification is considered when the trigger level is analyzed. If defined, a reference level offset is also considered. The input signal must be between 500 MHz and 8 GHz. Is only available for triggered gated measurements (method ``RsFsw.sense.sweep.egate.auto.set()`` MAN) . :param level: For details on available trigger levels and trigger bandwidths, refer to the specifications document. Unit: DBM """ param = Conversions.decimal_value_to_str(level) self._core.io.write(f'SENSe:SWEep:EGATe:LEVel:RFPower {param}')
[docs] def get(self) -> float: """ ``[SENSe]:SWEep:EGATe:LEVel:RFPower`` \n Snippet: ``value: float = driver.applications.k14Xnr5G.sense.sweep.egate.level.rfPower.get()`` \n Defines the gate level for which the gate is open. Note that any RF attenuation or preamplification is considered when the trigger level is analyzed. If defined, a reference level offset is also considered. The input signal must be between 500 MHz and 8 GHz. Is only available for triggered gated measurements (method ``RsFsw.sense.sweep.egate.auto.set()`` MAN) . """ response = self._core.io.query_str(f'SENSe:SWEep:EGATe:LEVel:RFPower?') return Conversions.str_to_float(response)