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