Source code for rsrtx.Implementations.SignalConfig.Setup.Setting.PamOrder

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


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

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

[docs] def set(self, pam_order: enums.PamOrder, setupSetting=repcap.SetupSetting.Default) -> None: """ ``SIGNalconfig:SETup:SETTing<*>:PAMorder`` \n Snippet: ``driver.signalConfig.setup.setting.pamOrder.set(pam_order = enums.PamOrder.PAM2, setupSetting = repcap.SetupSetting.Default)`` \n Requires option R&S RTP-K135. Selects the PAM order. You can select a value up to 8. :param pam_order: PAM2 | PAM3 | PAM4 | PAM5 | PAM6 | PAM7 | PAM8 :param setupSetting: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Setting') """ param = Conversions.enum_scalar_to_str(pam_order, enums.PamOrder) setupSetting_cmd_val = self._cmd_group.get_repcap_cmd_value(setupSetting, repcap.SetupSetting) self._core.io.write_with_opc(f'SIGNalconfig:SETup:SETTing{setupSetting_cmd_val}:PAMorder {param}')
# noinspection PyTypeChecker
[docs] def get(self, setupSetting=repcap.SetupSetting.Default) -> enums.PamOrder: """ ``SIGNalconfig:SETup:SETTing<*>:PAMorder`` \n Snippet: ``value: enums.PamOrder = driver.signalConfig.setup.setting.pamOrder.get(setupSetting = repcap.SetupSetting.Default)`` \n Requires option R&S RTP-K135. Selects the PAM order. You can select a value up to 8. :param setupSetting: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Setting') :return: pam_order: PAM2 | PAM3 | PAM4 | PAM5 | PAM6 | PAM7 | PAM8 """ setupSetting_cmd_val = self._cmd_group.get_repcap_cmd_value(setupSetting, repcap.SetupSetting) response = self._core.io.query_str_with_opc(f'SIGNalconfig:SETup:SETTing{setupSetting_cmd_val}:PAMorder?') return Conversions.str_to_scalar_enum(response, enums.PamOrder)