Source code for RsSmw.Implementations.Source.RfAlignment.Correction

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 CorrectionCls:
	"""
	| Commands in total: 4
	| Subgroups: 0
	| Direct child commands: 4
	"""

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

[docs] def get_file(self) -> str: """ ``SOURce<HW>:RFALignment:CORRection:FILE`` \n Snippet: ``value: str = driver.source.rfAlignment.correction.get_file()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:RFALignment:CORRection:FILE?') return trim_str_response(response)
[docs] def set_file(self, correction_file: str) -> None: """ ``SOURce<HW>:RFALignment:CORRection:FILE`` \n Snippet: ``driver.source.rfAlignment.correction.set_file(correction_file = 'abc')`` \n No help available """ param = Conversions.value_to_quoted_str(correction_file) self._core.io.write(f'SOURce<HwInstance>:RFALignment:CORRection:FILE {param}')
[docs] def get_iq_delay(self) -> float: """ ``SOURce<HW>:RFALignment:CORRection:IQDelay`` \n Snippet: ``value: float = driver.source.rfAlignment.correction.get_iq_delay()`` \n Queries the I/Q delay applied for compensation of the frequency response of the signal. :return: ipart_qdelay: float """ response = self._core.io.query_str('SOURce<HwInstance>:RFALignment:CORRection:IQDelay?') return Conversions.str_to_float(response)
[docs] def get_level(self) -> float: """ ``SOURce<HW>:RFALignment:CORRection:LEVel`` \n Snippet: ``value: float = driver.source.rfAlignment.correction.get_level()`` \n Queries the level correction applied to the signal of the selected path. :return: level: float """ response = self._core.io.query_str('SOURce<HwInstance>:RFALignment:CORRection:LEVel?') return Conversions.str_to_float(response)
[docs] def get_phase(self) -> float: """ ``SOURce<HW>:RFALignment:CORRection:PHASe`` \n Snippet: ``value: float = driver.source.rfAlignment.correction.get_phase()`` \n queries the delta phase applied for compensation of the frequency response of the signal. :return: phase: float """ response = self._core.io.query_str('SOURce<HwInstance>:RFALignment:CORRection:PHASe?') return Conversions.str_to_float(response)