from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SelectNameCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("selectName", core, parent)
[docs]
def set(self, channel_name: str) -> None:
"""
``INSTrument[:SELect]`` \n
Snippet: ``driver.instrument.selectName.set(channel_name = 'abc')`` \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_name: String containing the name of the channel.
"""
param = Conversions.value_to_quoted_str(channel_name)
self._core.io.write_with_opc(f'INSTrument:SELect {param}')