Source code for RsSmw.Implementations.Source.Regenerator.Simulation

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SimulationCls:
	"""
	| Commands in total: 19
	| Subgroups: 5
	| Direct child commands: 6
	"""

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

	@property
	def analyzer(self):
		"""
		| Commands in total: 2
		| 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 calibration(self):
		"""
		| Commands in total: 5
		| Subgroups: 1
		| Direct child commands: 4
		"""
		if not hasattr(self, '_calibration'):
			from .Calibration import CalibrationCls
			self._calibration = CalibrationCls(self._core, self._cmd_group)
		return self._calibration

	@property
	def latency(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_latency'):
			from .Latency import LatencyCls
			self._latency = LatencyCls(self._core, self._cmd_group)
		return self._latency

	@property
	def level(self):
		"""
		| Commands in total: 4
		| Subgroups: 3
		| Direct child commands: 1
		"""
		if not hasattr(self, '_level'):
			from .Level import LevelCls
			self._level = LevelCls(self._core, self._cmd_group)
		return self._level

	@property
	def minRange(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_minRange'):
			from .MinRange import MinRangeCls
			self._minRange = MinRangeCls(self._core, self._cmd_group)
		return self._minRange

	# noinspection PyTypeChecker
[docs] def get_connector(self) -> enums.TmastConn: """ ``[SOURce<HW>]:REGenerator:SIMulation:CONNector`` \n Snippet: ``value: enums.TmastConn = driver.source.regenerator.simulation.get_connector()`` \n Queries the instrument connector used to set the frequency method ``RsSmw.source.regenerator.simulation.frequency()`` . :return: connector: RFA | RFB | BBMM1 | BBMM2 | IQOUT1 | IQOUT2 | FAD1 | FAD2 | FAD3 | FAD4 | DEF """ response = self._core.io.query_str('SOURce<HwInstance>:REGenerator:SIMulation:CONNector?') return Conversions.str_to_scalar_enum(response, enums.TmastConn)
[docs] def get_frequency(self) -> float: """ ``[SOURce<HW>]:REGenerator:SIMulation:FREQuency`` \n Snippet: ``value: float = driver.source.regenerator.simulation.get_frequency()`` \n Queries the RF frequency that is used for the calculation of the Doppler shift and the PRx. :return: frequency: float Range: 100E3 to 100E9 """ response = self._core.io.query_str('SOURce<HwInstance>:REGenerator:SIMulation:FREQuency?') return Conversions.str_to_float(response)
[docs] def set_frequency(self, frequency: float) -> None: """ ``[SOURce<HW>]:REGenerator:SIMulation:FREQuency`` \n Snippet: ``driver.source.regenerator.simulation.set_frequency(frequency = 1.0)`` \n Queries the RF frequency that is used for the calculation of the Doppler shift and the PRx. :param frequency: float Range: 100E3 to 100E9 """ param = Conversions.decimal_value_to_str(frequency) self._core.io.write(f'SOURce<HwInstance>:REGenerator:SIMulation:FREQuency {param}')
[docs] def get_prf(self) -> int: """ ``[SOURce<HW>]:REGenerator:SIMulation:PRF`` \n Snippet: ``value: int = driver.source.regenerator.simulation.get_prf()`` \n Sets the pulse repetition frequency (PRF) . :return: prf: integer Range: 1 to 1E6 """ response = self._core.io.query_str('SOURce<HwInstance>:REGenerator:SIMulation:PRF?') return Conversions.str_to_int(response)
[docs] def set_prf(self, prf: int) -> None: """ ``[SOURce<HW>]:REGenerator:SIMulation:PRF`` \n Snippet: ``driver.source.regenerator.simulation.set_prf(prf = 1)`` \n Sets the pulse repetition frequency (PRF) . :param prf: integer Range: 1 to 1E6 """ param = Conversions.decimal_value_to_str(prf) self._core.io.write(f'SOURce<HwInstance>:REGenerator:SIMulation:PRF {param}')
[docs] def get_pri(self) -> float: """ ``[SOURce<HW>]:REGenerator:SIMulation:PRI`` \n Snippet: ``value: float = driver.source.regenerator.simulation.get_pri()`` \n Sets the pulse repetition frequency (PRI) . :return: sim_pri: float Range: 3.74742e-5 to 1 """ response = self._core.io.query_str('SOURce<HwInstance>:REGenerator:SIMulation:PRI?') return Conversions.str_to_float(response)
[docs] def set_pri(self, sim_pri: float) -> None: """ ``[SOURce<HW>]:REGenerator:SIMulation:PRI`` \n Snippet: ``driver.source.regenerator.simulation.set_pri(sim_pri = 1.0)`` \n Sets the pulse repetition frequency (PRI) . :param sim_pri: float Range: 3.74742e-5 to 1 """ param = Conversions.decimal_value_to_str(sim_pri) self._core.io.write(f'SOURce<HwInstance>:REGenerator:SIMulation:PRI {param}')
# noinspection PyTypeChecker
[docs] def get_range(self) -> enums.RegSimRange: """ ``[SOURce<HW>]:REGenerator:SIMulation:RANGe`` \n Snippet: ``value: enums.RegSimRange = driver.source.regenerator.simulation.get_range()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:REGenerator:SIMulation:RANGe?') return Conversions.str_to_scalar_enum(response, enums.RegSimRange)
[docs] def set_range(self, range_py: enums.RegSimRange) -> None: """ ``[SOURce<HW>]:REGenerator:SIMulation:RANGe`` \n Snippet: ``driver.source.regenerator.simulation.set_range(range_py = enums.RegSimRange.L74K)`` \n No help available """ param = Conversions.enum_scalar_to_str(range_py, enums.RegSimRange) self._core.io.write(f'SOURce<HwInstance>:REGenerator:SIMulation:RANGe {param}')
[docs] def get_speriod(self) -> float: """ ``[SOURce<HW>]:REGenerator:SIMulation:SPERiod`` \n Snippet: ``value: float = driver.source.regenerator.simulation.get_speriod()`` \n Set the time which the radar needs for one scan. :return: sim_scan_period: float Range: 3.74742e-5 to 10 """ response = self._core.io.query_str('SOURce<HwInstance>:REGenerator:SIMulation:SPERiod?') return Conversions.str_to_float(response)
[docs] def set_speriod(self, sim_scan_period: float) -> None: """ ``[SOURce<HW>]:REGenerator:SIMulation:SPERiod`` \n Snippet: ``driver.source.regenerator.simulation.set_speriod(sim_scan_period = 1.0)`` \n Set the time which the radar needs for one scan. :param sim_scan_period: float Range: 3.74742e-5 to 10 """ param = Conversions.decimal_value_to_str(sim_scan_period) self._core.io.write(f'SOURce<HwInstance>:REGenerator:SIMulation:SPERiod {param}')
def clone(self) -> 'SimulationCls': """ 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 = SimulationCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group