Source code for RsPulseSeq.Implementations.Scenario.Cemit.Marker.Time

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class TimeCls: """Time commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("time", core, parent)
[docs] def get_post(self) -> float: """SCPI: SCENario:CEMit:MARKer:TIME:POST \n Snippet: value: float = driver.scenario.cemit.marker.time.get_post() \n Specifies post marker time. \n :return: post: float Range: 0 to 3600 """ response = self._core.io.query_str('SCENario:CEMit:MARKer:TIME:POST?') return Conversions.str_to_float(response)
[docs] def set_post(self, post: float) -> None: """SCPI: SCENario:CEMit:MARKer:TIME:POST \n Snippet: driver.scenario.cemit.marker.time.set_post(post = 1.0) \n Specifies post marker time. \n :param post: float Range: 0 to 3600 """ param = Conversions.decimal_value_to_str(post) self._core.io.write(f'SCENario:CEMit:MARKer:TIME:POST {param}')
[docs] def get_pre(self) -> float: """SCPI: SCENario:CEMit:MARKer:TIME:PRE \n Snippet: value: float = driver.scenario.cemit.marker.time.get_pre() \n Specifies pre marker time. \n :return: pre: float Range: 0 to 3600 """ response = self._core.io.query_str('SCENario:CEMit:MARKer:TIME:PRE?') return Conversions.str_to_float(response)
[docs] def set_pre(self, pre: float) -> None: """SCPI: SCENario:CEMit:MARKer:TIME:PRE \n Snippet: driver.scenario.cemit.marker.time.set_pre(pre = 1.0) \n Specifies pre marker time. \n :param pre: float Range: 0 to 3600 """ param = Conversions.decimal_value_to_str(pre) self._core.io.write(f'SCENario:CEMit:MARKer:TIME:PRE {param}')