Source code for RsFsw.Implementations.Sense.Adjust.Configure.Smode

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


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

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

[docs] def set(self, search_mode: enums.SearchMode) -> None: """ ``[SENSe]:ADJust:CONFigure:SMODe`` \n Snippet: ``driver.sense.adjust.configure.smode.set(search_mode = enums.SearchMode.FAST)`` \n Determines the search mode for the automatic measurement performed to determine the optimal measurement configuration. :param search_mode: FAST | POPTimzed FAST The measurement is optimized for speed. POPTimzed The measurement is optimized to analyze pulse signals adequately. """ param = Conversions.enum_scalar_to_str(search_mode, enums.SearchMode) self._core.io.write(f'SENSe:ADJust:CONFigure:SMODe {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.SearchMode: """ ``[SENSe]:ADJust:CONFigure:SMODe`` \n Snippet: ``value: enums.SearchMode = driver.sense.adjust.configure.smode.get()`` \n Determines the search mode for the automatic measurement performed to determine the optimal measurement configuration. :return: search_mode: FAST | POPTimzed FAST The measurement is optimized for speed. POPTimzed The measurement is optimized to analyze pulse signals adequately. """ response = self._core.io.query_str(f'SENSe:ADJust:CONFigure:SMODe?') return Conversions.str_to_scalar_enum(response, enums.SearchMode)