Source code for RsSmw.Implementations.Source.Fsimulator.Scm.Tap.SubPath.Phase.Hv

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class HvCls: """Hv commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("hv", core, parent)
[docs] def set(self, phase_hv: float, mimoTap=repcap.MimoTap.Default, subPath=repcap.SubPath.Default) -> None: """SCPI: [SOURce<HW>]:FSIMulator:SCM:TAP<ST>:SUBPath<DI>:PHASe:HV \n Snippet: driver.source.fsimulator.scm.tap.subPath.phase.hv.set(phase_hv = 1.0, mimoTap = repcap.MimoTap.Default, subPath = repcap.SubPath.Default) \n Sets the start phase in degree of the LOS signal / the subpath per MIMO channel. \n :param phase_hv: No help available :param mimoTap: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Tap') :param subPath: optional repeated capability selector. Default value: Nr1 (settable in the interface 'SubPath') """ param = Conversions.decimal_value_to_str(phase_hv) mimoTap_cmd_val = self._cmd_group.get_repcap_cmd_value(mimoTap, repcap.MimoTap) subPath_cmd_val = self._cmd_group.get_repcap_cmd_value(subPath, repcap.SubPath) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:TAP{mimoTap_cmd_val}:SUBPath{subPath_cmd_val}:PHASe:HV {param}')
[docs] def get(self, mimoTap=repcap.MimoTap.Default, subPath=repcap.SubPath.Default) -> float: """SCPI: [SOURce<HW>]:FSIMulator:SCM:TAP<ST>:SUBPath<DI>:PHASe:HV \n Snippet: value: float = driver.source.fsimulator.scm.tap.subPath.phase.hv.get(mimoTap = repcap.MimoTap.Default, subPath = repcap.SubPath.Default) \n Sets the start phase in degree of the LOS signal / the subpath per MIMO channel. \n :param mimoTap: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Tap') :param subPath: optional repeated capability selector. Default value: Nr1 (settable in the interface 'SubPath') :return: phase_hv: No help available""" mimoTap_cmd_val = self._cmd_group.get_repcap_cmd_value(mimoTap, repcap.MimoTap) subPath_cmd_val = self._cmd_group.get_repcap_cmd_value(subPath, repcap.SubPath) response = self._core.io.query_str(f'SOURce<HwInstance>:FSIMulator:SCM:TAP{mimoTap_cmd_val}:SUBPath{subPath_cmd_val}:PHASe:HV?') return Conversions.str_to_float(response)