Source code for RsFsw.Implementations.Instrument.Nselect

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


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

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

[docs] def set(self, option_number: int) -> None: """ ``INSTrument:NSELect`` \n Snippet: ``driver.instrument.nselect.set(option_number = 1)`` \n No help available """ param = Conversions.decimal_value_to_str(option_number) self._core.io.write_with_opc(f'INSTrument:NSELect {param}')
[docs] def get(self) -> int: """ ``INSTrument:NSELect`` \n Snippet: ``value: int = driver.instrument.nselect.get()`` \n No help available """ response = self._core.io.query_str_with_opc(f'INSTrument:NSELect?') return Conversions.str_to_int(response)