Help Icon
Search Results for

    Show / Hide Table of Contents

    *OPC

    Description

    This command sets the operation complete bit in the status byte register, when all pending operations have been finished.

    • Command
    Syntax Parameter
    *OPC none

    Sample usage

    • C#
    var visaSession = new TcpipSocket(VISA_RESOURCENAME);
    visaSession.RawIO.Write("*CLS\n");
    visaSession.RawIO.Write("*OPC\n");
    visaSession.RawIO.Write("*ESR?\n");
    Console.WriteLine(visaSession.RawIO.ReadString());
    

    Output:

    1 (when no operations are running)

    0 (when an operation is still ongoing)

    • Python
    visaSession.write('*CLS*\n')
    visaSession.write('*OPC\n')
    response = visaSession.query('*ESR?\n')
    print(response)
    

    Output:

    1 (when no operations are running)

    0 (when an operation is still ongoing)

    Related commands

    *OPC?

    In this article
    Back to top Generated by DocFX