Source code for RsFsw.Implementations.Instrument.Select

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


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

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

[docs] def set(self, channel_type: enums.ChannelType) -> None: """ ``INSTrument[:SELect]`` \n Snippet: ``driver.instrument.select.set(channel_type = enums.ChannelType.IqAnalyzer=IQ)`` \n Activates a new channel with the defined channel type, or selects an existing channel with the specified name. Also see See also \n - method ``RsFsw.instrument.create.new.set()`` - 'Programming example: performing a sequence of measurements' :param channel_type: (enum or string) Channel type of the new channel. For a list of available channel types see method ``RsFsw.instrument.listPy.get()`` . """ param = Conversions.enum_ext_scalar_to_str(channel_type, enums.ChannelType) self._core.io.write_with_opc(f'INSTrument:SELect {param}')