Source code for rsrtx.Implementations.Bus.Parallel

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ParallelCls:
	"""
	| Commands in total: 22
	| Subgroups: 13
	| Direct child commands: 1
	"""

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

	@property
	def threshold(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_threshold'):
			from .Threshold import ThresholdCls
			self._threshold = ThresholdCls(self._core, self._cmd_group)
		return self._threshold

	@property
	def thCoupling(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_thCoupling'):
			from .ThCoupling import ThCouplingCls
			self._thCoupling = ThCouplingCls(self._core, self._cmd_group)
		return self._thCoupling

	@property
	def technology(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_technology'):
			from .Technology import TechnologyCls
			self._technology = TechnologyCls(self._core, self._cmd_group)
		return self._technology

	@property
	def hysteresis(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_hysteresis'):
			from .Hysteresis import HysteresisCls
			self._hysteresis = HysteresisCls(self._core, self._cmd_group)
		return self._hysteresis

	@property
	def state(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_state'):
			from .State import StateCls
			self._state = StateCls(self._core, self._cmd_group)
		return self._state

	@property
	def desOffset(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_desOffset'):
			from .DesOffset import DesOffsetCls
			self._desOffset = DesOffsetCls(self._core, self._cmd_group)
		return self._desOffset

	@property
	def clon(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_clon'):
			from .Clon import ClonCls
			self._clon = ClonCls(self._core, self._cmd_group)
		return self._clon

	@property
	def clock(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_clock'):
			from .Clock import ClockCls
			self._clock = ClockCls(self._core, self._cmd_group)
		return self._clock

	@property
	def clSlope(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_clSlope'):
			from .ClSlope import ClSlopeCls
			self._clSlope = ClSlopeCls(self._core, self._cmd_group)
		return self._clSlope

	@property
	def display(self):
		"""
		| Commands in total: 3
		| Subgroups: 3
		| Direct child commands: 0
		"""
		if not hasattr(self, '_display'):
			from .Display import DisplayCls
			self._display = DisplayCls(self._core, self._cmd_group)
		return self._display

	@property
	def bit(self):
		"""
		| Commands in total: 3
		| Subgroups: 3
		| Direct child commands: 0
		"""
		if not hasattr(self, '_bit'):
			from .Bit import BitCls
			self._bit = BitCls(self._core, self._cmd_group)
		return self._bit

	@property
	def data(self):
		"""
		| Commands in total: 3
		| Subgroups: 3
		| Direct child commands: 0
		"""
		if not hasattr(self, '_data'):
			from .Data import DataCls
			self._data = DataCls(self._core, self._cmd_group)
		return self._data

	@property
	def decTable(self):
		"""
		| Commands in total: 3
		| Subgroups: 3
		| Direct child commands: 0
		"""
		if not hasattr(self, '_decTable'):
			from .DecTable import DecTableCls
			self._decTable = DecTableCls(self._core, self._cmd_group)
		return self._decTable

[docs] def clear(self, bus=repcap.Bus.Default) -> None: """ ``BUS<*>:PARallel:CLEar`` \n Snippet: ``driver.bus.parallel.clear(bus = repcap.Bus.Default)`` \n Removes all assigned digital channels from the bus :param bus: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bus') """ bus_cmd_val = self._cmd_group.get_repcap_cmd_value(bus, repcap.Bus) self._core.io.write(f'BUS{bus_cmd_val}:PARallel:CLEar')
[docs] def clear_and_wait(self, bus=repcap.Bus.Default, opc_timeout_ms: int = -1) -> None: bus_cmd_val = self._cmd_group.get_repcap_cmd_value(bus, repcap.Bus) """ ``BUS<*>:PARallel:CLEar`` \n Snippet: ``driver.bus.parallel.clear_and_wait(bus = repcap.Bus.Default)`` \n Removes all assigned digital channels from the bus Same as clear, but waits for the operation to complete before continuing further. Use the RsRtx.utilities.opc_timeout_set() to set the timeout value. :param bus: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bus') :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call. """ self._core.io.write_with_opc(f'BUS{bus_cmd_val}:PARallel:CLEar', opc_timeout_ms)
def clone(self) -> 'ParallelCls': """ 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 = ParallelCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group