Source code for RsSmw.Implementations.Source.Frequency.Converter.External.Overrange

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class OverrangeCls:
	"""
	| Commands in total: 4
	| Subgroups: 2
	| Direct child commands: 1
	"""

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

	@property
	def allowed(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_allowed'):
			from .Allowed import AllowedCls
			self._allowed = AllowedCls(self._core, self._cmd_group)
		return self._allowed

	@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

[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:FREQuency:CONVerter:EXTernal:OVERrange:[STATe]`` \n Snippet: ``value: bool = driver.source.frequency.converter.external.overrange.get_state()`` \n Enables the extended frequency range of a connected external instrument. :return: overrang_state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:FREQuency:CONVerter:EXTernal:OVERrange:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, overrang_state: bool) -> None: """ ``[SOURce<HW>]:FREQuency:CONVerter:EXTernal:OVERrange:[STATe]`` \n Snippet: ``driver.source.frequency.converter.external.overrange.set_state(overrang_state = False)`` \n Enables the extended frequency range of a connected external instrument. :param overrang_state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(overrang_state) self._core.io.write(f'SOURce<HwInstance>:FREQuency:CONVerter:EXTernal:OVERrange:STATe {param}')
def clone(self) -> 'OverrangeCls': """ 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 = OverrangeCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group