Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.Prach.PfOffset

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


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

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

[docs] def get_auto(self) -> bool: """ ``CONFigure:NRSub:MEASurement<Instance>:PRACh:PFOFfset:AUTO`` \n Snippet: ``value: bool = driver.configure.nrSubMeas.prach.pfOffset.get_auto()`` \n Enables or disables automatic detection of the PRACH frequency offset. To configure the offset manually for disabled automatic detection, see method ``RsCMPX_NrFr1Meas.configure.nrSubMeas.prach.pfOffset.value()`` . :return: prach_freq_auto: OFF | ON """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:PRACh:PFOFfset:AUTO?') return Conversions.str_to_bool(response)
[docs] def set_auto(self, prach_freq_auto: bool) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:PRACh:PFOFfset:AUTO`` \n Snippet: ``driver.configure.nrSubMeas.prach.pfOffset.set_auto(prach_freq_auto = False)`` \n Enables or disables automatic detection of the PRACH frequency offset. To configure the offset manually for disabled automatic detection, see method ``RsCMPX_NrFr1Meas.configure.nrSubMeas.prach.pfOffset.value()`` . :param prach_freq_auto: OFF | ON """ param = Conversions.bool_to_str(prach_freq_auto) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:PRACh:PFOFfset:AUTO {param}')
[docs] def get_value(self) -> int: """ ``CONFigure:NRSub:MEASurement<Instance>:PRACh:PFOFfset`` \n Snippet: ``value: int = driver.configure.nrSubMeas.prach.pfOffset.get_value()`` \n Specifies the PRACH frequency offset. This setting is only relevant if automatic detection is disabled, see method ``RsCMPX_NrFr1Meas.configure.nrSubMeas.prach.pfOffset.auto()`` . :return: prach_freq_offset: numeric """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:PRACh:PFOFfset?') return Conversions.str_to_int(response)
[docs] def set_value(self, prach_freq_offset: int) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:PRACh:PFOFfset`` \n Snippet: ``driver.configure.nrSubMeas.prach.pfOffset.set_value(prach_freq_offset = 1)`` \n Specifies the PRACH frequency offset. This setting is only relevant if automatic detection is disabled, see method ``RsCMPX_NrFr1Meas.configure.nrSubMeas.prach.pfOffset.auto()`` . :param prach_freq_offset: numeric """ param = Conversions.decimal_value_to_str(prach_freq_offset) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:PRACh:PFOFfset {param}')