Remote control
R&S
®
ZNB/ZNBT
825
User Manual 1173.9163.02 ─ 62
Command
Action after the hardware has settled
Programming the controller
*WAI
Stops further command processing until all commands
sent before
*WAI
have been executed
Note: The GPIB bus handshake is not stopped
Send
*WAI
directly after the command which
should be terminated before the next command is
executed.
*OPC?
Stops command processing until 1 is returned, i.e. until
the "Operation Complete" bit has been set in the ESR.
This bit indicates that the previous commands have
been completed.
Send
*OPC?
directly after the command which
should be terminated before the next command is
executed.
*OPC
Sets the operation complete bit in the ESR after all pre-
vious commands have been executed.
– Set bit 0 in the ESE
– Set bit 5 in the SRE
– Wait for service request (SRQ)
Example: Non-blocking synchronization on overlapping command termination
*CLS
resets the ESR.
INITiate1:IMMediate; OPC*
starts a single sweep in channel 1 and sets the OPC
bit (bit 0) of the ESR when the sweep has finished. It does not stop further com-
mand processing.
With
*ESR?
you can check for the value of the status bit to see if the sweep has fin-
ished..
6.5
Status reporting system
The status reporting system stores all information on the present operating state of the
instrument, and on errors which have occurred. This information is stored in the status
registers and in the error queue. Both can be queried using the
STATus...
com-
mands.
Hierarchy of status registers
As shown in section
, the status information is of hierarchi-
cal structure.
●
STB, SRE:
The STatus Byte (STB) register and its associated mask register Service Request
Enable (SRE) make up the highest level of the status reporting system. The STB
provides a rough overview of the instrument status, collecting the information of the
lower-level registers.
●
The STB receives its information from:
The Event Status Register (ESR) with the associated mask register standard Event
Status Enable (ESE).
The STATus:OPERation and STATus:QUEStionable registers which are defined by
SCPI and contain detailed information on the instrument.
●
IST, PPE:
The Individual STatus (IST) flag, like the SRQ, combines the entire instrument sta-
tus in a single bit. The PPE is associated to the IST flag. It fulfills an analogous
function for the IST flag as the SRE does for the service request.
Status reporting system