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 FlistCls:
"""Flist commands group definition. 2 total commands, 1 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("flist", 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_freq_list: List[float], channel=repcap.Channel.Default) -> None:
"""SCPI: [SOURce<HW>]:AREGenerator:FRONtend:FE<CH>:ANTenna:CUSTom:FLISt \n
Snippet: driver.source.areGenerator.frontend.fe.antenna.custom.flist.set(areg_fconf_use_cust_ant_freq_list = [1.1, 2.2, 3.3], channel = repcap.Channel.Default) \n
For TRX-type frontend: Requires [:SOURce<hw>]:AREGenerator:FRONtend:TRX<ch>:ANTenna:CUSTom[:MODE] LIST. Sets the values
for frequency in the list. Enter all values of the list separated by comma. \n
:param areg_fconf_use_cust_ant_freq_list: No help available
:param channel: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Fe')
"""
param = Conversions.list_to_csv_str(areg_fconf_use_cust_ant_freq_list)
channel_cmd_val = self._cmd_group.get_repcap_cmd_value(channel, repcap.Channel)
self._core.io.write(f'SOURce<HwInstance>:AREGenerator:FRONtend:FE{channel_cmd_val}:ANTenna:CUSTom:FLISt {param}')
[docs]
def get(self, channel=repcap.Channel.Default) -> List[float]:
"""SCPI: [SOURce<HW>]:AREGenerator:FRONtend:FE<CH>:ANTenna:CUSTom:FLISt \n
Snippet: value: List[float] = driver.source.areGenerator.frontend.fe.antenna.custom.flist.get(channel = repcap.Channel.Default) \n
For TRX-type frontend: Requires [:SOURce<hw>]:AREGenerator:FRONtend:TRX<ch>:ANTenna:CUSTom[:MODE] LIST. Sets the values
for frequency in the list. Enter all values of the list separated by comma. \n
:param channel: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Fe')
:return: areg_fconf_use_cust_ant_freq_list: No help available"""
channel_cmd_val = self._cmd_group.get_repcap_cmd_value(channel, repcap.Channel)
response = self._core.io.query_bin_or_ascii_float_list(f'SOURce<HwInstance>:AREGenerator:FRONtend:FE{channel_cmd_val}:ANTenna:CUSTom:FLISt?')
return response
def clone(self) -> 'FlistCls':
"""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 = FlistCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group