from typing import List
from ..........Internal.Core import Core
from ..........Internal.CommandsGroup import CommandsGroup
from ..........Internal import Conversions
from .......... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class GlistCls:
"""Glist commands group definition. 2 total commands, 1 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("glist", core, parent)
@property
def row(self):
"""row commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_row'):
from .Row import RowCls
self._row = RowCls(self._core, self._cmd_group)
return self._row
[docs]
def set(self, areg_fconf_use_cust_ant_gain_list: List[float], trxFrontent=repcap.TrxFrontent.Default, txIndexNull=repcap.TxIndexNull.Default) -> None:
"""SCPI: [SOURce<HW>]:AREGenerator:FRONtend:TRX<CH>:ANTenna:CUSTom:TX<ST0>:GLISt \n
Snippet: driver.source.areGenerator.frontend.trx.antenna.custom.tx.glist.set(areg_fconf_use_cust_ant_gain_list = [1.1, 2.2, 3.3], trxFrontent = repcap.TrxFrontent.Default, txIndexNull = repcap.TxIndexNull.Default) \n
For TRX-type frontend: Requires [:SOURce<hw>]:AREGenerator:FRONtend:TRX<ch>:ANTenna:CUSTom[:MODE] LIST. Sets the values
for antenna gain RX/TX in the list. Enter all values of the list separated by comma. \n
:param areg_fconf_use_cust_ant_gain_list: No help available
:param trxFrontent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Trx')
:param txIndexNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Tx')
"""
param = Conversions.list_to_csv_str(areg_fconf_use_cust_ant_gain_list)
trxFrontent_cmd_val = self._cmd_group.get_repcap_cmd_value(trxFrontent, repcap.TrxFrontent)
txIndexNull_cmd_val = self._cmd_group.get_repcap_cmd_value(txIndexNull, repcap.TxIndexNull)
self._core.io.write(f'SOURce<HwInstance>:AREGenerator:FRONtend:TRX{trxFrontent_cmd_val}:ANTenna:CUSTom:TX{txIndexNull_cmd_val}:GLISt {param}')
[docs]
def get(self, trxFrontent=repcap.TrxFrontent.Default, txIndexNull=repcap.TxIndexNull.Default) -> List[float]:
"""SCPI: [SOURce<HW>]:AREGenerator:FRONtend:TRX<CH>:ANTenna:CUSTom:TX<ST0>:GLISt \n
Snippet: value: List[float] = driver.source.areGenerator.frontend.trx.antenna.custom.tx.glist.get(trxFrontent = repcap.TrxFrontent.Default, txIndexNull = repcap.TxIndexNull.Default) \n
For TRX-type frontend: Requires [:SOURce<hw>]:AREGenerator:FRONtend:TRX<ch>:ANTenna:CUSTom[:MODE] LIST. Sets the values
for antenna gain RX/TX in the list. Enter all values of the list separated by comma. \n
:param trxFrontent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Trx')
:param txIndexNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Tx')
:return: areg_fconf_use_cust_ant_gain_list: No help available"""
trxFrontent_cmd_val = self._cmd_group.get_repcap_cmd_value(trxFrontent, repcap.TrxFrontent)
txIndexNull_cmd_val = self._cmd_group.get_repcap_cmd_value(txIndexNull, repcap.TxIndexNull)
response = self._core.io.query_bin_or_ascii_float_list(f'SOURce<HwInstance>:AREGenerator:FRONtend:TRX{trxFrontent_cmd_val}:ANTenna:CUSTom:TX{txIndexNull_cmd_val}:GLISt?')
return response
def clone(self) -> 'GlistCls':
"""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 = GlistCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group