from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class HdefinitionCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("hdefinition", core, parent)
[docs]
def get_enable(self) -> bool:
"""
``FRANalysis:HDEFinition[:ENABle]`` \n
Snippet: ``value: bool = driver.franalysis.hdefinition.get_enable()`` \n
Disables the HD mode, which is active by default. In particular, disable the HD mode if you analyze switching peaks.
:return: hd_mode: OFF | ON
"""
response = self._core.io.query_str('FRANalysis:HDEFinition:ENABle?')
return Conversions.str_to_bool(response)
[docs]
def set_enable(self, hd_mode: bool) -> None:
"""
``FRANalysis:HDEFinition[:ENABle]`` \n
Snippet: ``driver.franalysis.hdefinition.set_enable(hd_mode = False)`` \n
Disables the HD mode, which is active by default. In particular, disable the HD mode if you analyze switching peaks.
:param hd_mode: OFF | ON
"""
param = Conversions.bool_to_str(hd_mode)
self._core.io.write(f'FRANalysis:HDEFinition:ENABle {param}')