*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
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)
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)