Source code for RsFsw.Implementations.Applications.K91_Wlan.Sense.Adjust.Evm.Mode

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


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

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

[docs] def set(self, mode: enums.AutoManualMode) -> None: """ ``[SENSe]:ADJust:EVM:MODE`` \n Snippet: ``driver.applications.k91Wlan.sense.adjust.evm.mode.set(mode = enums.AutoManualMode.AUTO)`` \n Defines how the instrument determines the number of OFDM-symbols to consider during the EVM optimization measurement for the auto level function. :param mode: AUTO | MANual AUTO The R&S FSW WLAN application uses all OFDM symbols for the auto level EVM measurement. MANual Configure the number of OFDM-symbols the instrument should consider during the EVM measurement for the auto level function manually using method ``RsFsw.applications.k91Wlan.sense.adjust.evm.symbols.set()`` . """ param = Conversions.enum_scalar_to_str(mode, enums.AutoManualMode) self._core.io.write(f'SENSe:ADJust:EVM:MODE {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.AutoManualMode: """ ``[SENSe]:ADJust:EVM:MODE`` \n Snippet: ``value: enums.AutoManualMode = driver.applications.k91Wlan.sense.adjust.evm.mode.get()`` \n Defines how the instrument determines the number of OFDM-symbols to consider during the EVM optimization measurement for the auto level function. :return: mode: AUTO | MANual AUTO The R&S FSW WLAN application uses all OFDM symbols for the auto level EVM measurement. MANual Configure the number of OFDM-symbols the instrument should consider during the EVM measurement for the auto level function manually using method ``RsFsw.applications.k91Wlan.sense.adjust.evm.symbols.set()`` . """ response = self._core.io.query_str(f'SENSe:ADJust:EVM:MODE?') return Conversions.str_to_scalar_enum(response, enums.AutoManualMode)