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

from typing import List

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


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

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

	@property
	def tmodel(self):
		"""
		| Commands in total: 4
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_tmodel'):
			from .Tmodel import TmodelCls
			self._tmodel = TmodelCls(self._core, self._cmd_group)
		return self._tmodel

	@property
	def tsetup(self):
		"""
		| Commands in total: 8
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_tsetup'):
			from .Tsetup import TsetupCls
			self._tsetup = TsetupCls(self._core, self._cmd_group)
		return self._tsetup

[docs] def get_catalog(self) -> List[str]: """ ``[SOURce<HW>]:BB:W3GPp:SETTing:CATalog`` \n Snippet: ``value: List[str] = driver.source.bb.w3Gpp.setting.get_catalog()`` \n This command reads out the files with 3GPP FDD settings in the default directory. The default directory is set using command method ``RsSmw.massMemory.current_directory()`` . Only files with the file extension 3g are listed. :return: catalog: string """ response = self._core.io.query_str('SOURce<HwInstance>:BB:W3GPp:SETTing:CATalog?') return Conversions.str_to_str_list(response)
[docs] def delete(self, filename: str) -> None: """ ``[SOURce<HW>]:BB:W3GPp:SETTing:DELete`` \n Snippet: ``driver.source.bb.w3Gpp.setting.delete(filename = 'abc')`` \n This command deletes the selected file with 3GPP FDD settings. The directory is set using command method ``RsSmw.massMemory.current_directory()`` . A path can also be specified, in which case the files in the specified directory are read. The file extension can be omitted. Only files with the file extension 3g are deleted. :param filename: file_name """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:SETTing:DELete {param}')
[docs] def load(self, filename: str) -> None: """ ``[SOURce<HW>]:BB:W3GPp:SETTing:LOAD`` \n Snippet: ``driver.source.bb.w3Gpp.setting.load(filename = 'abc')`` \n This command loads the selected file with 3GPP FDD settings. The directory is set using command method ``RsSmw.massMemory.current_directory()`` . A path can also be specified, in which case the files in the specified directory are read. The file extension can be omitted. Only files with the file extension 3g are loaded. :param filename: file_name """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:SETTing:LOAD {param}')
[docs] def set_store(self, filename: str) -> None: """ ``[SOURce<HW>]:BB:W3GPp:SETTing:STORe`` \n Snippet: ``driver.source.bb.w3Gpp.setting.set_store(filename = 'abc')`` \n This command stores the current 3GPP FDD settings into the selected file. The directory is set using command method ``RsSmw.massMemory.current_directory()`` . A path can also be specified, in which case the files in the specified directory are read. Only enter the file name. 3GPP FDD settings are stored as files with the specific file extensions 3g. :param filename: string """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp: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