Source code for RsSmw.Implementations.Source.Bb.Gnss.Logging

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


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

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

	@property
	def category(self):
		"""
		| Commands in total: 47
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_category'):
			from .Category import CategoryCls
			self._category = CategoryCls(self._core, self._cmd_group)
		return self._category

	@property
	def destination(self):
		"""
		| Commands in total: 2
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_destination'):
			from .Destination import DestinationCls
			self._destination = DestinationCls(self._core, self._cmd_group)
		return self._destination

	@property
	def offline(self):
		"""
		| Commands in total: 5
		| Subgroups: 1
		| Direct child commands: 4
		"""
		if not hasattr(self, '_offline'):
			from .Offline import OfflineCls
			self._offline = OfflineCls(self._core, self._cmd_group)
		return self._offline

	@property
	def rt(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_rt'):
			from .Rt import RtCls
			self._rt = RtCls(self._core, self._cmd_group)
		return self._rt

	# noinspection PyTypeChecker
[docs] def get_mode(self) -> enums.LogMode: """ ``[SOURce<HW>]:BB:GNSS:LOGGing:MODE`` \n Snippet: ``value: enums.LogMode = driver.source.bb.gnss.logging.get_mode()`` \n Sets the logging mode. :return: mode: RT | OFFLine RT = real-time OFFLine = offline """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:LOGGing:MODE?') return Conversions.str_to_scalar_enum(response, enums.LogMode)
[docs] def set_mode(self, mode: enums.LogMode) -> None: """ ``[SOURce<HW>]:BB:GNSS:LOGGing:MODE`` \n Snippet: ``driver.source.bb.gnss.logging.set_mode(mode = enums.LogMode.OFFLine)`` \n Sets the logging mode. :param mode: RT | OFFLine RT = real-time OFFLine = offline """ param = Conversions.enum_scalar_to_str(mode, enums.LogMode) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:LOGGing:MODE {param}')
def clone(self) -> 'LoggingCls': """ 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 = LoggingCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group