Source code for rsrtx.Implementations.System.Communicate.Printer.Enumerate

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.Utilities import trim_str_response


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

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

[docs] def get_first(self) -> str: """ ``SYSTem:COMMunicate:PRINter:ENUMerate:FIRSt`` \n Snippet: ``value: str = driver.system.communicate.printer.enumerate.get_first()`` \n No help available """ response = self._core.io.query_str_with_opc('SYSTem:COMMunicate:PRINter:ENUMerate:FIRSt?') return trim_str_response(response)
[docs] def get_next(self) -> str: """ ``SYSTem:COMMunicate:PRINter:ENUMerate[:NEXT]`` \n Snippet: ``value: str = driver.system.communicate.printer.enumerate.get_next()`` \n No help available """ response = self._core.io.query_str_with_opc('SYSTem:COMMunicate:PRINter:ENUMerate:NEXT?') return trim_str_response(response)