Source code for RsSmw.Implementations.Source.Fsimulator.Scm.Tap.Arrival.Zenith.Angle

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class AngleCls: """Angle commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("angle", core, parent)
[docs] def set(self, arr_zenith: float, mimoTap=repcap.MimoTap.Default) -> None: """SCPI: [SOURce<HW>]:FSIMulator:SCM:TAP<ST>:ARRival:ZENith:ANGLe \n Snippet: driver.source.fsimulator.scm.tap.arrival.zenith.angle.set(arr_zenith = 1.0, mimoTap = repcap.MimoTap.Default) \n Sets the AoA (angle of arrival) / AoD (angle of departure) of the cluster. \n :param arr_zenith: float Range: 0 to 359.999 :param mimoTap: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Tap') """ param = Conversions.decimal_value_to_str(arr_zenith) mimoTap_cmd_val = self._cmd_group.get_repcap_cmd_value(mimoTap, repcap.MimoTap) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:TAP{mimoTap_cmd_val}:ARRival:ZENith:ANGLe {param}')
[docs] def get(self, mimoTap=repcap.MimoTap.Default) -> float: """SCPI: [SOURce<HW>]:FSIMulator:SCM:TAP<ST>:ARRival:ZENith:ANGLe \n Snippet: value: float = driver.source.fsimulator.scm.tap.arrival.zenith.angle.get(mimoTap = repcap.MimoTap.Default) \n Sets the AoA (angle of arrival) / AoD (angle of departure) of the cluster. \n :param mimoTap: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Tap') :return: arr_zenith: No help available""" mimoTap_cmd_val = self._cmd_group.get_repcap_cmd_value(mimoTap, repcap.MimoTap) response = self._core.io.query_str(f'SOURce<HwInstance>:FSIMulator:SCM:TAP{mimoTap_cmd_val}:ARRival:ZENith:ANGLe?') return Conversions.str_to_float(response)