from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LevelCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("level", core, parent)
[docs]
def set(self, peak_voltage: float) -> None:
"""
``INPut:IQ:FULLscale[:LEVel]`` \n
Snippet: ``driver.applications.k10Xlte.inputPy.iq.fullscale.level.set(peak_voltage = 1.0)`` \n
Defines the peak voltage at the Baseband Input connector if the full scale level is set to manual mode (see method
``RsFsw.applications.k10Xlte.inputPy.iq.fullscale.auto.set()`` ) .
:param peak_voltage: 0.25 V | 0.5 V | 1 V | 2 V Peak voltage level at the connector. Unit: V
"""
param = Conversions.decimal_value_to_str(peak_voltage)
self._core.io.write(f'INPut:IQ:FULLscale:LEVel {param}')
[docs]
def get(self) -> float:
"""
``INPut:IQ:FULLscale[:LEVel]`` \n
Snippet: ``value: float = driver.applications.k10Xlte.inputPy.iq.fullscale.level.get()`` \n
Defines the peak voltage at the Baseband Input connector if the full scale level is set to manual mode (see method
``RsFsw.applications.k10Xlte.inputPy.iq.fullscale.auto.set()`` ) .
:return: peak_voltage: 0.25 V | 0.5 V | 1 V | 2 V Peak voltage level at the connector. Unit: V
"""
response = self._core.io.query_str(f'INPut:IQ:FULLscale:LEVel?')
return Conversions.str_to_float(response)