Remote Control Basics
R&S
®
SMB100A
233Operating Manual 1407.0806.32 ─ 13
*OPC? with short timeout
1. Send the overlapped command without *OPC, *OPC? or *WAI
2. Poll the operation complete state periodically (by means of a timer) using the
sequence: <short timeout>; *OPC?
3. A return value (LSB) of 1 indicates that the overlapped command has finished. In
case of a timeout, the operation is ongoing.
4. Reset timeout to former value
5. Clear the error queue with SYStem:ERRor? to remove the "-410, Query interrupted"
entries.
Using several threads in the controller application
As an alternative, provided the programming environment of the controller application
supports threads, separate threads can be used for the application GUI and for controlling
the instrument(s) via SCPI.
A thread waiting for a *OPC? thus will not block the GUI or the communication with other
instruments.
6.5 Status Reporting System
The status reporting system stores all information on the current operating state of the
instrument, and on errors which have occurred. This information is stored in the status
registers and in the error queue. You can query both with the commands of the STATus
Subsystem.
6.5.1 Hierarchy of the Status Registers
The figure 6-1 shows the hierarchical structure of information in the status registers
(ascending from left to right).
Status Reporting System