Source code for RsFsw.Implementations.Diagnostic.Service.Sinfo

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SinfoCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def get(self) -> str: """ ``DIAGnostic:SERVice:SINFo`` \n Snippet: ``value: str = driver.diagnostic.service.sinfo.get()`` \n This command creates a *.zip file with important support information. The *.zip file contains the system configuration information ('device footprint') , the current eeprom data and a screenshot of the screen display (if available) . This data is stored to the C:/R_S/INSTR/USER directory on the instrument. As a result of this command, the created file name (including the drive and path) is returned. You can use the resulting file name information as a parameter for the method ``RsFsw.massMemory.copy()`` command to store the file on the controller PC. (See method ``RsFsw.massMemory.copy()`` ) If you contact the Rohde & Schwarz support to get help for a certain problem, send this file to the support in order to identify and solve the problem faster. :return: filename: C:/R_S/INSTR/USER/R&S Device ID_CurrentDate_CurrentTime String containing the drive, path and file name of the created support file, where the file name consists of the following elements: R&S Device ID: The unique R&S device ID indicated in the 'Versions + Options' information (See 'Licensing, versions and options') CurrentDate: The date on which the file is created (YYYYMMDD) CurrentTime: The time at which the file is created (HHMMSS) """ response = self._core.io.query_str(f'DIAGnostic:SERVice:SINFo?') return trim_str_response(response)