Source code for RsFsw.Implementations.Sense.Ademod.Zoom.Start

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


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

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

[docs] def set(self, time: float) -> None: """ ``[SENSe]:ADEMod:ZOOM:STARt`` \n Snippet: ``driver.sense.ademod.zoom.start.set(time = 1.0)`` \n The command selects the start time for the zoomed display of analog-demodulated measurements in the specified window. The maximum value depends on the measurement time, which is set and can be queried with the method ``RsFsw.sense.ademod.mtime.set()`` command. If the zoom function is enabled, the defined number of sweep points are displayed from the start time specified with this command. :param time: Range: 0 s to (measurement time - zoom length) , Unit: S """ param = Conversions.decimal_value_to_str(time) self._core.io.write(f'SENSe:ADEMod:ZOOM:STARt {param}')
[docs] def get(self) -> float: """ ``[SENSe]:ADEMod:ZOOM:STARt`` \n Snippet: ``value: float = driver.sense.ademod.zoom.start.get()`` \n The command selects the start time for the zoomed display of analog-demodulated measurements in the specified window. The maximum value depends on the measurement time, which is set and can be queried with the method ``RsFsw.sense.ademod.mtime.set()`` command. If the zoom function is enabled, the defined number of sweep points are displayed from the start time specified with this command. :return: time: Range: 0 s to (measurement time - zoom length) , Unit: S """ response = self._core.io.query_str(f'SENSe:ADEMod:ZOOM:STARt?') return Conversions.str_to_float(response)