Source code for rsrtx.Implementations.Wgenerator.Acopy

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


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

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

[docs] def set(self, wgenerator=repcap.Wgenerator.Default) -> None: """ ``WGENerator<*>:ACOPy`` \n Snippet: ``driver.wgenerator.acopy.set(wgenerator = repcap.Wgenerator.Default)`` \n Copies all settings from Gen1/Gen2 and applies them to Gen2/Gen1. :param wgenerator: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Wgenerator') """ wgenerator_cmd_val = self._cmd_group.get_repcap_cmd_value(wgenerator, repcap.Wgenerator) self._core.io.write(f'WGENerator{wgenerator_cmd_val}:ACOPy')
[docs] def set_and_wait(self, wgenerator=repcap.Wgenerator.Default, opc_timeout_ms: int = -1) -> None: wgenerator_cmd_val = self._cmd_group.get_repcap_cmd_value(wgenerator, repcap.Wgenerator) """ ``WGENerator<*>:ACOPy`` \n Snippet: ``driver.wgenerator.acopy.set_and_wait(wgenerator = repcap.Wgenerator.Default)`` \n Copies all settings from Gen1/Gen2 and applies them to Gen2/Gen1. Same as set, but waits for the operation to complete before continuing further. Use the RsRtx.utilities.opc_timeout_set() to set the timeout value. :param wgenerator: 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. """ self._core.io.write_with_opc(f'WGENerator{wgenerator_cmd_val}:ACOPy', opc_timeout_ms)