from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class UplinkCls:
"""
| Commands in total: 446
| Subgroups: 15
| Direct child commands: 13
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("uplink", core, parent)
@property
def apMap(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_apMap'):
from .ApMap import ApMapCls
self._apMap = ApMapCls(self._core, self._cmd_group)
return self._apMap
@property
def ca(self):
"""
| Commands in total: 13
| Subgroups: 1
| Direct child commands: 1
"""
if not hasattr(self, '_ca'):
from .Ca import CaCls
self._ca = CaCls(self._core, self._cmd_group)
return self._ca
@property
def emtc(self):
"""
| Commands in total: 5
| Subgroups: 1
| Direct child commands: 4
"""
if not hasattr(self, '_emtc'):
from .Emtc import EmtcCls
self._emtc = EmtcCls(self._core, self._cmd_group)
return self._emtc
@property
def niot(self):
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
if not hasattr(self, '_niot'):
from .Niot import NiotCls
self._niot = NiotCls(self._core, self._cmd_group)
return self._niot
@property
def prach(self):
"""
| Commands in total: 16
| Subgroups: 2
| Direct child commands: 3
"""
if not hasattr(self, '_prach'):
from .Prach import PrachCls
self._prach = PrachCls(self._core, self._cmd_group)
return self._prach
@property
def pucch(self):
"""
| Commands in total: 10
| Subgroups: 0
| Direct child commands: 10
"""
if not hasattr(self, '_pucch'):
from .Pucch import PucchCls
self._pucch = PucchCls(self._core, self._cmd_group)
return self._pucch
@property
def pusch(self):
"""
| Commands in total: 5
| Subgroups: 0
| Direct child commands: 5
"""
if not hasattr(self, '_pusch'):
from .Pusch import PuschCls
self._pusch = PuschCls(self._core, self._cmd_group)
return self._pusch
@property
def refsig(self):
"""
| Commands in total: 18
| Subgroups: 2
| Direct child commands: 4
"""
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 rtfb(self):
"""
| Commands in total: 16
| Subgroups: 0
| Direct child commands: 16
"""
if not hasattr(self, '_rtfb'):
from .Rtfb import RtfbCls
self._rtfb = RtfbCls(self._core, self._cmd_group)
return self._rtfb
@property
def ue(self):
"""
| Commands in total: 273
| Subgroups: 17
| Direct child commands: 0
"""
if not hasattr(self, '_ue'):
from .Ue import UeCls
self._ue = UeCls(self._core, self._cmd_group)
return self._ue
@property
def view(self):
"""
| Commands in total: 4
| Subgroups: 0
| Direct child commands: 4
"""
if not hasattr(self, '_view'):
from .View import ViewCls
self._view = ViewCls(self._core, self._cmd_group)
return self._view
@property
def cell(self):
"""
| Commands in total: 36
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_cell'):
from .Cell import CellCls
self._cell = CellCls(self._core, self._cmd_group)
return self._cell
@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: 30
| Subgroups: 3
| 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_bw(self) -> enums.ChannelBandwidth:
"""
``[SOURce<HW>]:BB:EUTRa:UL:BW`` \n
Snippet: ``value: enums.ChannelBandwidth = driver.source.bb.eutra.uplink.get_bw()`` \n
Sets the UL channel bandwidth.
:return: bandwidth: BW1_40 | BW3_00 | BW5_00 | BW10_00 | BW15_00 | BW20_00 | BW0_20 | USER
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:BW?')
return Conversions.str_to_scalar_enum(response, enums.ChannelBandwidth)
[docs]
def set_bw(self, bandwidth: enums.ChannelBandwidth) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:UL:BW`` \n
Snippet: ``driver.source.bb.eutra.uplink.set_bw(bandwidth = enums.ChannelBandwidth.BW0_20)`` \n
Sets the UL channel bandwidth.
:param bandwidth: BW1_40 | BW3_00 | BW5_00 | BW10_00 | BW15_00 | BW20_00 | BW0_20 | USER
"""
param = Conversions.enum_scalar_to_str(bandwidth, enums.ChannelBandwidth)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:BW {param}')
[docs]
def get_con_sub_frames(self) -> int:
"""
``[SOURce<HW>]:BB:EUTRa:UL:CONSubframes`` \n
Snippet: ``value: int = driver.source.bb.eutra.uplink.get_con_sub_frames()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:CONSubframes?')
return Conversions.str_to_int(response)
[docs]
def set_con_sub_frames(self, conf_subframes: int) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:UL:CONSubframes`` \n
Snippet: ``driver.source.bb.eutra.uplink.set_con_sub_frames(conf_subframes = 1)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(conf_subframes)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:CONSubframes {param}')
# noinspection PyTypeChecker
[docs]
def get_cpc(self) -> enums.CyclicPrefixGs:
"""
``[SOURce<HW>]:BB:EUTRa:UL:CPC`` \n
Snippet: ``value: enums.CyclicPrefixGs = driver.source.bb.eutra.uplink.get_cpc()`` \n
Sets the cyclic prefix length for all subframes.
:return: cyclic_prefix: NORMal | EXTended | USER
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:CPC?')
return Conversions.str_to_scalar_enum(response, enums.CyclicPrefixGs)
[docs]
def set_cpc(self, cyclic_prefix: enums.CyclicPrefixGs) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:UL:CPC`` \n
Snippet: ``driver.source.bb.eutra.uplink.set_cpc(cyclic_prefix = enums.CyclicPrefixGs.EXTended)`` \n
Sets the cyclic prefix length for all subframes.
:param cyclic_prefix: NORMal | EXTended | USER
"""
param = Conversions.enum_scalar_to_str(cyclic_prefix, enums.CyclicPrefixGs)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:CPC {param}')
# noinspection PyTypeChecker
[docs]
def get_dl_cpc(self) -> enums.EuTraDuration:
"""
``[SOURce<HW>]:BB:EUTRa:UL:DLCPc`` \n
Snippet: ``value: enums.EuTraDuration = driver.source.bb.eutra.uplink.get_dl_cpc()`` \n
In TDD mode, determines the cyclic prefix for the appropriate opposite direction.
:return: gs_cpc_opp_dir: NORMal | EXTended
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:DLCPc?')
return Conversions.str_to_scalar_enum(response, enums.EuTraDuration)
[docs]
def set_dl_cpc(self, gs_cpc_opp_dir: enums.EuTraDuration) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:UL:DLCPc`` \n
Snippet: ``driver.source.bb.eutra.uplink.set_dl_cpc(gs_cpc_opp_dir = enums.EuTraDuration.EXTended)`` \n
In TDD mode, determines the cyclic prefix for the appropriate opposite direction.
:param gs_cpc_opp_dir: NORMal | EXTended
"""
param = Conversions.enum_scalar_to_str(gs_cpc_opp_dir, enums.EuTraDuration)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:DLCPc {param}')
[docs]
def get_fft(self) -> int:
"""
``[SOURce<HW>]:BB:EUTRa:UL:FFT`` \n
Snippet: ``value: int = driver.source.bb.eutra.uplink.get_fft()`` \n
Sets the FFT (Fast Fourier Transformation) size. The available values depend on the selected number of resource blocks
per slot.
:return: fft_size: integer Range: 64 to 2048
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:FFT?')
return Conversions.str_to_int(response)
[docs]
def set_fft(self, fft_size: int) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:UL:FFT`` \n
Snippet: ``driver.source.bb.eutra.uplink.set_fft(fft_size = 1)`` \n
Sets the FFT (Fast Fourier Transformation) size. The available values depend on the selected number of resource blocks
per slot.
:param fft_size: integer Range: 64 to 2048
"""
param = Conversions.decimal_value_to_str(fft_size)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:FFT {param}')
[docs]
def get_lgs(self) -> int:
"""
``[SOURce<HW>]:BB:EUTRa:UL:LGS`` \n
Snippet: ``value: int = driver.source.bb.eutra.uplink.get_lgs()`` \n
Queries the number of left guard subcarriers. The value is set automatically according to the selected number of resource
blocks per slot.
:return: lg_sub_carr: integer Range: 28 to 364
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:LGS?')
return Conversions.str_to_int(response)
[docs]
def get_no_rb(self) -> int:
"""
``[SOURce<HW>]:BB:EUTRa:UL:NORB`` \n
Snippet: ``value: int = driver.source.bb.eutra.uplink.get_no_rb()`` \n
Selects the number of physical resource blocks per slot.
:return: num_res_blocks: integer Range: 6 to 110
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:NORB?')
return Conversions.str_to_int(response)
[docs]
def set_no_rb(self, num_res_blocks: int) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:UL:NORB`` \n
Snippet: ``driver.source.bb.eutra.uplink.set_no_rb(num_res_blocks = 1)`` \n
Selects the number of physical resource blocks per slot.
:param num_res_blocks: integer Range: 6 to 110
"""
param = Conversions.decimal_value_to_str(num_res_blocks)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:NORB {param}')
[docs]
def get_occ_bandwidth(self) -> float:
"""
``[SOURce<HW>]:BB:EUTRa:UL:OCCBandwidth`` \n
Snippet: ``value: float = driver.source.bb.eutra.uplink.get_occ_bandwidth()`` \n
Queries the occupied bandwidth. This value is set automatically according to the selected number of resource blocks per
slot.
:return: occ_bandwidth: float Unit: MHz
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:OCCBandwidth?')
return Conversions.str_to_float(response)
[docs]
def get_occ_subcarriers(self) -> int:
"""
``[SOURce<HW>]:BB:EUTRa:UL:OCCSubcarriers`` \n
Snippet: ``value: int = driver.source.bb.eutra.uplink.get_occ_subcarriers()`` \n
Queries the occupied subcarriers. The value is set automatically according to the selected number of resource blocks per
slot.
:return: occ_subcarriers: integer Range: 72 to 1320
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:OCCSubcarriers?')
return Conversions.str_to_int(response)
[docs]
def get_rgs(self) -> int:
"""
``[SOURce<HW>]:BB:EUTRa:UL:RGS`` \n
Snippet: ``value: int = driver.source.bb.eutra.uplink.get_rgs()`` \n
Queries the number of right guard subcarriers. The value is set automatically according to the selected number of
resource blocks per slot.
:return: rg_sub_carr: integer Range: 35 to 601
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:RGS?')
return Conversions.str_to_int(response)
[docs]
def get_sf_selection(self) -> int:
"""
``[SOURce<HW>]:BB:EUTRa:UL:SFSelection`` \n
Snippet: ``value: int = driver.source.bb.eutra.uplink.get_sf_selection()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:SFSelection?')
return Conversions.str_to_int(response)
[docs]
def set_sf_selection(self, sub_frame_sel: int) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:UL:SFSelection`` \n
Snippet: ``driver.source.bb.eutra.uplink.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:EUTRa:UL:SFSelection {param}')
[docs]
def get_soffset(self) -> int:
"""
``[SOURce<HW>]:BB:EUTRa:UL:SOFFset`` \n
Snippet: ``value: int = driver.source.bb.eutra.uplink.get_soffset()`` \n
Set the start SFN value.
:return: sfn_offset: integer Range: 0 to 4095, Unit: Frames
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:SOFFset?')
return Conversions.str_to_int(response)
[docs]
def set_soffset(self, sfn_offset: int) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:UL:SOFFset`` \n
Snippet: ``driver.source.bb.eutra.uplink.set_soffset(sfn_offset = 1)`` \n
Set the start SFN value.
:param sfn_offset: integer Range: 0 to 4095, Unit: Frames
"""
param = Conversions.decimal_value_to_str(sfn_offset)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:SOFFset {param}')
[docs]
def get_symbol_rate(self) -> float:
"""
``[SOURce<HW>]:BB:EUTRa:UL:SRATe`` \n
Snippet: ``value: float = driver.source.bb.eutra.uplink.get_symbol_rate()`` \n
Queries the sampling rate.
:return: samp_rate: float Range: 192E4 to 3072E4
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:SRATe?')
return Conversions.str_to_float(response)
def clone(self) -> 'UplinkCls':
"""
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 = UplinkCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group