Help Icon
Search Results for

    Show / Hide Table of Contents

    *CLS

    Description

    This command clears all status registers (ESR, STB), the event based questionable and operation register and the error queue. The status byte register (STB) keeps real-time information of the operational status of the device (OPER, QUES). So clearing in this context means cleaning up of static information.

    • Command
    Syntax Parameter
    *CLS none
    Parameters accepted format possible Errors
    none none none

    Sample usage

    • C#
    var visaSession = new TcpipSocket(VISA_RESOURCENAME);
    visaSession.RawIO.Write("*CLS\n");
    

    Output:

    none

    • Python
    visaSession.write('*CLS\n')
    

    Output:

    none

    Related commands

    *STB?

    *ESR?

    :STATus:OPERation:CONDition?

    :STATus:OPERation[:EVENt]?

    :STATus:QUEStionable:CONDition?

    :STATus:QUEStionable[:EVENt]?

    :SYSTem:ERRor

    :SYSTem:ERRor:COUNt

    *IDN?

    References

    The status registering model of a SCPI device

    In this article
    Back to top Generated by DocFX