Source code for RsFsw.Implementations.Sense.Adjust.Configure.Level.Duration.Mode

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


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

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

[docs] def set(self, mode: enums.AutoManualMode) -> None: """ ``[SENSe]:ADJust:CONFigure[:LEVel]:DURation:MODE`` \n Snippet: ``driver.sense.adjust.configure.level.duration.mode.set(mode = enums.AutoManualMode.AUTO)`` \n To determine the ideal reference level, the FSW performs a measurement on the current input data. This command selects the way the FSW determines the length of the measurement . :param mode: AUTO The FSW determines the measurement length automatically according to the current input data. MANual The FSW uses the measurement length defined by method ``RsFsw.applications.k10Xlte.sense.adjust.configure.level.duration.set()`` . """ param = Conversions.enum_scalar_to_str(mode, enums.AutoManualMode) self._core.io.write(f'SENSe:ADJust:CONFigure:LEVel:DURation:MODE {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.AutoManualMode: """ ``[SENSe]:ADJust:CONFigure[:LEVel]:DURation:MODE`` \n Snippet: ``value: enums.AutoManualMode = driver.sense.adjust.configure.level.duration.mode.get()`` \n To determine the ideal reference level, the FSW performs a measurement on the current input data. This command selects the way the FSW determines the length of the measurement . :return: mode: AUTO The FSW determines the measurement length automatically according to the current input data. MANual The FSW uses the measurement length defined by method ``RsFsw.applications.k10Xlte.sense.adjust.configure.level.duration.set()`` . """ response = self._core.io.query_str(f'SENSe:ADJust:CONFigure:LEVel:DURation:MODE?') return Conversions.str_to_scalar_enum(response, enums.AutoManualMode)