Source code for RsFsw.Implementations.Sense.Ademod.Af.Coupling

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


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

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("coupling", core, parent)

[docs] def set(self, coupling: enums.CouplingTypeA) -> None: """ ``[SENSe]:ADEMod:AF:COUPling`` \n Snippet: ``driver.sense.ademod.af.coupling.set(coupling = enums.CouplingTypeA.AC)`` \n Selects the coupling of the AF path of the analyzer in the specified window. :param coupling: AC | DC """ param = Conversions.enum_scalar_to_str(coupling, enums.CouplingTypeA) self._core.io.write(f'SENSe:ADEMod:AF:COUPling {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.CouplingTypeA: """ ``[SENSe]:ADEMod:AF:COUPling`` \n Snippet: ``value: enums.CouplingTypeA = driver.sense.ademod.af.coupling.get()`` \n Selects the coupling of the AF path of the analyzer in the specified window. :return: coupling: AC | DC """ response = self._core.io.query_str(f'SENSe:ADEMod:AF:COUPling?') return Conversions.str_to_scalar_enum(response, enums.CouplingTypeA)