from ..Internal.Core import Core
from ..Internal.CommandsGroup import CommandsGroup
from ..Internal import Conversions
from ..Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class MsgLogCls:
"""MsgLog commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("msgLog", core, parent)
[docs]
def get_error(self) -> str:
"""SCPI: MSGLog:ERRor \n
Snippet: value: str = driver.msgLog.get_error() \n
Queries the last error listed in the 'Message Log' dialog. \n
:return: error: string
"""
response = self._core.io.query_str('MSGLog:ERRor?')
return trim_str_response(response)