Help Icon
Search Results for

    Show / Hide Table of Contents

    :SYSTem:ERRor[:NEXT]

    Description

    This command gets the next error or event from the error event queue. If the queue is empty and therefore there is no error to load 0,"No error" is returned. For further information about the error system please refer to the Error Info Page.

    • Query
    Syntax Response
    :SYSTem:ERRor[:NEXT]? <string 1>,"<string 2>[;<string 3>]"
    Response value meaning
    <string 1> error code
    <string 2> error type name
    <string 3> (optional) further error description

    Sample usage

    • C#
    var visaSession = new TcpipSocket(VISA_RESOURCENAME);
    visaSession.RawIO.Write(":SYST:ERR?\n");
    Console.WriteLine(visaSession.RawIO.ReadString());
    

    Output:

    0,"No error"

    • Python
    response = visaSession.query(':SYST:ERR?\n')
    print(response)
    

    Output:

    0,"No error"

    Related commands

    :SYSTem:ERRor:ALL?

    :SYSTem:ERRor[:NEXT]?

    :SYSTem:ERRor:COUNt?

    References

    Error List of all posible errors

    In this article
    Back to top Generated by DocFX