Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Configure.Nr5G.Aclr

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


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

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

[docs] def set(self, state: float | bool) -> None: """ ``CONFigure[:NR5G]:ACLR`` \n Snippet: ``driver.applications.k14Xnr5G.configure.nr5G.aclr.set(state = 1.0)`` \n Includes or excludes ACLR measurements from combined measurements. :param state: (float or boolean) ON | OFF | 1 | 0 """ param = Conversions.decimal_or_bool_value_to_str(state) self._core.io.write(f'CONFigure:NR5G:ACLR {param}')
[docs] def get(self) -> float | bool: """ ``CONFigure[:NR5G]:ACLR`` \n Snippet: ``value: float | bool = driver.applications.k14Xnr5G.configure.nr5G.aclr.get()`` \n Includes or excludes ACLR measurements from combined measurements. :return: state: (float or boolean) ON | OFF | 1 | 0 """ response = self._core.io.query_str(f'CONFigure:NR5G:ACLR?') return Conversions.str_to_float_or_bool(response)