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

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


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

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

[docs] def set(self, state: bool) -> None: """ ``[SENSe]:SWEep:FORWard`` \n Snippet: ``driver.applications.k40PhaseNoise.sense.sweep.forward.set(state = False)`` \n Selects the measurement direction. Specifies the sweep direction. When switched on the sweep direction is from the start frequency to the stop frequency. When switched off the sweep direction is reversed :param state: ON | 1 Measurements in forward direction. The measurements starts at the smallest offset frequency. OFF | 0 Measurement in reverse direction. The measurement starts at the highest offset frequency. """ param = Conversions.bool_to_str(state) self._core.io.write(f'SENSe:SWEep:FORWard {param}')
[docs] def get(self) -> bool: """ ``[SENSe]:SWEep:FORWard`` \n Snippet: ``value: bool = driver.applications.k40PhaseNoise.sense.sweep.forward.get()`` \n Selects the measurement direction. Specifies the sweep direction. When switched on the sweep direction is from the start frequency to the stop frequency. When switched off the sweep direction is reversed :return: state: ON | 1 Measurements in forward direction. The measurements starts at the smallest offset frequency. OFF | 0 Measurement in reverse direction. The measurement starts at the highest offset frequency. """ response = self._core.io.query_str(f'SENSe:SWEep:FORWard?') return Conversions.str_to_bool(response)