from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MnumberCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("mnumber", core, parent)
[docs]
def set(self, mharm: float) -> None:
"""
``[SENSe]:CREFerence:HARMonics:MNUMber`` \n
Snippet: ``driver.applications.k50Spurious.sense.creference.harmonics.mnumber.set(mharm = 1.0)`` \n
Sets the maximum harmonics number to be measured.
:param mharm: numeric value
"""
param = Conversions.decimal_value_to_str(mharm)
self._core.io.write(f'SENSe:CREFerence:HARMonics:MNUMber {param}')
[docs]
def get(self) -> float:
"""
``[SENSe]:CREFerence:HARMonics:MNUMber`` \n
Snippet: ``value: float = driver.applications.k50Spurious.sense.creference.harmonics.mnumber.get()`` \n
Sets the maximum harmonics number to be measured.
"""
response = self._core.io.query_str(f'SENSe:CREFerence:HARMonics:MNUMber?')
return Conversions.str_to_float(response)