Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Sense.Power.Achannel.AaChannel

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


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

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

[docs] def set(self, channel: enums.AdjChannel) -> None: """ ``[SENSe]:POWer:ACHannel:AACHannel`` \n Snippet: ``driver.applications.k14Xnr5G.sense.power.achannel.aaChannel.set(channel = enums.AdjChannel.E500)`` \n Selects the bandwidth of the adjacent channel for ACLR measurements. For MC ACLR measurements, the command selects the bandwidth of the lower adjacent channel. :param channel: EUTRA Selects an EUTRA signal of the same bandwidth like the TX channel as assumed adjacent channel carrier. UTRA128 Selects an UTRA signal with a bandwidth of 1.28MHz as assumed adjacent channel carrier. UTRA384 Selects an UTRA signal with a bandwidth of 3.84MHz as assumed adjacent channel carrier. UTRA768 Selects an UTRA signal with a bandwidth of 7.68MHz as assumed adjacent channel carrier. """ param = Conversions.enum_scalar_to_str(channel, enums.AdjChannel) self._core.io.write(f'SENSe:POWer:ACHannel:AACHannel {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.AdjChannel: """ ``[SENSe]:POWer:ACHannel:AACHannel`` \n Snippet: ``value: enums.AdjChannel = driver.applications.k14Xnr5G.sense.power.achannel.aaChannel.get()`` \n Selects the bandwidth of the adjacent channel for ACLR measurements. For MC ACLR measurements, the command selects the bandwidth of the lower adjacent channel. :return: channel: EUTRA Selects an EUTRA signal of the same bandwidth like the TX channel as assumed adjacent channel carrier. UTRA128 Selects an UTRA signal with a bandwidth of 1.28MHz as assumed adjacent channel carrier. UTRA384 Selects an UTRA signal with a bandwidth of 3.84MHz as assumed adjacent channel carrier. UTRA768 Selects an UTRA signal with a bandwidth of 7.68MHz as assumed adjacent channel carrier. """ response = self._core.io.query_str(f'SENSe:POWer:ACHannel:AACHannel?') return Conversions.str_to_scalar_enum(response, enums.AdjChannel)