from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........ import repcap
# 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, level: float, inputPy=repcap.InputPy.Default) -> None:
"""
``INPut<ip>:IQ:OSC:FULLscale[:LEVel]`` \n
Snippet: ``driver.applications.iqAnalyzer.inputPy.iq.osc.fullscale.level.set(level = 1.0, inputPy = repcap.InputPy.Default)`` \n
The full scale level defines the maximum power for baseband input possible without clipping the signal. For manual input,
this setting corresponds to the setting on the oscilloscope. Thus, possible scaling values of the oscilloscope are
allowed.
:param level: Unit: V
:param inputPy: optional repeated capability selector. Default value: Nr1 (settable in the interface 'InputPy')
"""
param = Conversions.decimal_value_to_str(level)
inputPy_cmd_val = self._cmd_group.get_repcap_cmd_value(inputPy, repcap.InputPy)
self._core.io.write(f'INPut{inputPy_cmd_val}:IQ:OSC:FULLscale:LEVel {param}')
[docs]
def get(self, inputPy=repcap.InputPy.Default) -> float:
"""
``INPut<ip>:IQ:OSC:FULLscale[:LEVel]`` \n
Snippet: ``value: float = driver.applications.iqAnalyzer.inputPy.iq.osc.fullscale.level.get(inputPy = repcap.InputPy.Default)`` \n
The full scale level defines the maximum power for baseband input possible without clipping the signal. For manual input,
this setting corresponds to the setting on the oscilloscope. Thus, possible scaling values of the oscilloscope are
allowed.
:param inputPy: optional repeated capability selector. Default value: Nr1 (settable in the interface 'InputPy')
:return: level: Unit: V
"""
inputPy_cmd_val = self._cmd_group.get_repcap_cmd_value(inputPy, repcap.InputPy)
response = self._core.io.query_str(f'INPut{inputPy_cmd_val}:IQ:OSC:FULLscale:LEVel?')
return Conversions.str_to_float(response)