from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class IdentifyCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("identify", core, parent)
[docs]
def set(self, state: bool) -> None:
"""
``[SENSe]:CREFerence:HARMonics:IDENtify`` \n
Snippet: ``driver.applications.k50Spurious.sense.creference.harmonics.identify.set(state = False)`` \n
Enables or disables the identification of harmonics of the carrier.
:param state: ON | 1 HArmonics are marked OFF | 0 Harmonics are not marked
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'SENSe:CREFerence:HARMonics:IDENtify {param}')
[docs]
def get(self) -> bool:
"""
``[SENSe]:CREFerence:HARMonics:IDENtify`` \n
Snippet: ``value: bool = driver.applications.k50Spurious.sense.creference.harmonics.identify.get()`` \n
Enables or disables the identification of harmonics of the carrier.
:return: state: ON | 1 HArmonics are marked OFF | 0 Harmonics are not marked
"""
response = self._core.io.query_str(f'SENSe:CREFerence:HARMonics:IDENtify?')
return Conversions.str_to_bool(response)