from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
from ... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class DpathCls:
"""Dpath commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("dpath", core, parent)
[docs] def set(self, direct_path_setting: enums.AutoOrOff) -> None:
"""SCPI: INPut:DPATh \n
Snippet: driver.inputPy.dpath.set(direct_path_setting = enums.AutoOrOff.AUTO) \n
Enables or disables the use of the direct path for frequencies close to 0 Hz. If an external frontend is active, the
direct path is always used. \n
:param direct_path_setting: AUTO | OFF AUTO | 1 (Default) the direct path is used automatically for frequencies close to 0 Hz. OFF | 0 The analog mixer path is always used.
"""
param = Conversions.enum_scalar_to_str(direct_path_setting, enums.AutoOrOff)
self._core.io.write(f'INPut:DPATh {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.AutoOrOff:
"""SCPI: INPut:DPATh \n
Snippet: value: enums.AutoOrOff = driver.inputPy.dpath.get() \n
Enables or disables the use of the direct path for frequencies close to 0 Hz. If an external frontend is active, the
direct path is always used. \n
:return: direct_path_setting: No help available"""
response = self._core.io.query_str(f'INPut:DPATh?')
return Conversions.str_to_scalar_enum(response, enums.AutoOrOff)