Source code for RsSmbv.Implementations.Source.Correction.Fresponse.Rf.Optimization

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


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

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

	@property
	def bandwidth(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_bandwidth'):
			from .Bandwidth import BandwidthCls
			self._bandwidth = BandwidthCls(self._core, self._cmd_group)
		return self._bandwidth

	@property
	def hold(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_hold'):
			from .Hold import HoldCls
			self._hold = HoldCls(self._core, self._cmd_group)
		return self._hold

	@property
	def local(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_local'):
			from .Local import LocalCls
			self._local = LocalCls(self._core, self._cmd_group)
		return self._local

	# noinspection PyTypeChecker
[docs] def get_mode(self) -> enums.OptimizationMode: """ ``[SOURce<HW>]:CORRection:FRESponse:RF:OPTimization:MODE`` \n Snippet: ``value: enums.OptimizationMode = driver.source.correction.fresponse.rf.optimization.get_mode()`` \n Sets the optimization mode. The value selected here is used also as optimization mode in the I/Q modulator, and vice versa. See 'Optimization Mode'. :return: freq_resp_opt_mode: FAST | QHIGh FAST Optimization by compensation for I/Q skew. QHIGh Optimization by compensation for I/Q skew and frequency response correction. This mode interrupts the RF signal. Do not use it in combination with the uninterrupted level settings and strictly monotone modes RF level modes. These RF level modes can be set with the following command: [:SOURcehw]:POWer:LBEHaviour """ response = self._core.io.query_str('SOURce<HwInstance>:CORRection:FRESponse:RF:OPTimization:MODE?') return Conversions.str_to_scalar_enum(response, enums.OptimizationMode)
[docs] def set_mode(self, freq_resp_opt_mode: enums.OptimizationMode) -> None: """ ``[SOURce<HW>]:CORRection:FRESponse:RF:OPTimization:MODE`` \n Snippet: ``driver.source.correction.fresponse.rf.optimization.set_mode(freq_resp_opt_mode = enums.OptimizationMode.FAST)`` \n Sets the optimization mode. The value selected here is used also as optimization mode in the I/Q modulator, and vice versa. See 'Optimization Mode'. :param freq_resp_opt_mode: FAST | QHIGh FAST Optimization by compensation for I/Q skew. QHIGh Optimization by compensation for I/Q skew and frequency response correction. This mode interrupts the RF signal. Do not use it in combination with the uninterrupted level settings and strictly monotone modes RF level modes. These RF level modes can be set with the following command: [:SOURcehw]:POWer:LBEHaviour """ param = Conversions.enum_scalar_to_str(freq_resp_opt_mode, enums.OptimizationMode) self._core.io.write(f'SOURce<HwInstance>:CORRection:FRESponse:RF:OPTimization:MODE {param}')
def clone(self) -> 'OptimizationCls': """ 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 = OptimizationCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group