Source code for RsSmw.Implementations.Source.Bb.Wlnn.Antenna

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class AntennaCls: """Antenna commands group definition. 10 total commands, 1 Subgroups, 4 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("antenna", core, parent) @property def tchain(self): """tchain commands group. 2 Sub-classes, 0 commands.""" if not hasattr(self, '_tchain'): from .Tchain import TchainCls self._tchain = TchainCls(self._core, self._cmd_group) return self._tchain
[docs] def get_cmode(self) -> bool: """SCPI: [SOURce<HW>]:BB:WLNN:ANTenna:CMODe \n Snippet: value: bool = driver.source.bb.wlnn.antenna.get_cmode() \n Queries the coupling state of transmit antennas. If enabled, the transmit antennas are coupled, i.e. they transmit the same frame blocks data. \n :return: cmode: 1| ON| 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLNN:ANTenna:CMODe?') return Conversions.str_to_bool(response)
# noinspection PyTypeChecker
[docs] def get_mode(self) -> enums.WlannTxAnt: """SCPI: [SOURce<HW>]:BB:WLNN:ANTenna:MODE \n Snippet: value: enums.WlannTxAnt = driver.source.bb.wlnn.antenna.get_mode() \n The command selects the number of transmit antennas to be used. \n :return: mode: A1| A2| A3| A4| A5| A6| A7| A8 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLNN:ANTenna:MODE?') return Conversions.str_to_scalar_enum(response, enums.WlannTxAnt)
[docs] def set_mode(self, mode: enums.WlannTxAnt) -> None: """SCPI: [SOURce<HW>]:BB:WLNN:ANTenna:MODE \n Snippet: driver.source.bb.wlnn.antenna.set_mode(mode = enums.WlannTxAnt.A1) \n The command selects the number of transmit antennas to be used. \n :param mode: A1| A2| A3| A4| A5| A6| A7| A8 """ param = Conversions.enum_scalar_to_str(mode, enums.WlannTxAnt) self._core.io.write(f'SOURce<HwInstance>:BB:WLNN:ANTenna:MODE {param}')
# noinspection PyTypeChecker
[docs] def get_nobb(self) -> enums.WlannTxNumBb: """SCPI: [SOURce<HW>]:BB:WLNN:ANTenna:NOBB \n Snippet: value: enums.WlannTxNumBb = driver.source.bb.wlnn.antenna.get_nobb() \n Queries the number of basebands required for the transmit antenna setup. \n :return: nobb: NBB1| NBB2| NBB4| NBB3| NBB8 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLNN:ANTenna:NOBB?') return Conversions.str_to_scalar_enum(response, enums.WlannTxNumBb)
# noinspection PyTypeChecker
[docs] def get_system(self) -> enums.CoordMapMode: """SCPI: [SOURce<HW>]:BB:WLNN:ANTenna:SYSTem \n Snippet: value: enums.CoordMapMode = driver.source.bb.wlnn.antenna.get_system() \n Selects the coordinate system of the transmission chain matrix. \n :return: system: CARTesian| CYLindrical """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLNN:ANTenna:SYSTem?') return Conversions.str_to_scalar_enum(response, enums.CoordMapMode)
[docs] def set_system(self, system: enums.CoordMapMode) -> None: """SCPI: [SOURce<HW>]:BB:WLNN:ANTenna:SYSTem \n Snippet: driver.source.bb.wlnn.antenna.set_system(system = enums.CoordMapMode.CARTesian) \n Selects the coordinate system of the transmission chain matrix. \n :param system: CARTesian| CYLindrical """ param = Conversions.enum_scalar_to_str(system, enums.CoordMapMode) self._core.io.write(f'SOURce<HwInstance>:BB:WLNN:ANTenna:SYSTem {param}')
def clone(self) -> 'AntennaCls': """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 = AntennaCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group