Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Sense.Power.Tid

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


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

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

[docs] def set(self, idn: enums.PowerIdn) -> None: """ ``[SENSe]:POWer:TID`` \n Snippet: ``driver.applications.k14Xnr5G.sense.power.tid.set(idn = enums.PowerIdn.ID1)`` \n Selects the test ID for ACLR measurements. Prerequisites for this command \n - Select FR2 frequency deployment (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.uplink.cc.dfRange.set()`` ) . :param idn: NONE No test ID. ID1 | ID2 | ID3 | ID4 | ID5 | ID6 | ID7 | ID8 | ID9 | ID10 | ID11 | ID12 | ID13 | ID14 | ID15 Test ID 1 to 15. """ param = Conversions.enum_scalar_to_str(idn, enums.PowerIdn) self._core.io.write(f'SENSe:POWer:TID {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.PowerIdn: """ ``[SENSe]:POWer:TID`` \n Snippet: ``value: enums.PowerIdn = driver.applications.k14Xnr5G.sense.power.tid.get()`` \n Selects the test ID for ACLR measurements. Prerequisites for this command \n - Select FR2 frequency deployment (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.uplink.cc.dfRange.set()`` ) . :return: idn: NONE No test ID. ID1 | ID2 | ID3 | ID4 | ID5 | ID6 | ID7 | ID8 | ID9 | ID10 | ID11 | ID12 | ID13 | ID14 | ID15 Test ID 1 to 15. """ response = self._core.io.query_str(f'SENSe:POWer:TID?') return Conversions.str_to_scalar_enum(response, enums.PowerIdn)