Source code for RsFsw.Implementations.Sense.Power.Achannel.Name.Achannel

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Utilities import trim_str_response


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

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

[docs] def set(self, name: str) -> None: """ ``[SENSe]:POWer:ACHannel:NAME:ACHannel`` \n Snippet: ``driver.sense.power.achannel.name.achannel.set(name = 'abc')`` \n Defines a name for the adjacent channel. For MSR ACLR measurements, this command defines the name for the lower adjacent channel in asymmetric channel definitions. To define the name for the upper adjacent channel use the method ``RsFsw.sense.power.achannel.name.uaChannel.set()`` command. For details on MSR signals see 'Measurement on multi-standard radio (MSR) signals'. :param name: String containing the name of the channel """ param = Conversions.value_to_quoted_str(name) self._core.io.write(f'SENSe:POWer:ACHannel:NAME:ACHannel {param}')
[docs] def get(self) -> str: """ ``[SENSe]:POWer:ACHannel:NAME:ACHannel`` \n Snippet: ``value: str = driver.sense.power.achannel.name.achannel.get()`` \n Defines a name for the adjacent channel. For MSR ACLR measurements, this command defines the name for the lower adjacent channel in asymmetric channel definitions. To define the name for the upper adjacent channel use the method ``RsFsw.sense.power.achannel.name.uaChannel.set()`` command. For details on MSR signals see 'Measurement on multi-standard radio (MSR) signals'. :return: name: String containing the name of the channel """ response = self._core.io.query_str(f'SENSe:POWer:ACHannel:NAME:ACHannel?') return trim_str_response(response)