Source code for RsSmw.Implementations.Status.Queue

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


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

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

[docs] def get_next(self) -> str: """ ``STATus:QUEue:[NEXT]`` \n Snippet: ``value: str = driver.status.queue.get_next()`` \n Queries the oldest entry in the error queue and then deletes it. Positive error numbers denote device-specific errors, and negative error numbers denote error messages defined by SCPI. If the error queue is empty, 0 ('No error') is returned. The command is identical to SYSTem:ERRor. :return: next_py: string """ response = self._core.io.query_str('STATus:QUEue:NEXT?') return trim_str_response(response)