Source code for rsmxo.Implementations.Wgenerator.ArbGen.RunSingle

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from .... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RunSingleCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("runSingle", core, parent)

[docs] def set(self, waveformGen=repcap.WaveformGen.Default, opc_timeout_ms: int = -1) -> None: """ ``WGENerator<*>:ARBGen:RUNSingle`` \n Snippet: ``driver.wgenerator.arbGen.runSingle.set(waveformGen = repcap.WaveformGen.Default)`` \n Executes a single period of the arbitrary signal generator, if method ``RsMxo.wgenerator.arbGen.runMode.set()`` is set to SINGle. :param waveformGen: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Wgenerator') :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call. """ waveformGen_cmd_val = self._cmd_group.get_repcap_cmd_value(waveformGen, repcap.WaveformGen) self._core.io.write_with_opc(f'WGENerator{waveformGen_cmd_val}:ARBGen:RUNSingle', opc_timeout_ms)