Source code for RsSmw.Implementations.Source.Fsimulator.Scm.Los.Random.Phase

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


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

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

[docs] def get_hh(self) -> float: """ ``[SOURce<HW>]:FSIMulator:SCM:LOS:RANDom:PHASe:HH`` \n Snippet: ``value: float = driver.source.fsimulator.scm.los.random.phase.get_hh()`` \n Sets the start phase in degree of the LOS signal / the subpath per MIMO channel. """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:SCM:LOS:RANDom:PHASe:HH?') return Conversions.str_to_float(response)
[docs] def set_hh(self, phase_hh: float) -> None: """ ``[SOURce<HW>]:FSIMulator:SCM:LOS:RANDom:PHASe:HH`` \n Snippet: ``driver.source.fsimulator.scm.los.random.phase.set_hh(phase_hh = 1.0)`` \n Sets the start phase in degree of the LOS signal / the subpath per MIMO channel. """ param = Conversions.decimal_value_to_str(phase_hh) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:LOS:RANDom:PHASe:HH {param}')
[docs] def get_hv(self) -> float: """ ``[SOURce<HW>]:FSIMulator:SCM:LOS:RANDom:PHASe:HV`` \n Snippet: ``value: float = driver.source.fsimulator.scm.los.random.phase.get_hv()`` \n Sets the start phase in degree of the LOS signal / the subpath per MIMO channel. """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:SCM:LOS:RANDom:PHASe:HV?') return Conversions.str_to_float(response)
[docs] def set_hv(self, phase_hv: float) -> None: """ ``[SOURce<HW>]:FSIMulator:SCM:LOS:RANDom:PHASe:HV`` \n Snippet: ``driver.source.fsimulator.scm.los.random.phase.set_hv(phase_hv = 1.0)`` \n Sets the start phase in degree of the LOS signal / the subpath per MIMO channel. """ param = Conversions.decimal_value_to_str(phase_hv) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:LOS:RANDom:PHASe:HV {param}')
[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:FSIMulator:SCM:LOS:RANDom:PHASe:STATe`` \n Snippet: ``value: bool = driver.source.fsimulator.scm.los.random.phase.get_state()`` \n If enabled, random subpath start phases are selected. :return: state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:SCM:LOS:RANDom:PHASe:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``[SOURce<HW>]:FSIMulator:SCM:LOS:RANDom:PHASe:STATe`` \n Snippet: ``driver.source.fsimulator.scm.los.random.phase.set_state(state = False)`` \n If enabled, random subpath start phases are selected. :param state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:LOS:RANDom:PHASe:STATe {param}')
[docs] def get_vh(self) -> float: """ ``[SOURce<HW>]:FSIMulator:SCM:LOS:RANDom:PHASe:VH`` \n Snippet: ``value: float = driver.source.fsimulator.scm.los.random.phase.get_vh()`` \n Sets the start phase in degree of the LOS signal / the subpath per MIMO channel. """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:SCM:LOS:RANDom:PHASe:VH?') return Conversions.str_to_float(response)
[docs] def set_vh(self, phase_vh: float) -> None: """ ``[SOURce<HW>]:FSIMulator:SCM:LOS:RANDom:PHASe:VH`` \n Snippet: ``driver.source.fsimulator.scm.los.random.phase.set_vh(phase_vh = 1.0)`` \n Sets the start phase in degree of the LOS signal / the subpath per MIMO channel. """ param = Conversions.decimal_value_to_str(phase_vh) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:LOS:RANDom:PHASe:VH {param}')
[docs] def get_vv(self) -> float: """ ``[SOURce<HW>]:FSIMulator:SCM:LOS:RANDom:PHASe:VV`` \n Snippet: ``value: float = driver.source.fsimulator.scm.los.random.phase.get_vv()`` \n Sets the start phase in degree of the LOS signal / the subpath per MIMO channel. :return: phase_vv: float Range: 0 to 359.999 """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:SCM:LOS:RANDom:PHASe:VV?') return Conversions.str_to_float(response)
[docs] def set_vv(self, phase_vv: float) -> None: """ ``[SOURce<HW>]:FSIMulator:SCM:LOS:RANDom:PHASe:VV`` \n Snippet: ``driver.source.fsimulator.scm.los.random.phase.set_vv(phase_vv = 1.0)`` \n Sets the start phase in degree of the LOS signal / the subpath per MIMO channel. :param phase_vv: float Range: 0 to 359.999 """ param = Conversions.decimal_value_to_str(phase_vv) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:LOS:RANDom:PHASe:VV {param}')