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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SettingCls:
	"""
	| Commands in total: 6
	| Subgroups: 2
	| Direct child commands: 3
	"""

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

	@property
	def catalog(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_catalog'):
			from .Catalog import CatalogCls
			self._catalog = CatalogCls(self._core, self._cmd_group)
		return self._catalog

	@property
	def load(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_load'):
			from .Load import LoadCls
			self._load = LoadCls(self._core, self._cmd_group)
		return self._load

[docs] def delete(self, filename: str) -> None: """ ``[SOURce<HW>]:BB:GNSS:SETTing:DELete`` \n Snippet: ``driver.source.bb.gnss.setting.delete(filename = 'abc')`` \n Deletes the selected file from the default or the specified directory. Refer to 'Accessing Files in the Default or Specified Directory' for general information on file handling in the default and in a specific directory. :param filename: 'filename' Filename or complete file path; file extension can be omitted """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SETTing:DELete {param}')
[docs] def load_file(self, filename: str) -> None: """ ``[SOURce<HW>]:BB:GNSS:SETTing:LOAD`` \n Snippet: ``driver.source.bb.gnss.setting.load_file(filename = 'abc')`` \n Loads the selected file from the default or the specified directory. Loaded are files with extension gnss. Refer to 'Accessing Files in the Default or Specified Directory' for general information on file handling in the default and in a specific directory. :param filename: 'filename' Filename or complete file path; file extension can be omitted Query the existing files with the method ``RsSmw.source.bb.gnss.setting.catalog.value()`` . """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SETTing:LOAD {param}')
[docs] def set_store(self, filename: str) -> None: """ ``[SOURce<HW>]:BB:GNSS:SETTing:STORe`` \n Snippet: ``driver.source.bb.gnss.setting.set_store(filename = 'abc')`` \n Saves the current settings into the selected file; the file extension (gnss) is assigned automatically. Refer to 'Accessing Files in the Default or Specified Directory' for general information on file handling in the default and in a specific directory. :param filename: 'filename' Filename or complete file path """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SETTing:STORe {param}')
def clone(self) -> 'SettingCls': """ 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 = SettingCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group