Source code for RsSmw.Implementations.Source.Fsimulator.Mdelay.Moving

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MovingCls:
	"""
	| Commands in total: 5
	| Subgroups: 1
	| Direct child commands: 3
	"""

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

	@property
	def delay(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_delay'):
			from .Delay import DelayCls
			self._delay = DelayCls(self._core, self._cmd_group)
		return self._delay

[docs] def get_loss(self) -> float: """ ``[SOURce<HW>]:FSIMulator:MDELay:MOVing:LOSS`` \n Snippet: ``value: float = driver.source.fsimulator.mdelay.moving.get_loss()`` \n Sets the insertion loss of the moving path for moving propagation. :return: loss: float Range: 0 to 50 """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:MDELay:MOVing:LOSS?') return Conversions.str_to_float(response)
[docs] def set_loss(self, loss: float) -> None: """ ``[SOURce<HW>]:FSIMulator:MDELay:MOVing:LOSS`` \n Snippet: ``driver.source.fsimulator.mdelay.moving.set_loss(loss = 1.0)`` \n Sets the insertion loss of the moving path for moving propagation. :param loss: float Range: 0 to 50 """ param = Conversions.decimal_value_to_str(loss) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:MDELay:MOVing:LOSS {param}')
[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:FSIMulator:MDELay:MOVing:STATe`` \n Snippet: ``value: bool = driver.source.fsimulator.mdelay.moving.get_state()`` \n Enables the fading path for moving propagation. :return: state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:MDELay:MOVing:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``[SOURce<HW>]:FSIMulator:MDELay:MOVing:STATe`` \n Snippet: ``driver.source.fsimulator.mdelay.moving.set_state(state = False)`` \n Enables the fading path for moving propagation. :param state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:MDELay:MOVing:STATe {param}')
[docs] def get_vperiod(self) -> float: """ ``[SOURce<HW>]:FSIMulator:MDELay:MOVing:VPERiod`` \n Snippet: ``value: float = driver.source.fsimulator.mdelay.moving.get_vperiod()`` \n Sets the speed of the delay variation of the moving fading path for moving propagation. A complete cycle comprises one pass through this 'Variation Period'. :return: vperiod: float Range: 10 to 500 """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:MDELay:MOVing:VPERiod?') return Conversions.str_to_float(response)
[docs] def set_vperiod(self, vperiod: float) -> None: """ ``[SOURce<HW>]:FSIMulator:MDELay:MOVing:VPERiod`` \n Snippet: ``driver.source.fsimulator.mdelay.moving.set_vperiod(vperiod = 1.0)`` \n Sets the speed of the delay variation of the moving fading path for moving propagation. A complete cycle comprises one pass through this 'Variation Period'. :param vperiod: float Range: 10 to 500 """ param = Conversions.decimal_value_to_str(vperiod) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:MDELay:MOVing:VPERiod {param}')
def clone(self) -> 'MovingCls': """ 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 = MovingCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group