Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.ListPy.PlcId

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


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

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

	# noinspection PyTypeChecker
[docs] def get_mode(self) -> enums.ParameterSetMode: """ ``CONFigure:NRSub:MEASurement<Instance>:LIST:PLCid:MODE`` \n Snippet: ``value: enums.ParameterSetMode = driver.configure.nrSubMeas.listPy.plcId.get_mode()`` \n Selects which physical cell ID setting is used for list mode measurements. :return: mode: GLOBal | LIST \n - GLOBal: The global setting is used for all segments, see CONFigure:NRSub:MEASi[:CCno]:PLCid. - LIST: The cell ID is configured per segment, see CONFigure:NRSub:MEASi:LIST:SEGMentno[:CCcc]:PLCid. """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:LIST:PLCid:MODE?') return Conversions.str_to_scalar_enum(response, enums.ParameterSetMode)
[docs] def set_mode(self, mode: enums.ParameterSetMode) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:LIST:PLCid:MODE`` \n Snippet: ``driver.configure.nrSubMeas.listPy.plcId.set_mode(mode = enums.ParameterSetMode.GLOBal)`` \n Selects which physical cell ID setting is used for list mode measurements. :param mode: GLOBal | LIST \n - GLOBal: The global setting is used for all segments, see CONFigure:NRSub:MEASi[:CCno]:PLCid. - LIST: The cell ID is configured per segment, see CONFigure:NRSub:MEASi:LIST:SEGMentno[:CCcc]:PLCid. """ param = Conversions.enum_scalar_to_str(mode, enums.ParameterSetMode) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:LIST:PLCid:MODE {param}')