Source code for RsFsw.Implementations.Applications.K91_Wlan.Sense.Demod.Cestimation

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CestimationCls:
	"""
	| Commands in total: 3
	| Subgroups: 2
	| Direct child commands: 1
	"""

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

	@property
	def payload(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_payload'):
			from .Payload import PayloadCls
			self._payload = PayloadCls(self._core, self._cmd_group)
		return self._payload

	@property
	def range(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_range'):
			from .Range import RangeCls
			self._range = RangeCls(self._core, self._cmd_group)
		return self._range

[docs] def set(self, state: bool) -> None: """ ``[SENSe]:DEMod:CESTimation`` \n Snippet: ``driver.applications.k91Wlan.sense.demod.cestimation.set(state = False)`` \n Note that this command is maintained for compatibility reasons only. Use method ``RsFsw.applications.k91Wlan.sense.demod.cestimation.range.set()`` for new remote control programs. Defines whether channel estimation uses preamble and payload or only preamble. Channel estimation using both the preamble and the payload improves the EVM measurement results. However, this functionality is not supported by the IEEE 802.11 standard and must be disabled if the results are to be measured strictly according to the standard. :param state: ON | OFF | 1 | 0 ON | 1 The channel estimation is performed using the preamble and the payload. The EVM results can be calculated more accurately. OFF | 0 The channel estimation is performed using the preamble only as required in the standard. """ param = Conversions.bool_to_str(state) self._core.io.write(f'SENSe:DEMod:CESTimation {param}')
[docs] def get(self) -> bool: """ ``[SENSe]:DEMod:CESTimation`` \n Snippet: ``value: bool = driver.applications.k91Wlan.sense.demod.cestimation.get()`` \n Note that this command is maintained for compatibility reasons only. Use method ``RsFsw.applications.k91Wlan.sense.demod.cestimation.range.set()`` for new remote control programs. Defines whether channel estimation uses preamble and payload or only preamble. Channel estimation using both the preamble and the payload improves the EVM measurement results. However, this functionality is not supported by the IEEE 802.11 standard and must be disabled if the results are to be measured strictly according to the standard. :return: state: ON | OFF | 1 | 0 ON | 1 The channel estimation is performed using the preamble and the payload. The EVM results can be calculated more accurately. OFF | 0 The channel estimation is performed using the preamble only as required in the standard. """ response = self._core.io.query_str(f'SENSe:DEMod:CESTimation?') return Conversions.str_to_bool(response)
def clone(self) -> 'CestimationCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = CestimationCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group