Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Sense.Nr5G.Demod.PrData

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PrDataCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("prData", core, parent)

[docs] def set(self, reference: enums.ReferenceDataNr5G) -> None: """ ``[SENSe]:NR5G:DEMod:PRData`` \n Snippet: ``driver.applications.k14Xnr5G.sense.nr5G.demod.prData.set(reference = enums.ReferenceDataNr5G.ALL0)`` \n Selects the PUSCH reference data. Note that when you select an ORAN test case, this setting is automatically adjusted to the ORAN test case. :param reference: AUTO Automatic detection of reference values. PASLots Available when the ORAN application is installed. PDSCH based on NR-TM PN23 (pseudo random sequence 23) with all PUSCH having the same sequence. If an ORAN test case is selected (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.oran.tcase.set()`` , this parameter selects the ORAN PN23 sequence for all PUSCH. PN23 Available when the ORAN application is installed. PDSCH based on NR-TM PN23 (pseudo random sequence 23) with each PUSCH getting its own sequence. If an ORAN test case is selected (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.oran.tcase.set()`` , this parameter selects the ORAN PN23 sequence. """ param = Conversions.enum_scalar_to_str(reference, enums.ReferenceDataNr5G) self._core.io.write(f'SENSe:NR5G:DEMod:PRData {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.ReferenceDataNr5G: """ ``[SENSe]:NR5G:DEMod:PRData`` \n Snippet: ``value: enums.ReferenceDataNr5G = driver.applications.k14Xnr5G.sense.nr5G.demod.prData.get()`` \n Selects the PUSCH reference data. Note that when you select an ORAN test case, this setting is automatically adjusted to the ORAN test case. :return: reference: AUTO Automatic detection of reference values. PASLots Available when the ORAN application is installed. PDSCH based on NR-TM PN23 (pseudo random sequence 23) with all PUSCH having the same sequence. If an ORAN test case is selected (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.oran.tcase.set()`` , this parameter selects the ORAN PN23 sequence for all PUSCH. PN23 Available when the ORAN application is installed. PDSCH based on NR-TM PN23 (pseudo random sequence 23) with each PUSCH getting its own sequence. If an ORAN test case is selected (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.oran.tcase.set()`` , this parameter selects the ORAN PN23 sequence. """ response = self._core.io.query_str(f'SENSe:NR5G:DEMod:PRData?') return Conversions.str_to_scalar_enum(response, enums.ReferenceDataNr5G)