Source code for RsSmw.Implementations.Source.RfAlignment

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from ....Internal.Utilities import trim_str_response


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RfAlignmentCls:
	"""
	| Commands in total: 15
	| Subgroups: 5
	| Direct child commands: 4
	"""

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

	@property
	def calibrated(self):
		"""
		| Commands in total: 2
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_calibrated'):
			from .Calibrated import CalibratedCls
			self._calibrated = CalibratedCls(self._core, self._cmd_group)
		return self._calibrated

	@property
	def correction(self):
		"""
		| Commands in total: 4
		| Subgroups: 0
		| Direct child commands: 4
		"""
		if not hasattr(self, '_correction'):
			from .Correction import CorrectionCls
			self._correction = CorrectionCls(self._core, self._cmd_group)
		return self._correction

	@property
	def fresponse(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_fresponse'):
			from .Fresponse import FresponseCls
			self._fresponse = FresponseCls(self._core, self._cmd_group)
		return self._fresponse

	@property
	def rfInfo(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_rfInfo'):
			from .RfInfo import RfInfoCls
			self._rfInfo = RfInfoCls(self._core, self._cmd_group)
		return self._rfInfo

	@property
	def sparameter(self):
		"""
		| Commands in total: 3
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_sparameter'):
			from .Sparameter import SparameterCls
			self._sparameter = SparameterCls(self._core, self._cmd_group)
		return self._sparameter

[docs] def get_dattenuation(self) -> float: """ ``SOURce<HW>:RFALignment:DATTenuation`` \n Snippet: ``value: float = driver.source.rfAlignment.get_dattenuation()`` \n Queries the applied digital attenuation. :return: attenuation: float """ response = self._core.io.query_str('SOURce<HwInstance>:RFALignment:DATTenuation?') return Conversions.str_to_float(response)
[docs] def get_directory(self) -> str: """ ``SOURce<HW>:RFALignment:DIRectory`` \n Snippet: ``value: str = driver.source.rfAlignment.get_directory()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:RFALignment:DIRectory?') return trim_str_response(response)
[docs] def get_foffset(self) -> float: """ ``SOURce<HW>:RFALignment:FOFFset`` \n Snippet: ``value: float = driver.source.rfAlignment.get_foffset()`` \n Queries the applied baseband frequency offset. :return: bb_freq_offset: float """ response = self._core.io.query_str('SOURce<HwInstance>:RFALignment:FOFFset?') return Conversions.str_to_float(response)
[docs] def get_state(self) -> bool: """ ``SOURce<HW>:RFALignment:STATe`` \n Snippet: ``value: bool = driver.source.rfAlignment.get_state()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:RFALignment:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``SOURce<HW>:RFALignment:STATe`` \n Snippet: ``driver.source.rfAlignment.set_state(state = False)`` \n No help available """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:RFALignment:STATe {param}')
def clone(self) -> 'RfAlignmentCls': """ 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 = RfAlignmentCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group