from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class MupCls:
"""Mup commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("mup", core, parent)
[docs]
def set(self, index: int = None) -> None:
"""SCPI: SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:ENTRy:MUP \n
Snippet: driver.source.sequencer.listPy.entry.mup.set(index = 1) \n
Moves the selected entry of the sequencer list one position up. You can specify <Index> to select that entry. Or you can
select an entry via method RsCmwGprfGen.Source.Sequencer.ListPy.index. The selection moves with the entry. \n
:param index: integer Index of the entry to be moved
"""
param = ''
if index:
param = Conversions.decimal_value_to_str(index)
self._core.io.write(f'SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:ENTRy:MUP {param}'.strip())