Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Configure.Nr5G.Downlink.Cc.Frame.BwPart.Slot.Allocation.Ccoding.Imcs

from .............Internal.Core import Core
from .............Internal.CommandsGroup import CommandsGroup
from .............Internal import Conversions
from ............. import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class ImcsCls: """Imcs commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("imcs", core, parent)
[docs] def set(self, value: float, carrierComponent=repcap.CarrierComponent.Default, frame=repcap.Frame.Default, bwPart=repcap.BwPart.Default, slot=repcap.Slot.Default, allocation=repcap.Allocation.Default) -> None: """SCPI: CONFigure[:NR5G]:DL[:CC<cc>]:FRAMe<fr>:BWPart<bwp>:SLOT<sl>:ALLocation<al>:CCODing:IMCS \n Snippet: driver.applications.k14Xnr5G.configure.nr5G.downlink.cc.frame.bwPart.slot.allocation.ccoding.imcs.set(value = 1.0, carrierComponent = repcap.CarrierComponent.Default, frame = repcap.Frame.Default, bwPart = repcap.BwPart.Default, slot = repcap.Slot.Default, allocation = repcap.Allocation.Default) \n Selects the MCS index (IMCS) . \n :param value: The value range depends on: - The modulation order (method RsFsw.Applications.K14x_Nr5G.Configure.Nr5G.Downlink.Cc.Frame.BwPart.Slot.Allocation.Ccoding.McsTable.set) . - The modulation scheme of the PDSCH (method RsFsw.Applications.K14x_Nr5G.Configure.Nr5G.Downlink.Cc.Frame.BwPart.Slot.Allocation.Cw.Modulation.set) . :param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc') :param frame: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Frame') :param bwPart: optional repeated capability selector. Default value: Nr1 (settable in the interface 'BwPart') :param slot: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Slot') :param allocation: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Allocation') """ param = Conversions.decimal_value_to_str(value) carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) frame_cmd_val = self._cmd_group.get_repcap_cmd_value(frame, repcap.Frame) bwPart_cmd_val = self._cmd_group.get_repcap_cmd_value(bwPart, repcap.BwPart) slot_cmd_val = self._cmd_group.get_repcap_cmd_value(slot, repcap.Slot) allocation_cmd_val = self._cmd_group.get_repcap_cmd_value(allocation, repcap.Allocation) self._core.io.write(f'CONFigure:NR5G:DL:CC{carrierComponent_cmd_val}:FRAMe{frame_cmd_val}:BWPart{bwPart_cmd_val}:SLOT{slot_cmd_val}:ALLocation{allocation_cmd_val}:CCODing:IMCS {param}')
[docs] def get(self, carrierComponent=repcap.CarrierComponent.Default, frame=repcap.Frame.Default, bwPart=repcap.BwPart.Default, slot=repcap.Slot.Default, allocation=repcap.Allocation.Default) -> float: """SCPI: CONFigure[:NR5G]:DL[:CC<cc>]:FRAMe<fr>:BWPart<bwp>:SLOT<sl>:ALLocation<al>:CCODing:IMCS \n Snippet: value: float = driver.applications.k14Xnr5G.configure.nr5G.downlink.cc.frame.bwPart.slot.allocation.ccoding.imcs.get(carrierComponent = repcap.CarrierComponent.Default, frame = repcap.Frame.Default, bwPart = repcap.BwPart.Default, slot = repcap.Slot.Default, allocation = repcap.Allocation.Default) \n Selects the MCS index (IMCS) . \n :param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc') :param frame: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Frame') :param bwPart: optional repeated capability selector. Default value: Nr1 (settable in the interface 'BwPart') :param slot: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Slot') :param allocation: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Allocation') :return: value: The value range depends on: - The modulation order (method RsFsw.Applications.K14x_Nr5G.Configure.Nr5G.Downlink.Cc.Frame.BwPart.Slot.Allocation.Ccoding.McsTable.set) . - The modulation scheme of the PDSCH (method RsFsw.Applications.K14x_Nr5G.Configure.Nr5G.Downlink.Cc.Frame.BwPart.Slot.Allocation.Cw.Modulation.set) .""" carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) frame_cmd_val = self._cmd_group.get_repcap_cmd_value(frame, repcap.Frame) bwPart_cmd_val = self._cmd_group.get_repcap_cmd_value(bwPart, repcap.BwPart) slot_cmd_val = self._cmd_group.get_repcap_cmd_value(slot, repcap.Slot) allocation_cmd_val = self._cmd_group.get_repcap_cmd_value(allocation, repcap.Allocation) response = self._core.io.query_str(f'CONFigure:NR5G:DL:CC{carrierComponent_cmd_val}:FRAMe{frame_cmd_val}:BWPart{bwPart_cmd_val}:SLOT{slot_cmd_val}:ALLocation{allocation_cmd_val}:CCODing:IMCS?') return Conversions.str_to_float(response)