from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class SscCls:
"""Ssc commands group definition. 5 total commands, 1 Subgroups, 4 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ssc", core, parent)
@property
def sfi(self):
"""sfi commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_sfi'):
from .Sfi import SfiCls
self._sfi = SfiCls(self._core, self._cmd_group)
return self._sfi
[docs] def get_ndl_symbols(self) -> int:
"""SCPI: [SOURce<HW>]:BB:NR5G:QCKSet:FRMFormat:SSC:NDLSymbols \n
Snippet: value: int = driver.source.bb.nr5G.qckset.frmFormat.ssc.get_ndl_symbols() \n
Defines the number of downlink symbols in a special slot.
INTRO_CMD_HELP: Prerequisites to define the number of downlink symbols: \n
- Enter downlink mode ([:SOURce<hw>]:BB:NR5G:LINK) .
- Turn off usage of special slot format ([:SOURce<hw>]:BB:NR5G:QCKSet:FRMFormat:SSC:SFI:STATe) .
Otherwise, the command is a query only. \n
:return: qck_set_slot_dl_sym: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:QCKSet:FRMFormat:SSC:NDLSymbols?')
return Conversions.str_to_int(response)
[docs] def set_ndl_symbols(self, qck_set_slot_dl_sym: int) -> None:
"""SCPI: [SOURce<HW>]:BB:NR5G:QCKSet:FRMFormat:SSC:NDLSymbols \n
Snippet: driver.source.bb.nr5G.qckset.frmFormat.ssc.set_ndl_symbols(qck_set_slot_dl_sym = 1) \n
Defines the number of downlink symbols in a special slot.
INTRO_CMD_HELP: Prerequisites to define the number of downlink symbols: \n
- Enter downlink mode ([:SOURce<hw>]:BB:NR5G:LINK) .
- Turn off usage of special slot format ([:SOURce<hw>]:BB:NR5G:QCKSet:FRMFormat:SSC:SFI:STATe) .
Otherwise, the command is a query only. \n
:param qck_set_slot_dl_sym: integer Range: 0 to 14
"""
param = Conversions.decimal_value_to_str(qck_set_slot_dl_sym)
self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:QCKSet:FRMFormat:SSC:NDLSymbols {param}')
[docs] def get_ng_symbols(self) -> int:
"""SCPI: [SOURce<HW>]:BB:NR5G:QCKSet:FRMFormat:SSC:NGSYmbols \n
Snippet: value: int = driver.source.bb.nr5G.qckset.frmFormat.ssc.get_ng_symbols() \n
Queries the number of guard symbols. \n
:return: qck_set_sguard_sym: integer Range: 0 to 14
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:QCKSet:FRMFormat:SSC:NGSYmbols?')
return Conversions.str_to_int(response)
[docs] def get_nul_symbols(self) -> int:
"""SCPI: [SOURce<HW>]:BB:NR5G:QCKSet:FRMFormat:SSC:NULSymbols \n
Snippet: value: int = driver.source.bb.nr5G.qckset.frmFormat.ssc.get_nul_symbols() \n
Defines the number of uplink symbols in a special slot.
INTRO_CMD_HELP: Prerequisites to define the number of downlink symbols: \n
- Enter uplink mode ([:SOURce<hw>]:BB:NR5G:LINK) .
- Turn off usage of special slot format ([:SOURce<hw>]:BB:NR5G:QCKSet:FRMFormat:SSC:SFI:STATe) .
Otherwise, the command is a query only. \n
:return: qck_set_sul_slots: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:QCKSet:FRMFormat:SSC:NULSymbols?')
return Conversions.str_to_int(response)
[docs] def set_nul_symbols(self, qck_set_sul_slots: int) -> None:
"""SCPI: [SOURce<HW>]:BB:NR5G:QCKSet:FRMFormat:SSC:NULSymbols \n
Snippet: driver.source.bb.nr5G.qckset.frmFormat.ssc.set_nul_symbols(qck_set_sul_slots = 1) \n
Defines the number of uplink symbols in a special slot.
INTRO_CMD_HELP: Prerequisites to define the number of downlink symbols: \n
- Enter uplink mode ([:SOURce<hw>]:BB:NR5G:LINK) .
- Turn off usage of special slot format ([:SOURce<hw>]:BB:NR5G:QCKSet:FRMFormat:SSC:SFI:STATe) .
Otherwise, the command is a query only. \n
:param qck_set_sul_slots: integer Range: 0 to 14
"""
param = Conversions.decimal_value_to_str(qck_set_sul_slots)
self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:QCKSet:FRMFormat:SSC:NULSymbols {param}')
[docs] def get_slfmt(self) -> int:
"""SCPI: [SOURce<HW>]:BB:NR5G:QCKSet:FRMFormat:SSC:SLFMt \n
Snippet: value: int = driver.source.bb.nr5G.qckset.frmFormat.ssc.get_slfmt() \n
Sets the special slot format index. \n
:return: qck_set_slot_fmt: integer Range: 0 to 45
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:QCKSet:FRMFormat:SSC:SLFMt?')
return Conversions.str_to_int(response)
[docs] def set_slfmt(self, qck_set_slot_fmt: int) -> None:
"""SCPI: [SOURce<HW>]:BB:NR5G:QCKSet:FRMFormat:SSC:SLFMt \n
Snippet: driver.source.bb.nr5G.qckset.frmFormat.ssc.set_slfmt(qck_set_slot_fmt = 1) \n
Sets the special slot format index. \n
:param qck_set_slot_fmt: integer Range: 0 to 45
"""
param = Conversions.decimal_value_to_str(qck_set_slot_fmt)
self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:QCKSet:FRMFormat:SSC:SLFMt {param}')
def clone(self) -> 'SscCls':
"""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 = SscCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group