Source code for RsCMPX_NrFr2Meas.Implementations.Configure.NrMmwMeas.ListPy

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class ListPyCls: """ListPy commands group definition. 22 total commands, 2 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("listPy", core, parent) @property def lrange(self): """lrange commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_lrange'): from .Lrange import LrangeCls self._lrange = LrangeCls(self._core, self._cmd_group) return self._lrange @property def segment(self): """segment commands group. 7 Sub-classes, 0 commands.""" if not hasattr(self, '_segment'): from .Segment import SegmentCls self._segment = SegmentCls(self._core, self._cmd_group) return self._segment
[docs] def get_os_index(self) -> int or bool: """SCPI: CONFigure:NRMMw:MEASurement<Instance>:LIST:OSINdex \n Snippet: value: int or bool = driver.configure.nrMmwMeas.listPy.get_os_index() \n Selects the number of the segment to be displayed in offline mode. The index refers to the range of measured segments, see method RsCMPX_NrFr2Meas.Configure.NrMmwMeas.ListPy.Lrange.set. Setting a value also enables the offline mode. \n :return: offline_seg_index: (integer or boolean) No help available """ response = self._core.io.query_str('CONFigure:NRMMw:MEASurement<Instance>:LIST:OSINdex?') return Conversions.str_to_int_or_bool(response)
[docs] def set_os_index(self, offline_seg_index: int or bool) -> None: """SCPI: CONFigure:NRMMw:MEASurement<Instance>:LIST:OSINdex \n Snippet: driver.configure.nrMmwMeas.listPy.set_os_index(offline_seg_index = 1) \n Selects the number of the segment to be displayed in offline mode. The index refers to the range of measured segments, see method RsCMPX_NrFr2Meas.Configure.NrMmwMeas.ListPy.Lrange.set. Setting a value also enables the offline mode. \n :param offline_seg_index: (integer or boolean) No help available """ param = Conversions.decimal_or_bool_value_to_str(offline_seg_index) self._core.io.write(f'CONFigure:NRMMw:MEASurement<Instance>:LIST:OSINdex {param}')
[docs] def get_value(self) -> bool: """SCPI: CONFigure:NRMMw:MEASurement<Instance>:LIST \n Snippet: value: bool = driver.configure.nrMmwMeas.listPy.get_value() \n Enables or disables the list mode. \n :return: enable: OFF: Disable list mode. ON: Enable list mode. """ response = self._core.io.query_str('CONFigure:NRMMw:MEASurement<Instance>:LIST?') return Conversions.str_to_bool(response)
[docs] def set_value(self, enable: bool) -> None: """SCPI: CONFigure:NRMMw:MEASurement<Instance>:LIST \n Snippet: driver.configure.nrMmwMeas.listPy.set_value(enable = False) \n Enables or disables the list mode. \n :param enable: OFF: Disable list mode. ON: Enable list mode. """ param = Conversions.bool_to_str(enable) self._core.io.write(f'CONFigure:NRMMw:MEASurement<Instance>:LIST {param}')
def clone(self) -> 'ListPyCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = ListPyCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group