Source code for RsFsw.Implementations.InputPy.Dpath

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


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

	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: """ ``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. :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: """ ``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. """ response = self._core.io.query_str(f'INPut:DPATh?') return Conversions.str_to_scalar_enum(response, enums.AutoOrOff)