Source code for RsAreg800.Implementations.Source.AreGenerator.Frontend.Trx.Eirp

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

# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class EirpCls: """Eirp commands group definition. 3 total commands, 2 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("eirp", core, parent) @property def port(self): """port commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_port'): from .Port import PortCls self._port = PortCls(self._core, self._cmd_group) return self._port @property def sensor(self): """sensor commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_sensor'): from .Sensor import SensorCls self._sensor = SensorCls(self._core, self._cmd_group) return self._sensor
[docs] def get(self, trxFrontent=repcap.TrxFrontent.Default) -> float: """SCPI: [SOURce<HW>]:AREGenerator:FRONtend:TRX<CH>:EIRP \n Snippet: value: float = driver.source.areGenerator.frontend.trx.eirp.get(trxFrontent = repcap.TrxFrontent.Default) \n Queries the calculated Effective Isotropic Radiated Power of the power sensor connected to the TRX-type frontend. \n :param trxFrontent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Trx') :return: areg_radar_eirp: float Range: -150 to 150""" trxFrontent_cmd_val = self._cmd_group.get_repcap_cmd_value(trxFrontent, repcap.TrxFrontent) response ='SOURce<HwInstance>:AREGenerator:FRONtend:TRX{trxFrontent_cmd_val}:EIRP?') return Conversions.str_to_float(response)
def clone(self) -> 'EirpCls': """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 = EirpCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group