Source code for RsSmbv.Implementations.System.DeviceFootprint

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 DeviceFootprintCls:
	"""
	| Commands in total: 3
	| Subgroups: 1
	| Direct child commands: 1
	"""

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

	@property
	def history(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_history'):
			from .History import HistoryCls
			self._history = HistoryCls(self._core, self._cmd_group)
		return self._history

[docs] def set(self, directory: str) -> None: """ ``SYSTem:DFPRint`` \n Snippet: ``driver.system.deviceFootprint.set(directory = 'abc')`` \n Queries the device footprint of the instrument. The retrieved information is in machine-readable form suitable for automatic further processing. """ param = Conversions.value_to_quoted_str(directory) self._core.io.write(f'SYSTem:DFPRint {param}')
[docs] def get(self) -> str: """ ``SYSTem:DFPRint`` \n Snippet: ``value: str = driver.system.deviceFootprint.get()`` \n Queries the device footprint of the instrument. The retrieved information is in machine-readable form suitable for automatic further processing. :return: device_footprint: string Information on the instrument type, device identification and details on the installed FW version, hardware and software options. """ response = self._core.io.query_str(f'SYSTem:DFPRint?') return trim_str_response(response)
def clone(self) -> 'DeviceFootprintCls': """ 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 = DeviceFootprintCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group