Source code for rsrtx.Implementations.Wgenerator.ArbGen.MultiChannel

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MultiChannelCls:
	"""
	| Commands in total: 3
	| Subgroups: 2
	| Direct child commands: 1
	"""

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

	@property
	def name(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_name'):
			from .Name import NameCls
			self._name = NameCls(self._core, self._cmd_group)
		return self._name

	@property
	def importPy(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_importPy'):
			from .ImportPy import ImportPyCls
			self._importPy = ImportPyCls(self._core, self._cmd_group)
		return self._importPy

[docs] def open(self, wgenerator=repcap.Wgenerator.Default) -> None: """ ``WGENerator<*>:ARBGen:MULTichannel:OPEN`` \n Snippet: ``driver.wgenerator.arbGen.multiChannel.open(wgenerator = repcap.Wgenerator.Default)`` \n Loads the arbitrary waveform. :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}:ARBGen:MULTichannel:OPEN')
[docs] def open_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<*>:ARBGen:MULTichannel:OPEN`` \n Snippet: ``driver.wgenerator.arbGen.multiChannel.open_and_wait(wgenerator = repcap.Wgenerator.Default)`` \n Loads the arbitrary waveform. Same as open, 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}:ARBGen:MULTichannel:OPEN', opc_timeout_ms)
def clone(self) -> 'MultiChannelCls': """ 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 = MultiChannelCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group