Source code for RsSmbv.Implementations.Calibration

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


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

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

	@property
	def all(self):
		"""
		| Commands in total: 5
		| Subgroups: 1
		| Direct child commands: 4
		"""
		if not hasattr(self, '_all'):
			from .All import AllCls
			self._all = AllCls(self._core, self._cmd_group)
		return self._all

	@property
	def bbin(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_bbin'):
			from .Bbin import BbinCls
			self._bbin = BbinCls(self._core, self._cmd_group)
		return self._bbin

	@property
	def data(self):
		"""
		| Commands in total: 4
		| Subgroups: 2
		| Direct child commands: 1
		"""
		if not hasattr(self, '_data'):
			from .Data import DataCls
			self._data = DataCls(self._core, self._cmd_group)
		return self._data

	@property
	def delay(self):
		"""
		| Commands in total: 3
		| Subgroups: 1
		| Direct child commands: 2
		"""
		if not hasattr(self, '_delay'):
			from .Delay import DelayCls
			self._delay = DelayCls(self._core, self._cmd_group)
		return self._delay

	@property
	def fmOffset(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_fmOffset'):
			from .FmOffset import FmOffsetCls
			self._fmOffset = FmOffsetCls(self._core, self._cmd_group)
		return self._fmOffset

	@property
	def frequency(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_frequency'):
			from .Frequency import FrequencyCls
			self._frequency = FrequencyCls(self._core, self._cmd_group)
		return self._frequency

	@property
	def iqModulator(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_iqModulator'):
			from .IqModulator import IqModulatorCls
			self._iqModulator = IqModulatorCls(self._core, self._cmd_group)
		return self._iqModulator

	@property
	def level(self):
		"""
		| Commands in total: 10
		| Subgroups: 4
		| Direct child commands: 2
		"""
		if not hasattr(self, '_level'):
			from .Level import LevelCls
			self._level = LevelCls(self._core, self._cmd_group)
		return self._level

	@property
	def lfOutput(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_lfOutput'):
			from .LfOutput import LfOutputCls
			self._lfOutput = LfOutputCls(self._core, self._cmd_group)
		return self._lfOutput

	@property
	def roscillator(self):
		"""
		| Commands in total: 3
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_roscillator'):
			from .Roscillator import RoscillatorCls
			self._roscillator = RoscillatorCls(self._core, self._cmd_group)
		return self._roscillator

	@property
	def tselected(self):
		"""
		| Commands in total: 3
		| Subgroups: 0
		| Direct child commands: 3
		"""
		if not hasattr(self, '_tselected'):
			from .Tselected import TselectedCls
			self._tselected = TselectedCls(self._core, self._cmd_group)
		return self._tselected

	@property
	def vco(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_vco'):
			from .Vco import VcoCls
			self._vco = VcoCls(self._core, self._cmd_group)
		return self._vco

[docs] def get_continue_on_error(self) -> bool: """ ``CALibration<HW>:CONTinueonerror`` \n Snippet: ``value: bool = driver.calibration.get_continue_on_error()`` \n Continues the calibration even though an error was detected. By default adjustments are aborted on error. :return: state: 1 | ON | 0| OFF """ response = self._core.io.query_str('CALibration<HwInstance>:CONTinueonerror?') return Conversions.str_to_bool(response)
[docs] def set_continue_on_error(self, state: bool) -> None: """ ``CALibration<HW>:CONTinueonerror`` \n Snippet: ``driver.calibration.set_continue_on_error(state = False)`` \n Continues the calibration even though an error was detected. By default adjustments are aborted on error. :param state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(state) self._core.io.write(f'CALibration<HwInstance>:CONTinueonerror {param}')
[docs] def set_debug(self, state: bool) -> None: """ ``CALibration<HW>:DEBug`` \n Snippet: ``driver.calibration.set_debug(state = False)`` \n No help available """ param = Conversions.bool_to_str(state) self._core.io.write(f'CALibration<HwInstance>:DEBug {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