Source code for rsrtx.Implementations.MassMemory.AutoNaming

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from ....Internal.Utilities import trim_str_response


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AutoNamingCls:
	"""
	| Commands in total: 9
	| Subgroups: 2
	| Direct child commands: 7
	"""

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

	@property
	def resPath(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_resPath'):
			from .ResPath import ResPathCls
			self._resPath = ResPathCls(self._core, self._cmd_group)
		return self._resPath

	@property
	def resAll(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_resAll'):
			from .ResAll import ResAllCls
			self._resAll = ResAllCls(self._core, self._cmd_group)
		return self._resAll

[docs] def get_time(self) -> bool: """ ``MMEMory:AUTonaming:TIME`` \n Snippet: ``value: bool = driver.massMemory.autoNaming.get_time()`` \n Includes or excludes the name part in the file name pattern for automatic file name generation. This name is used as the default file name. The prefix indicates the type of data that is saved, for example, Histogram, RefCurve, Settings. To define a user text, use method ``RsRtx.massMemory.autoNaming.text()`` . """ response = self._core.io.query_str_with_opc('MMEMory:AUTonaming:TIME?') return Conversions.str_to_bool(response)
[docs] def set_time(self, name_time: bool) -> None: """ ``MMEMory:AUTonaming:TIME`` \n Snippet: ``driver.massMemory.autoNaming.set_time(name_time = False)`` \n Includes or excludes the name part in the file name pattern for automatic file name generation. This name is used as the default file name. The prefix indicates the type of data that is saved, for example, Histogram, RefCurve, Settings. To define a user text, use method ``RsRtx.massMemory.autoNaming.text()`` . :param name_time: OFF | ON """ param = Conversions.bool_to_str(name_time) self._core.io.write_with_opc(f'MMEMory:AUTonaming:TIME {param}')
[docs] def get_index(self) -> bool: """ ``MMEMory:AUTonaming:INDex`` \n Snippet: ``value: bool = driver.massMemory.autoNaming.get_index()`` \n Includes or excludes the name part in the file name pattern for automatic file name generation. This name is used as the default file name. The prefix indicates the type of data that is saved, for example, Histogram, RefCurve, Settings. To define a user text, use method ``RsRtx.massMemory.autoNaming.text()`` . """ response = self._core.io.query_str_with_opc('MMEMory:AUTonaming:INDex?') return Conversions.str_to_bool(response)
[docs] def set_index(self, name_index: bool) -> None: """ ``MMEMory:AUTonaming:INDex`` \n Snippet: ``driver.massMemory.autoNaming.set_index(name_index = False)`` \n Includes or excludes the name part in the file name pattern for automatic file name generation. This name is used as the default file name. The prefix indicates the type of data that is saved, for example, Histogram, RefCurve, Settings. To define a user text, use method ``RsRtx.massMemory.autoNaming.text()`` . :param name_index: OFF | ON """ param = Conversions.bool_to_str(name_index) self._core.io.write_with_opc(f'MMEMory:AUTonaming:INDex {param}')
[docs] def get_date(self) -> bool: """ ``MMEMory:AUTonaming:DATE`` \n Snippet: ``value: bool = driver.massMemory.autoNaming.get_date()`` \n Includes or excludes the name part in the file name pattern for automatic file name generation. This name is used as the default file name. The prefix indicates the type of data that is saved, for example, Histogram, RefCurve, Settings. To define a user text, use method ``RsRtx.massMemory.autoNaming.text()`` . """ response = self._core.io.query_str_with_opc('MMEMory:AUTonaming:DATE?') return Conversions.str_to_bool(response)
[docs] def set_date(self, name_date: bool) -> None: """ ``MMEMory:AUTonaming:DATE`` \n Snippet: ``driver.massMemory.autoNaming.set_date(name_date = False)`` \n Includes or excludes the name part in the file name pattern for automatic file name generation. This name is used as the default file name. The prefix indicates the type of data that is saved, for example, Histogram, RefCurve, Settings. To define a user text, use method ``RsRtx.massMemory.autoNaming.text()`` . :param name_date: OFF | ON """ param = Conversions.bool_to_str(name_date) self._core.io.write_with_opc(f'MMEMory:AUTonaming:DATE {param}')
[docs] def get_user_text(self) -> bool: """ ``MMEMory:AUTonaming:USERtext`` \n Snippet: ``value: bool = driver.massMemory.autoNaming.get_user_text()`` \n Includes or excludes the name part in the file name pattern for automatic file name generation. This name is used as the default file name. The prefix indicates the type of data that is saved, for example, Histogram, RefCurve, Settings. To define a user text, use method ``RsRtx.massMemory.autoNaming.text()`` . """ response = self._core.io.query_str_with_opc('MMEMory:AUTonaming:USERtext?') return Conversions.str_to_bool(response)
[docs] def set_user_text(self, nme_string_st: bool) -> None: """ ``MMEMory:AUTonaming:USERtext`` \n Snippet: ``driver.massMemory.autoNaming.set_user_text(nme_string_st = False)`` \n Includes or excludes the name part in the file name pattern for automatic file name generation. This name is used as the default file name. The prefix indicates the type of data that is saved, for example, Histogram, RefCurve, Settings. To define a user text, use method ``RsRtx.massMemory.autoNaming.text()`` . :param nme_string_st: OFF | ON """ param = Conversions.bool_to_str(nme_string_st) self._core.io.write_with_opc(f'MMEMory:AUTonaming:USERtext {param}')
[docs] def get_prefix(self) -> bool: """ ``MMEMory:AUTonaming:PREFix`` \n Snippet: ``value: bool = driver.massMemory.autoNaming.get_prefix()`` \n Includes or excludes the name part in the file name pattern for automatic file name generation. This name is used as the default file name. The prefix indicates the type of data that is saved, for example, Histogram, RefCurve, Settings. To define a user text, use method ``RsRtx.massMemory.autoNaming.text()`` . """ response = self._core.io.query_str_with_opc('MMEMory:AUTonaming:PREFix?') return Conversions.str_to_bool(response)
[docs] def set_prefix(self, main_nme_stem_st: bool) -> None: """ ``MMEMory:AUTonaming:PREFix`` \n Snippet: ``driver.massMemory.autoNaming.set_prefix(main_nme_stem_st = False)`` \n Includes or excludes the name part in the file name pattern for automatic file name generation. This name is used as the default file name. The prefix indicates the type of data that is saved, for example, Histogram, RefCurve, Settings. To define a user text, use method ``RsRtx.massMemory.autoNaming.text()`` . :param main_nme_stem_st: OFF | ON """ param = Conversions.bool_to_str(main_nme_stem_st) self._core.io.write_with_opc(f'MMEMory:AUTonaming:PREFix {param}')
[docs] def get_text(self) -> str: """ ``MMEMory:AUTonaming:TEXT`` \n Snippet: ``value: str = driver.massMemory.autoNaming.get_text()`` \n Defines a text, that can be included in the autonaming pattern. :return: name_string: String parameter """ response = self._core.io.query_str_with_opc('MMEMory:AUTonaming:TEXT?') return trim_str_response(response)
[docs] def set_text(self, name_string: str) -> None: """ ``MMEMory:AUTonaming:TEXT`` \n Snippet: ``driver.massMemory.autoNaming.set_text(name_string = 'abc')`` \n Defines a text, that can be included in the autonaming pattern. :param name_string: String parameter """ param = Conversions.value_to_quoted_str(name_string) self._core.io.write_with_opc(f'MMEMory:AUTonaming:TEXT {param}')
[docs] def get_default_path(self) -> str: """ ``MMEMory:AUTonaming:DEFaultpath`` \n Snippet: ``value: str = driver.massMemory.autoNaming.get_default_path()`` \n Sets the path where data and settings files will be stored. The factory default path is: - 'C:/Users/Public/Documents/Rohde-Schwarz/RTx' if no USB flash drive is connected - Drive letter of the USB flash drive, for example, 'E:/' or 'F:/' if a USB flash drive is connected. :return: path: String parameter """ response = self._core.io.query_str_with_opc('MMEMory:AUTonaming:DEFaultpath?') return trim_str_response(response)
[docs] def set_default_path(self, path: str) -> None: """ ``MMEMory:AUTonaming:DEFaultpath`` \n Snippet: ``driver.massMemory.autoNaming.set_default_path(path = 'abc')`` \n Sets the path where data and settings files will be stored. The factory default path is: - 'C:/Users/Public/Documents/Rohde-Schwarz/RTx' if no USB flash drive is connected - Drive letter of the USB flash drive, for example, 'E:/' or 'F:/' if a USB flash drive is connected. :param path: String parameter """ param = Conversions.value_to_quoted_str(path) self._core.io.write_with_opc(f'MMEMory:AUTonaming:DEFaultpath {param}')
def clone(self) -> 'AutoNamingCls': """ 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 = AutoNamingCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group