Source code for RsFsw.Implementations.HardCopy.Treport.New

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


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

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

[docs] def set(self) -> None: """ ``HCOPy:TREPort:NEW`` \n Snippet: ``driver.hardCopy.treport.new.set()`` \n This command creates a new dataset for a new test report. Creating a new test report deletes all previously saved datasets. The current measurement results are added as the first dataset to the new report. The FSW saves the data selected with method ``RsFsw.hardCopy.treport.item.select.set()`` . To save the report, use method ``RsFsw.hardCopy.immediate.perform()`` . """ self._core.io.write(f'HCOPy:TREPort:NEW')
[docs] def set_with_opc(self, opc_timeout_ms: int = -1) -> None: """ ``HCOPy:TREPort:NEW`` \n Snippet: ``driver.hardCopy.treport.new.set_with_opc()`` \n This command creates a new dataset for a new test report. Creating a new test report deletes all previously saved datasets. The current measurement results are added as the first dataset to the new report. The FSW saves the data selected with method ``RsFsw.hardCopy.treport.item.select.set()`` . To save the report, use method ``RsFsw.hardCopy.immediate.perform()`` . Same as set, but waits for the operation to complete before continuing further. Use the RsFsw.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'HCOPy:TREPort:NEW', opc_timeout_ms)