Source code for rsrtx.Implementations.Tdrt.Calibration

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CalibrationCls:
	"""
	| Commands in total: 5
	| Subgroups: 2
	| Direct child commands: 1
	"""

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

	@property
	def open(self):
		"""
		| Commands in total: 2
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_open'):
			from .Open import OpenCls
			self._open = OpenCls(self._core, self._cmd_group)
		return self._open

	@property
	def save(self):
		"""
		| Commands in total: 2
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_save'):
			from .Save import SaveCls
			self._save = SaveCls(self._core, self._cmd_group)
		return self._save

[docs] def get_use_cal_data(self) -> bool: """ ``TDRT:CALibration:USECaldata`` \n Snippet: ``value: bool = driver.tdrt.calibration.get_use_cal_data()`` \n Disables or enables the frequency response calibration. Without calibration, the measured signals are only rescaled, and you can see the impact of the frequency response calibration on the time domain waveform. The command is not relevant when measuring with default values. :return: use_calibration_dat: OFF | ON """ response = self._core.io.query_str_with_opc('TDRT:CALibration:USECaldata?') return Conversions.str_to_bool(response)
[docs] def set_use_cal_data(self, use_calibration_dat: bool) -> None: """ ``TDRT:CALibration:USECaldata`` \n Snippet: ``driver.tdrt.calibration.set_use_cal_data(use_calibration_dat = False)`` \n Disables or enables the frequency response calibration. Without calibration, the measured signals are only rescaled, and you can see the impact of the frequency response calibration on the time domain waveform. The command is not relevant when measuring with default values. :param use_calibration_dat: OFF | ON """ param = Conversions.bool_to_str(use_calibration_dat) self._core.io.write_with_opc(f'TDRT:CALibration:USECaldata {param}')
def clone(self) -> 'CalibrationCls': """ 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 = CalibrationCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group