*OPC?
Description
This command waits for all pending operations to finish and afterwards returns a 1
.
Note
The Operation pending bit in the @registersOperation is NOT set by this command. *OPC? should NOT be used for long waiting periods. Use Operation Complete Command instead!
Syntax | Response |
---|---|
*OPC? |
1 |
Sample usage
Input:
var visaSession = new TcpipSocket(VISA_RESOURCENAME); // trigger some action visaSession.RawIO.Write("*TRIG\n"); // wait for the action to finish visaSession.RawIO.Write("*OPC?\n"); Console.WriteLine(visaSession.RawIO.ReadString());
Output:
1