Source code for RsPulseSeq.Implementations.Waveform.View.Zoom

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class ZoomCls: """Zoom commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("zoom", core, parent)
[docs] def set_point(self, point: float) -> None: """SCPI: WAVeform:VIEW:ZOOM:POINt \n Snippet: driver.waveform.view.zoom.set_point(point = 1.0) \n Sets center point of the displayed area. \n :param point: float Always related to time Unit: s """ param = Conversions.decimal_value_to_str(point) self._core.io.write(f'WAVeform:VIEW:ZOOM:POINt {param}')
[docs] def set_range(self, range_py: float) -> None: """SCPI: WAVeform:VIEW:ZOOM:RANGe \n Snippet: driver.waveform.view.zoom.set_range(range_py = 1.0) \n Sets the displayed waveform part as a range around the selected center point, set with the command method RsPulseSeq. Scenario.Volatile.View.Zoom.point. \n :param range_py: float Expressed as a time span (units can be omitted) or as number of samples """ param = Conversions.decimal_value_to_str(range_py) self._core.io.write(f'WAVeform:VIEW:ZOOM:RANGe {param}')