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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class SettingCls: """Setting commands group definition. 6 total commands, 2 Subgroups, 3 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("setting", core, parent) @property def catalog(self): """catalog commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_catalog'): from .Catalog import CatalogCls self._catalog = CatalogCls(self._core, self._cmd_group) return self._catalog @property def load(self): """load commands group. 0 Sub-classes, 1 commands.""" 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: """SCPI: [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. \n :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: """SCPI: [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. \n :param filename: 'filename' Filename or complete file path; file extension can be omitted Query the existing files with the command [:SOURcehw]:BB:GNSS:SETTing:CATalog?. """ 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: """SCPI: [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. \n :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