Source code for RsSmw.Implementations.Source.Cemulation.Couple

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions


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

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

	@property
	def logNormal(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_logNormal'):
			from .LogNormal import LogNormalCls
			self._logNormal = LogNormalCls(self._core, self._cmd_group)
		return self._logNormal

[docs] def get_speed(self) -> bool: """ ``[SOURce<HW>]:CEMulation:COUPle:SPEed`` \n Snippet: ``value: bool = driver.source.cemulation.couple.get_speed()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:COUPle:SPEed?') return Conversions.str_to_bool(response)
[docs] def set_speed(self, speed: bool) -> None: """ ``[SOURce<HW>]:CEMulation:COUPle:SPEed`` \n Snippet: ``driver.source.cemulation.couple.set_speed(speed = False)`` \n No help available """ param = Conversions.bool_to_str(speed) self._core.io.write(f'SOURce<HwInstance>:CEMulation:COUPle:SPEed {param}')
def clone(self) -> 'CoupleCls': """ 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 = CoupleCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group