Source code for RsSmw.Implementations.Source.Bb.Gnss.Sv.ImportPy.Beidou

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class BeidouCls:
	"""
	| Commands in total: 5
	| Subgroups: 2
	| Direct child commands: 2
	"""

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

	@property
	def execute(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_execute'):
			from .Execute import ExecuteCls
			self._execute = ExecuteCls(self._core, self._cmd_group)
		return self._execute

	@property
	def file(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_file'):
			from .File import FileCls
			self._file = FileCls(self._core, self._cmd_group)
		return self._file

[docs] def get_uall(self) -> bool: """ ``[SOURce<HW>]:BB:GNSS:SV:IMPort:BEIDou:UALL`` \n Snippet: ``value: bool = driver.source.bb.gnss.sv.importPy.beidou.get_uall()`` \n No help available :return: use_to_all_systems: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:SV:IMPort:BEIDou:UALL?') return Conversions.str_to_bool(response)
[docs] def set_uall(self, use_to_all_systems: bool) -> None: """ ``[SOURce<HW>]:BB:GNSS:SV:IMPort:BEIDou:UALL`` \n Snippet: ``driver.source.bb.gnss.sv.importPy.beidou.set_uall(use_to_all_systems = False)`` \n No help available :param use_to_all_systems: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(use_to_all_systems) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SV:IMPort:BEIDou:UALL {param}')
[docs] def get_ud_source(self) -> bool: """ ``[SOURce<HW>]:BB:GNSS:SV:IMPort:BEIDou:UDSource`` \n Snippet: ``value: bool = driver.source.bb.gnss.sv.importPy.beidou.get_ud_source()`` \n Enables loading the dedicated files as source for the navigation data. :return: use_diff_src_state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:SV:IMPort:BEIDou:UDSource?') return Conversions.str_to_bool(response)
[docs] def set_ud_source(self, use_diff_src_state: bool) -> None: """ ``[SOURce<HW>]:BB:GNSS:SV:IMPort:BEIDou:UDSource`` \n Snippet: ``driver.source.bb.gnss.sv.importPy.beidou.set_ud_source(use_diff_src_state = False)`` \n Enables loading the dedicated files as source for the navigation data. :param use_diff_src_state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(use_diff_src_state) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SV:IMPort:BEIDou:UDSource {param}')
def clone(self) -> 'BeidouCls': """ 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 = BeidouCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group