from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from ......... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class UpCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("up", core, parent)
[docs]
def set(self, indexNull=repcap.IndexNull.Default) -> None:
"""
``[SOURce<HW>]:BB:ARBitrary:WSEGment:CONFigure:SEGMent:INDex<CH0>:UP`` \n
Snippet: ``driver.source.bb.arbitrary.wsegment.configure.segment.index.up.set(indexNull = repcap.IndexNull.Default)`` \n
Shifts the selected waveform segment up by one segment in the segment table.
:param indexNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Index')
"""
indexNull_cmd_val = self._cmd_group.get_repcap_cmd_value(indexNull, repcap.IndexNull)
self._core.io.write(f'SOURce<HwInstance>:BB:ARBitrary:WSEGment:CONFigure:SEGMent:INDex{indexNull_cmd_val}:UP')
[docs]
def set_with_opc(self, indexNull=repcap.IndexNull.Default, opc_timeout_ms: int = -1) -> None:
indexNull_cmd_val = self._cmd_group.get_repcap_cmd_value(indexNull, repcap.IndexNull)
"""
``[SOURce<HW>]:BB:ARBitrary:WSEGment:CONFigure:SEGMent:INDex<CH0>:UP`` \n
Snippet: ``driver.source.bb.arbitrary.wsegment.configure.segment.index.up.set_with_opc(indexNull = repcap.IndexNull.Default)`` \n
Shifts the selected waveform segment up by one segment in the segment table.
Same as set, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value.
:param indexNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Index')
:param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.
"""
self._core.io.write_with_opc(f'SOURce<HwInstance>:BB:ARBitrary:WSEGment:CONFigure:SEGMent:INDex{indexNull_cmd_val}:UP', opc_timeout_ms)