Source code for RsCmwGprfGen.Implementations.Source.Sequencer.ListPy.Entry

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class EntryCls: """Entry commands group definition. 5 total commands, 4 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("entry", core, parent) @property def insert(self): """insert commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_insert'): from .Insert import InsertCls self._insert = InsertCls(self._core, self._cmd_group) return self._insert @property def call(self): """call commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_call'): from .Call import CallCls self._call = CallCls(self._core, self._cmd_group) return self._call @property def mup(self): """mup commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_mup'): from .Mup import MupCls self._mup = MupCls(self._core, self._cmd_group) return self._mup @property def mdown(self): """mdown commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_mdown'): from .Mdown import MdownCls self._mdown = MdownCls(self._core, self._cmd_group) return self._mdown
[docs] def delete(self, index: int = None) -> None: """SCPI: SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:ENTRy:DELete \n Snippet: driver.source.sequencer.listPy.entry.delete(index = 1) \n Deletes the selected entry from the sequencer list. You can specify <Index> to select that entry. Or you can select an entry via method RsCmwGprfGen.Source.Sequencer.ListPy.index. After the deletion, the selection moves to the next entry, if possible. Otherwise, it moves to the previous entry. \n :param index: integer Index of the entry to be deleted """ param = '' if index: param = Conversions.decimal_value_to_str(index) self._core.io.write(f'SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:ENTRy:DELete {param}'.strip())
def clone(self) -> 'EntryCls': """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 = EntryCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group