Source code for rsrtx.Implementations.Deembedding.Cascade.Pselection

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 PselectionCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, sparam_plot_sel: enums.SparamPlotSelection, deembedding=repcap.Deembedding.Default) -> None: """ ``DEEMbedding<*>:CASCade:PSELection`` \n Snippet: ``driver.deembedding.cascade.pselection.set(sparam_plot_sel = enums.SparamPlotSelection.S11, deembedding = repcap.Deembedding.Default)`` \n Selects the S-parameter for which the response curves (magnitude, phase, and group delay response) of the setup cascade are shown. :param sparam_plot_sel: S11 | S12 | S13 | S15 | S16 | S21 | S22 | S23 | S25 | S26 | S31 | S32 | S33 | S35 | S36 | S45 | S46 | S51 | S52 | S53 | S54 | S55 | S56 | S61 | S62 | S63 | S64 | S65 | S66 :param deembedding: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Deembedding') """ param = Conversions.enum_scalar_to_str(sparam_plot_sel, enums.SparamPlotSelection) deembedding_cmd_val = self._cmd_group.get_repcap_cmd_value(deembedding, repcap.Deembedding) self._core.io.write_with_opc(f'DEEMbedding{deembedding_cmd_val}:CASCade:PSELection {param}')
# noinspection PyTypeChecker
[docs] def get(self, deembedding=repcap.Deembedding.Default) -> enums.SparamPlotSelection: """ ``DEEMbedding<*>:CASCade:PSELection`` \n Snippet: ``value: enums.SparamPlotSelection = driver.deembedding.cascade.pselection.get(deembedding = repcap.Deembedding.Default)`` \n Selects the S-parameter for which the response curves (magnitude, phase, and group delay response) of the setup cascade are shown. :param deembedding: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Deembedding') """ deembedding_cmd_val = self._cmd_group.get_repcap_cmd_value(deembedding, repcap.Deembedding) response = self._core.io.query_str_with_opc(f'DEEMbedding{deembedding_cmd_val}:CASCade:PSELection?') return Conversions.str_to_scalar_enum(response, enums.SparamPlotSelection)