Source code for RsFsw.Implementations.Applications.K91_Wlan.Sense.Power.Sem.ClassPy

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


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

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

[docs] def set(self, index: float) -> None: """ ``[SENSe]:POWer:SEM:CLASs`` \n Snippet: ``driver.applications.k91Wlan.sense.power.sem.classPy.set(index = 1.0)`` \n Sets the 'Spectrum Emission Mask' (SEM) power class index. The index represents the power classes to be applied. The index is directly related to the entries displayed in the power class drop-down box, within the SEM settings configuration page. """ param = Conversions.decimal_value_to_str(index) self._core.io.write(f'SENSe:POWer:SEM:CLASs {param}')
[docs] def get(self) -> float: """ ``[SENSe]:POWer:SEM:CLASs`` \n Snippet: ``value: float = driver.applications.k91Wlan.sense.power.sem.classPy.get()`` \n Sets the 'Spectrum Emission Mask' (SEM) power class index. The index represents the power classes to be applied. The index is directly related to the entries displayed in the power class drop-down box, within the SEM settings configuration page. """ response = self._core.io.query_str(f'SENSe:POWer:SEM:CLASs?') return Conversions.str_to_float(response)