Source code for RsSmw.Implementations.Source.Regenerator.Radar

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


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

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

	@property
	def analyzer(self):
		"""
		| Commands in total: 4
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_analyzer'):
			from .Analyzer import AnalyzerCls
			self._analyzer = AnalyzerCls(self._core, self._cmd_group)
		return self._analyzer

	@property
	def antenna(self):
		"""
		| Commands in total: 4
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_antenna'):
			from .Antenna import AntennaCls
			self._antenna = AntennaCls(self._core, self._cmd_group)
		return self._antenna

	@property
	def ota(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_ota'):
			from .Ota import OtaCls
			self._ota = OtaCls(self._core, self._cmd_group)
		return self._ota

	@property
	def power(self):
		"""
		| Commands in total: 3
		| Subgroups: 0
		| Direct child commands: 3
		"""
		if not hasattr(self, '_power'):
			from .Power import PowerCls
			self._power = PowerCls(self._core, self._cmd_group)
		return self._power

	# noinspection PyTypeChecker
[docs] def get_tsetup(self) -> enums.RegRadarTestSetup: """ ``[SOURce<HW>]:REGenerator:RADar:TSETup`` \n Snippet: ``value: enums.RegRadarTestSetup = driver.source.regenerator.radar.get_tsetup()`` \n Sets the test setup type. :return: test_setup: CONDucted | OTA """ response = self._core.io.query_str('SOURce<HwInstance>:REGenerator:RADar:TSETup?') return Conversions.str_to_scalar_enum(response, enums.RegRadarTestSetup)
[docs] def set_tsetup(self, test_setup: enums.RegRadarTestSetup) -> None: """ ``[SOURce<HW>]:REGenerator:RADar:TSETup`` \n Snippet: ``driver.source.regenerator.radar.set_tsetup(test_setup = enums.RegRadarTestSetup.CONDucted)`` \n Sets the test setup type. :param test_setup: CONDucted | OTA """ param = Conversions.enum_scalar_to_str(test_setup, enums.RegRadarTestSetup) self._core.io.write(f'SOURce<HwInstance>:REGenerator:RADar:TSETup {param}')
def clone(self) -> 'RadarCls': """ 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 = RadarCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group