To Determine When a Command Sequence is Completed
1 Send a device clear message to clear the function generator’s
output buffer (e.g., CLEAR 710).
2 Clear the event registers with the *CLS (clear status) command.
3 Enable the “operation complete” bit (bit 0) in the Standard Event
register by executing the *ESE 1 command.
4 Send the *OPC? (operation complete query) command and enter the
result to ensure synchronization.
5 Execute your command string to program the desired configuration,
and then execute the *OPC (operation complete) command as the last
command. When the command sequence is completed, the “operation
complete” bit (bit 0) is set in the Standard Event register.
6 Use a serial poll to check to see when bit 5 (standard event) is set in the
Status Byte summary register. You could also configure the function
generator for an
SRQ interrupt by sending *SRE 32 (Status Byte enable
register, bit 5).
Chapter 4 Remote Interface Reference
The SCPI Status Registers
206