Source code for RsFsw.Implementations.Applications.K40_PhaseNoise.Sense.Sweep.SvFailed

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


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

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

[docs] def set(self, state: enums.AutoMode) -> None: """ ``[SENSe]:SWEep:SVFailed`` \n Snippet: ``driver.applications.k40PhaseNoise.sense.sweep.svFailed.set(state = enums.AutoMode.AUTO)`` \n Turns repeated tries to start the measurement if signal verification fails on and off. :param state: ON | OFF | AUTO If on, the application tries to verify the signal once and then aborts the measurement if verification has failed. """ param = Conversions.enum_scalar_to_str(state, enums.AutoMode) self._core.io.write(f'SENSe:SWEep:SVFailed {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.AutoMode: """ ``[SENSe]:SWEep:SVFailed`` \n Snippet: ``value: enums.AutoMode = driver.applications.k40PhaseNoise.sense.sweep.svFailed.get()`` \n Turns repeated tries to start the measurement if signal verification fails on and off. :return: state: ON | OFF | AUTO If on, the application tries to verify the signal once and then aborts the measurement if verification has failed. """ response = self._core.io.query_str(f'SENSe:SWEep:SVFailed?') return Conversions.str_to_scalar_enum(response, enums.AutoMode)