Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Sense.Power.Sem.Ntxu

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


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

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

[docs] def set(self, value: float) -> None: """ ``[SENSe]:POWer:SEM:NTXU`` \n Snippet: ``driver.applications.k14Xnr5G.sense.power.sem.ntxu.set(value = 1.0)`` \n Defines the parameter NTXU that defines the position of the spectrum emission mask for 1-H base stations. Prerequisites for this command \n - Select a 1-H base station (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.bstation.set()`` ) . """ param = Conversions.decimal_value_to_str(value) self._core.io.write(f'SENSe:POWer:SEM:NTXU {param}')
[docs] def get(self) -> float: """ ``[SENSe]:POWer:SEM:NTXU`` \n Snippet: ``value: float = driver.applications.k14Xnr5G.sense.power.sem.ntxu.get()`` \n Defines the parameter NTXU that defines the position of the spectrum emission mask for 1-H base stations. Prerequisites for this command \n - Select a 1-H base station (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.bstation.set()`` ) . """ response = self._core.io.query_str(f'SENSe:POWer:SEM:NTXU?') return Conversions.str_to_float(response)