*OPC
Description
This command sets the operation complete
bit in the status byte
register, when all pending operations have been finished.
Syntax | Parameter |
---|---|
*OPC |
none |
Sample usage
Input:
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)