Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Time.Auto

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


# 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, state: bool) -> None: """ ``[SENSe]:DDEMod:TIME:AUTO`` \n Snippet: ``driver.applications.k70Vsa.sense.ddemod.time.auto.set(state = False)`` \n Determines how the result length is defined for multi-modulation analysis. Is only available if the additional Multi-Modulation Analysis option (FSW-K70M) is installed. :param state: ON | OFF | 0 | 1 OFF | 0 The result length is specified by method ``RsFsw.applications.k70Vsa.sense.ddemod.time.set()`` . ON | 1 The result length is set to the number defined in the currently loaded Frame Structure file. """ param = Conversions.bool_to_str(state) self._core.io.write(f'SENSe:DDEMod:TIME:AUTO {param}')
[docs] def get(self) -> bool: """ ``[SENSe]:DDEMod:TIME:AUTO`` \n Snippet: ``value: bool = driver.applications.k70Vsa.sense.ddemod.time.auto.get()`` \n Determines how the result length is defined for multi-modulation analysis. Is only available if the additional Multi-Modulation Analysis option (FSW-K70M) is installed. :return: state: ON | OFF | 0 | 1 OFF | 0 The result length is specified by method ``RsFsw.applications.k70Vsa.sense.ddemod.time.set()`` . ON | 1 The result length is set to the number defined in the currently loaded Frame Structure file. """ response = self._core.io.query_str(f'SENSe:DDEMod:TIME:AUTO?') return Conversions.str_to_bool(response)