Source code for RsSmbv.Implementations.Source.Bb.Gnss.Ostreams

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


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

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

	@property
	def output(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_output'):
			from .Output import OutputCls
			self._output = OutputCls(self._core, self._cmd_group)
		return self._output

[docs] def get_conflict(self) -> bool: """ ``[SOURce<HW>]:BB:GNSS:OSTReams:CONFlict`` \n Snippet: ``value: bool = driver.source.bb.gnss.ostreams.get_conflict()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:OSTReams:CONFlict?') return Conversions.str_to_bool(response)
# noinspection PyTypeChecker
[docs] def get_count(self) -> enums.NumberA: """ ``[SOURce<HW>]:BB:GNSS:OSTReams:COUNt`` \n Snippet: ``value: enums.NumberA = driver.source.bb.gnss.ostreams.get_count()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:OSTReams:COUNt?') return Conversions.str_to_scalar_enum(response, enums.NumberA)
[docs] def set_count(self, output_streams: enums.NumberA) -> None: """ ``[SOURce<HW>]:BB:GNSS:OSTReams:COUNt`` \n Snippet: ``driver.source.bb.gnss.ostreams.set_count(output_streams = enums.NumberA._1)`` \n No help available """ param = Conversions.enum_scalar_to_str(output_streams, enums.NumberA) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:OSTReams:COUNt {param}')
[docs] def get_lock(self) -> bool: """ ``[SOURce<HW>]:BB:GNSS:OSTReams:LOCK`` \n Snippet: ``value: bool = driver.source.bb.gnss.ostreams.get_lock()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:OSTReams:LOCK?') return Conversions.str_to_bool(response)
[docs] def set_lock(self, lock_state: bool) -> None: """ ``[SOURce<HW>]:BB:GNSS:OSTReams:LOCK`` \n Snippet: ``driver.source.bb.gnss.ostreams.set_lock(lock_state = False)`` \n No help available """ param = Conversions.bool_to_str(lock_state) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:OSTReams:LOCK {param}')
def clone(self) -> 'OstreamsCls': """ 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 = OstreamsCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group