Source code for RsSmw.Implementations.System.SrData

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


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

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

[docs] def delete(self) -> None: """ ``SYSTem:SRData:DELete`` \n Snippet: ``driver.system.srData.delete()`` \n No help available """ self._core.io.write(f'SYSTem:SRData:DELete')
[docs] def delete_with_opc(self, opc_timeout_ms: int = -1) -> None: """ ``SYSTem:SRData:DELete`` \n Snippet: ``driver.system.srData.delete_with_opc()`` \n No help available Same as delete, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value. :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call. """ self._core.io.write_with_opc(f'SYSTem:SRData:DELete', opc_timeout_ms)
[docs] def get_value(self) -> bytes: """ ``SYSTem:SRData`` \n Snippet: ``value: bytes = driver.system.srData.get_value()`` \n Queris the SCPI recording data from the internal file. This feature enables you to transfer an instrument configuration to other test environments, as e.g. laboratory virtual instruments. :return: file_data: block data """ response = self._core.io.query_bin_block('SYSTem:SRData?') return response