Chapter 4 Remote Interface Reference
The SCPI Status Registers
To Determine When a Command Sequence is Completed
Send a device clear message to clear the power supply's output buffer (e.g.,
1
).
CLEAR 705
Clear the event registers with the
2
Enable the "operation complete" bit (bit 0) in the Standard Event register by
3
executing the
*ESE 1
Send the
(operation complete query) command and enter the result to
4
*OPC?
ensure synchronization.
Execute your command string to program the desired configuration, and then
5
execute the
(operation complete) command as the last command. When
*OPC
the command sequence is completed, the "operation complete" bit (bit 0) is
set in the Standard Event register.
Use a serial poll to check to see when bit 5 (standard event) is set in the Status
6
Byte summary register. You could also configure the power supply for an
SRQ interrupt by sending
Using *OPC to Signal When Data is in the Output Buffer
Generally, it is best to use the "operation complete" bit (bit 0) in the Standard Event
register to signal when a command sequence is completed. This bit is set in the register
after an *OPC command has been executed. If you send *OPC after a command
which loads a message in the power supply's output buffer (query data), you can use
the "operation complete" bit to determine when the message is available. However,
if too many messages are generated before the *OPC command executes
(sequentially), the output buffer will fill and the power supply will stop processing
commands.
(clear status) command.
*CLS
command.
(Status Byte enable register, bit 5).
*SRE 32
4
97