Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Trigger.Sequence.Port

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


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

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

[docs] def set(self, port: enums.Port) -> None: """ ``TRIGger[:SEQuence]:PORT`` \n Snippet: ``driver.applications.k14Xnr5G.trigger.sequence.port.set(port = enums.Port.PORT1)`` \n Selects the trigger port for measurements with devices that have several trigger ports. :param port: PORT1 PORT2 PORT3 """ param = Conversions.enum_scalar_to_str(port, enums.Port) self._core.io.write(f'TRIGger:SEQuence:PORT {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.Port: """ ``TRIGger[:SEQuence]:PORT`` \n Snippet: ``value: enums.Port = driver.applications.k14Xnr5G.trigger.sequence.port.get()`` \n Selects the trigger port for measurements with devices that have several trigger ports. :return: port: PORT1 PORT2 PORT3 """ response = self._core.io.query_str(f'TRIGger:SEQuence:PORT?') return Conversions.str_to_scalar_enum(response, enums.Port)