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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ReferenceCls:
	"""
	| Commands in total: 3
	| Subgroups: 0
	| Direct child commands: 3
	"""

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

[docs] def get_delay(self) -> float: """ ``[SOURce<HW>]:FSIMulator:MDELay:REFerence:DELay`` \n Snippet: ``value: float = driver.source.fsimulator.mdelay.reference.get_delay()`` \n Sets the delay of the reference path for moving propagation. :return: delay: float Range: 0 to 40E-6 """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:MDELay:REFerence:DELay?') return Conversions.str_to_float(response)
[docs] def set_delay(self, delay: float) -> None: """ ``[SOURce<HW>]:FSIMulator:MDELay:REFerence:DELay`` \n Snippet: ``driver.source.fsimulator.mdelay.reference.set_delay(delay = 1.0)`` \n Sets the delay of the reference path for moving propagation. :param delay: float Range: 0 to 40E-6 """ param = Conversions.decimal_value_to_str(delay) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:MDELay:REFerence:DELay {param}')
[docs] def get_loss(self) -> float: """ ``[SOURce<HW>]:FSIMulator:MDELay:REFerence:LOSS`` \n Snippet: ``value: float = driver.source.fsimulator.mdelay.reference.get_loss()`` \n Sets the loss of the reference path for moving propagation. :return: loss: float Range: 0 to 50 """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:MDELay:REFerence:LOSS?') return Conversions.str_to_float(response)
[docs] def set_loss(self, loss: float) -> None: """ ``[SOURce<HW>]:FSIMulator:MDELay:REFerence:LOSS`` \n Snippet: ``driver.source.fsimulator.mdelay.reference.set_loss(loss = 1.0)`` \n Sets the loss of the reference 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:REFerence:LOSS {param}')
[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:FSIMulator:MDELay:REFerence:STATe`` \n Snippet: ``value: bool = driver.source.fsimulator.mdelay.reference.get_state()`` \n Enables the reference path for moving propagation. :return: state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:MDELay:REFerence:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``[SOURce<HW>]:FSIMulator:MDELay:REFerence:STATe`` \n Snippet: ``driver.source.fsimulator.mdelay.reference.set_state(state = False)`` \n Enables the reference 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:REFerence:STATe {param}')