from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DownlinkCls:
"""
| Commands in total: 154
| Subgroups: 13
| Direct child commands: 12
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("downlink", core, parent)
@property
def conf(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_conf'):
from .Conf import ConfCls
self._conf = ConfCls(self._core, self._cmd_group)
return self._conf
@property
def csettings(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_csettings'):
from .Csettings import CsettingsCls
self._csettings = CsettingsCls(self._core, self._cmd_group)
return self._csettings
@property
def dumd(self):
"""
| Commands in total: 5
| Subgroups: 1
| Direct child commands: 4
"""
if not hasattr(self, '_dumd'):
from .Dumd import DumdCls
self._dumd = DumdCls(self._core, self._cmd_group)
return self._dumd
@property
def mimo(self):
"""
| Commands in total: 6
| Subgroups: 1
| Direct child commands: 2
"""
if not hasattr(self, '_mimo'):
from .Mimo import MimoCls
self._mimo = MimoCls(self._core, self._cmd_group)
return self._mimo
@property
def pbch(self):
"""
| Commands in total: 5
| Subgroups: 0
| Direct child commands: 5
"""
if not hasattr(self, '_pbch'):
from .Pbch import PbchCls
self._pbch = PbchCls(self._core, self._cmd_group)
return self._pbch
@property
def pdcch(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_pdcch'):
from .Pdcch import PdcchCls
self._pdcch = PdcchCls(self._core, self._cmd_group)
return self._pdcch
@property
def pdsch(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_pdsch'):
from .Pdsch import PdschCls
self._pdsch = PdschCls(self._core, self._cmd_group)
return self._pdsch
@property
def refsig(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_refsig'):
from .Refsig import RefsigCls
self._refsig = RefsigCls(self._core, self._cmd_group)
return self._refsig
@property
def rstFrame(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_rstFrame'):
from .RstFrame import RstFrameCls
self._rstFrame = RstFrameCls(self._core, self._cmd_group)
return self._rstFrame
@property
def sync(self):
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
if not hasattr(self, '_sync'):
from .Sync import SyncCls
self._sync = SyncCls(self._core, self._cmd_group)
return self._sync
@property
def user(self):
"""
| Commands in total: 21
| Subgroups: 16
| Direct child commands: 0
"""
if not hasattr(self, '_user'):
from .User import UserCls
self._user = UserCls(self._core, self._cmd_group)
return self._user
@property
def plci(self):
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
if not hasattr(self, '_plci'):
from .Plci import PlciCls
self._plci = PlciCls(self._core, self._cmd_group)
return self._plci
@property
def subf(self):
"""
| Commands in total: 91
| Subgroups: 4
| Direct child commands: 0
"""
if not hasattr(self, '_subf'):
from .Subf import SubfCls
self._subf = SubfCls(self._core, self._cmd_group)
return self._subf
# noinspection PyTypeChecker
[docs]
def get_bur(self) -> enums.BehUnsSubFrames:
"""
``[SOURce<HW>]:BB:ONEWeb:DL:BUR`` \n
Snippet: ``value: enums.BehUnsSubFrames = driver.source.bb.oneweb.downlink.get_bur()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:DL:BUR?')
return Conversions.str_to_scalar_enum(response, enums.BehUnsSubFrames)
[docs]
def set_bur(self, bur: enums.BehUnsSubFrames) -> None:
"""
``[SOURce<HW>]:BB:ONEWeb:DL:BUR`` \n
Snippet: ``driver.source.bb.oneweb.downlink.set_bur(bur = enums.BehUnsSubFrames.DTX)`` \n
No help available
"""
param = Conversions.enum_scalar_to_str(bur, enums.BehUnsSubFrames)
self._core.io.write(f'SOURce<HwInstance>:BB:ONEWeb:DL:BUR {param}')
# noinspection PyTypeChecker
[docs]
def get_bw(self) -> enums.OneWebDlChannelBandwidth:
"""
``[SOURce<HW>]:BB:ONEWeb:DL:BW`` \n
Snippet: ``value: enums.OneWebDlChannelBandwidth = driver.source.bb.oneweb.downlink.get_bw()`` \n
Queries the DL channel bandwidth.
:return: bw: BW250_00
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:DL:BW?')
return Conversions.str_to_scalar_enum(response, enums.OneWebDlChannelBandwidth)
[docs]
def get_con_sub_frames(self) -> int:
"""
``[SOURce<HW>]:BB:ONEWeb:DL:CONSubframes`` \n
Snippet: ``value: int = driver.source.bb.oneweb.downlink.get_con_sub_frames()`` \n
Sets the number of configurable subframes.
:return: con_sub_frames: integer Range: 1 to 40
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:DL:CONSubframes?')
return Conversions.str_to_int(response)
[docs]
def set_con_sub_frames(self, con_sub_frames: int) -> None:
"""
``[SOURce<HW>]:BB:ONEWeb:DL:CONSubframes`` \n
Snippet: ``driver.source.bb.oneweb.downlink.set_con_sub_frames(con_sub_frames = 1)`` \n
Sets the number of configurable subframes.
:param con_sub_frames: integer Range: 1 to 40
"""
param = Conversions.decimal_value_to_str(con_sub_frames)
self._core.io.write(f'SOURce<HwInstance>:BB:ONEWeb:DL:CONSubframes {param}')
# noinspection PyTypeChecker
[docs]
def get_cpc(self) -> enums.OneWebCyclicPrefixGs:
"""
``[SOURce<HW>]:BB:ONEWeb:DL:CPC`` \n
Snippet: ``value: enums.OneWebCyclicPrefixGs = driver.source.bb.oneweb.downlink.get_cpc()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:DL:CPC?')
return Conversions.str_to_scalar_enum(response, enums.OneWebCyclicPrefixGs)
[docs]
def get_fft(self) -> int:
"""
``[SOURce<HW>]:BB:ONEWeb:DL:FFT`` \n
Snippet: ``value: int = driver.source.bb.oneweb.downlink.get_fft()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:DL:FFT?')
return Conversions.str_to_int(response)
[docs]
def get_lgs(self) -> int:
"""
``[SOURce<HW>]:BB:ONEWeb:DL:LGS`` \n
Snippet: ``value: int = driver.source.bb.oneweb.downlink.get_lgs()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:DL:LGS?')
return Conversions.str_to_int(response)
[docs]
def get_no_rb(self) -> int:
"""
``[SOURce<HW>]:BB:ONEWeb:DL:NORB`` \n
Snippet: ``value: int = driver.source.bb.oneweb.downlink.get_no_rb()`` \n
Queries the number of physical resource blocks per subframe.
:return: no_rb: integer Range: 100 to 1152
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:DL:NORB?')
return Conversions.str_to_int(response)
[docs]
def get_occ_bandwidth(self) -> int:
"""
``[SOURce<HW>]:BB:ONEWeb:DL:OCCBandwidth`` \n
Snippet: ``value: int = driver.source.bb.oneweb.downlink.get_occ_bandwidth()`` \n
Queries the occupied bandwidth.
:return: occup_bandwidth: integer
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:DL:OCCBandwidth?')
return Conversions.str_to_int(response)
[docs]
def get_occ_subcarriers(self) -> int:
"""
``[SOURce<HW>]:BB:ONEWeb:DL:OCCSubcarriers`` \n
Snippet: ``value: int = driver.source.bb.oneweb.downlink.get_occ_subcarriers()`` \n
Queries the occupied subcarriers.
:return: occup_subcarr: integer Range: 72 to 1321
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:DL:OCCSubcarriers?')
return Conversions.str_to_int(response)
[docs]
def get_rgs(self) -> int:
"""
``[SOURce<HW>]:BB:ONEWeb:DL:RGS`` \n
Snippet: ``value: int = driver.source.bb.oneweb.downlink.get_rgs()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:DL:RGS?')
return Conversions.str_to_int(response)
[docs]
def get_sf_selection(self) -> int:
"""
``[SOURce<HW>]:BB:ONEWeb:DL:SFSelection`` \n
Snippet: ``value: int = driver.source.bb.oneweb.downlink.get_sf_selection()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:DL:SFSelection?')
return Conversions.str_to_int(response)
[docs]
def set_sf_selection(self, sub_frame_sel: int) -> None:
"""
``[SOURce<HW>]:BB:ONEWeb:DL:SFSelection`` \n
Snippet: ``driver.source.bb.oneweb.downlink.set_sf_selection(sub_frame_sel = 1)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(sub_frame_sel)
self._core.io.write(f'SOURce<HwInstance>:BB:ONEWeb:DL:SFSelection {param}')
[docs]
def get_symbol_rate(self) -> float:
"""
``[SOURce<HW>]:BB:ONEWeb:DL:SRATe`` \n
Snippet: ``value: float = driver.source.bb.oneweb.downlink.get_symbol_rate()`` \n
Queries the sampling rate.
:return: sample_rate: float Range: 192E4 to 3072E4
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:DL:SRATe?')
return Conversions.str_to_float(response)
def clone(self) -> 'DownlinkCls':
"""
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 = DownlinkCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group