from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class IqPowerCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("iqPower", core, parent)
[docs]
def set(self, trigger_level: float) -> None:
"""
``TRIGger[:SEQuence]:LEVel:IQPower`` \n
Snippet: ``driver.applications.k60Transient.trigger.sequence.level.iqPower.set(trigger_level = 1.0)`` \n
Defines the magnitude the I/Q data must exceed to cause a trigger event. Note that any RF attenuation or preamplification
is considered when the trigger level is analyzed. If defined, a reference level offset is also considered. For details on
the trigger source, see 'Trigger Source'.
:param trigger_level: Range: -130 dBm to 30 dBm, Unit: DBM
"""
param = Conversions.decimal_value_to_str(trigger_level)
self._core.io.write(f'TRIGger:SEQuence:LEVel:IQPower {param}')
[docs]
def get(self) -> float:
"""
``TRIGger[:SEQuence]:LEVel:IQPower`` \n
Snippet: ``value: float = driver.applications.k60Transient.trigger.sequence.level.iqPower.get()`` \n
Defines the magnitude the I/Q data must exceed to cause a trigger event. Note that any RF attenuation or preamplification
is considered when the trigger level is analyzed. If defined, a reference level offset is also considered. For details on
the trigger source, see 'Trigger Source'.
:return: trigger_level: Range: -130 dBm to 30 dBm, Unit: DBM
"""
response = self._core.io.query_str(f'TRIGger:SEQuence:LEVel:IQPower?')
return Conversions.str_to_float(response)