Source code for RsSmw.Implementations.Source.Correction.Fresponse.Iq.User

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

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

	@property
	def alevel(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_alevel'):
			from .Alevel import AlevelCls
			self._alevel = AlevelCls(self._core, self._cmd_group)
		return self._alevel

	@property
	def apply(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_apply'):
			from .Apply import ApplyCls
			self._apply = ApplyCls(self._core, self._cmd_group)
		return self._apply

	@property
	def flist(self):
		"""
		| Commands in total: 7
		| Subgroups: 3
		| Direct child commands: 4
		"""
		if not hasattr(self, '_flist'):
			from .Flist import FlistCls
			self._flist = FlistCls(self._core, self._cmd_group)
		return self._flist

	@property
	def slist(self):
		"""
		| Commands in total: 7
		| Subgroups: 3
		| Direct child commands: 3
		"""
		if not hasattr(self, '_slist'):
			from .Slist import SlistCls
			self._slist = SlistCls(self._core, self._cmd_group)
		return self._slist

[docs] def get_load(self) -> str: """ ``[SOURce<HW>]:CORRection:FRESponse:IQ:USER:LOAD`` \n Snippet: ``value: str = driver.source.correction.fresponse.iq.user.get_load()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CORRection:FRESponse:IQ:USER:LOAD?') return trim_str_response(response)
[docs] def set_load(self, freq_resp_iq_rcl: str) -> None: """ ``[SOURce<HW>]:CORRection:FRESponse:IQ:USER:LOAD`` \n Snippet: ``driver.source.correction.fresponse.iq.user.set_load(freq_resp_iq_rcl = 'abc')`` \n No help available """ param = Conversions.value_to_quoted_str(freq_resp_iq_rcl) self._core.io.write(f'SOURce<HwInstance>:CORRection:FRESponse:IQ:USER:LOAD {param}')
[docs] def preset(self) -> None: """ ``[SOURce<HW>]:CORRection:FRESponse:IQ:USER:PRESet`` \n Snippet: ``driver.source.correction.fresponse.iq.user.preset()`` \n No help available """ self._core.io.write(f'SOURce<HwInstance>:CORRection:FRESponse:IQ:USER:PRESet')
[docs] def preset_with_opc(self, opc_timeout_ms: int = -1) -> None: """ ``[SOURce<HW>]:CORRection:FRESponse:IQ:USER:PRESet`` \n Snippet: ``driver.source.correction.fresponse.iq.user.preset_with_opc()`` \n No help available Same as preset, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value. :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call. """ self._core.io.write_with_opc(f'SOURce<HwInstance>:CORRection:FRESponse:IQ:USER:PRESet', opc_timeout_ms)
[docs] def get_store(self) -> str: """ ``[SOURce<HW>]:CORRection:FRESponse:IQ:USER:STORe`` \n Snippet: ``value: str = driver.source.correction.fresponse.iq.user.get_store()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CORRection:FRESponse:IQ:USER:STORe?') return trim_str_response(response)
[docs] def set_store(self, freq_resp_iq_save: str) -> None: """ ``[SOURce<HW>]:CORRection:FRESponse:IQ:USER:STORe`` \n Snippet: ``driver.source.correction.fresponse.iq.user.set_store(freq_resp_iq_save = 'abc')`` \n No help available """ param = Conversions.value_to_quoted_str(freq_resp_iq_save) self._core.io.write(f'SOURce<HwInstance>:CORRection:FRESponse:IQ:USER:STORe {param}')
[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:CORRection:FRESponse:IQ:USER:[STATe]`` \n Snippet: ``value: bool = driver.source.correction.fresponse.iq.user.get_state()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CORRection:FRESponse:IQ:USER:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, freq_corr_iq_stat: bool) -> None: """ ``[SOURce<HW>]:CORRection:FRESponse:IQ:USER:[STATe]`` \n Snippet: ``driver.source.correction.fresponse.iq.user.set_state(freq_corr_iq_stat = False)`` \n No help available """ param = Conversions.bool_to_str(freq_corr_iq_stat) self._core.io.write(f'SOURce<HwInstance>:CORRection:FRESponse:IQ:USER:STATe {param}')
def clone(self) -> 'UserCls': """ 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 = UserCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group