Source code for RsFsw.Implementations.Applications.IqAnalyzer.InputPy.Iq.Fullscale.Level

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:FULLscale[:LEVel]`` \n Snippet: ``driver.applications.iqAnalyzer.inputPy.iq.fullscale.level.set(level = 1.0, inputPy = repcap.InputPy.Default)`` \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 level: 0.25 V | 0.5 V | 1 V | 2 V Peak voltage level at the connector. 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:FULLscale:LEVel {param}')
[docs] def get(self, inputPy=repcap.InputPy.Default) -> float: """ ``INPut<ip>:IQ:FULLscale[:LEVel]`` \n Snippet: ``value: float = driver.applications.iqAnalyzer.inputPy.iq.fullscale.level.get(inputPy = repcap.InputPy.Default)`` \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 inputPy: optional repeated capability selector. Default value: Nr1 (settable in the interface 'InputPy') """ 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:FULLscale:LEVel?') return Conversions.str_to_float(response)