Source code for RsFsw.Implementations.Applications.K60_Transient.Sense.Bandwidth.Window.Resolution.Auto

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


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

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

[docs] def set(self, bandwidth_resolution_auto: enums.AutoManualMode, window=repcap.Window.Default) -> None: """ ``[SENSe]:BWIDth[:WINDow<n>]:RESolution:AUTO`` \n Snippet: ``driver.applications.k60Transient.sense.bandwidth.window.resolution.auto.set(bandwidth_resolution_auto = enums.AutoManualMode.AUTO, window = repcap.Window.Default)`` \n Switches the RBW between 'Auto' and 'Manual'. The 'Auto' mode automatically selects an optimal RBW. :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') """ param = Conversions.enum_scalar_to_str(bandwidth_resolution_auto, enums.AutoManualMode) window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) self._core.io.write(f'SENSe:BWIDth:WINDow{window_cmd_val}:RESolution:AUTO {param}')
# noinspection PyTypeChecker
[docs] def get(self, window=repcap.Window.Default) -> enums.AutoManualMode: """ ``[SENSe]:BWIDth[:WINDow<n>]:RESolution:AUTO`` \n Snippet: ``value: enums.AutoManualMode = driver.applications.k60Transient.sense.bandwidth.window.resolution.auto.get(window = repcap.Window.Default)`` \n Switches the RBW between 'Auto' and 'Manual'. The 'Auto' mode automatically selects an optimal RBW. :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') """ window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) response = self._core.io.query_str(f'SENSe:BWIDth:WINDow{window_cmd_val}:RESolution:AUTO?') return Conversions.str_to_scalar_enum(response, enums.AutoManualMode)