Source code for rsrtx.Implementations.Deembedding.Component.PsOne

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

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

[docs] def set(self, sparam_plot_selection_1: enums.SparamPlotSelection, deembedding=repcap.Deembedding.Default, component=repcap.Component.Default) -> None: """ ``DEEMbedding<*>:COMPonent<*>:PSONe`` \n Snippet: ``driver.deembedding.component.psOne.set(sparam_plot_selection_1 = enums.SparamPlotSelection.S11, deembedding = repcap.Deembedding.Default, component = repcap.Component.Default)`` \n Selects the S-parameter for display of the response curves: magnitude, phase and group delay response. :param sparam_plot_selection_1: S11 | S12 | S15 | S16 | S21 | S22 | S25 | S26 | 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 component: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Component') """ param = Conversions.enum_scalar_to_str(sparam_plot_selection_1, enums.SparamPlotSelection) deembedding_cmd_val = self._cmd_group.get_repcap_cmd_value(deembedding, repcap.Deembedding) component_cmd_val = self._cmd_group.get_repcap_cmd_value(component, repcap.Component) self._core.io.write_with_opc(f'DEEMbedding{deembedding_cmd_val}:COMPonent{component_cmd_val}:PSONe {param}')
# noinspection PyTypeChecker
[docs] def get(self, deembedding=repcap.Deembedding.Default, component=repcap.Component.Default) -> enums.SparamPlotSelection: """ ``DEEMbedding<*>:COMPonent<*>:PSONe`` \n Snippet: ``value: enums.SparamPlotSelection = driver.deembedding.component.psOne.get(deembedding = repcap.Deembedding.Default, component = repcap.Component.Default)`` \n Selects the S-parameter for display of the response curves: magnitude, phase and group delay response. :param deembedding: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Deembedding') :param component: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Component') """ deembedding_cmd_val = self._cmd_group.get_repcap_cmd_value(deembedding, repcap.Deembedding) component_cmd_val = self._cmd_group.get_repcap_cmd_value(component, repcap.Component) response = self._core.io.query_str_with_opc(f'DEEMbedding{deembedding_cmd_val}:COMPonent{component_cmd_val}:PSONe?') return Conversions.str_to_scalar_enum(response, enums.SparamPlotSelection)