
3-2
Common Commands
Common Commands
Common commands are defined by the IEEE 488.2 standard. They control generic device
functions that are common to many different types of instruments. Common commands can
be received and processed by the analyzer, whether they are sent over the GPIB as separate
program messages or within other program messages.
Receiving
Common
Commands
Common commands can be received and processed by the analyzer, whether they are sent
over the GPIB as separate program messages or within other program messages. If a sub-
system is currently selected and a common command is received by the analyzer, the ana-
lyzer remains in the selected subsystem. For example, if the program message
"ACQUIRE:AVERAGE ON;*CLS;COUNT 1024"
is received by the analyzer, the analyzer enables averaging, clears the status information,
then sets the number of averages without leaving the selected subsystem.
Status Registers
The following two status registers used by common commands have an enable (mask) regis-
ter. By setting bits in the enable register, the status information can be selected for use. Refer
to
“Status Reporting” on page 1-11
for a complete discussion of status.
Command
Synchronization
Three commands are available for the synchronization between remote command scripts and
the instrument: *OPC (command and query) and *WAI. The *OPC command sets a bit in the
Standard Event Status Register when all pending device operations have finished. It is useful
to verify the completion of commands that could take a variable amount of time or commands
executed in parallel with other commands, such as PRINt, and the limit test commands
(ACQuire:RUNtil, MTEST:RUNtil, and LTEST). It does not stop the execution of the remote
script. The *OPC query allows synchronization between the computer and the instrument by
using the message available (MAV) bit in the Status Byte, or by reading the output queue.
Unlike the *OPC command, the *OPC query does not affect the OPC event bit in the Stan-
dard Event Status Register. The execution of the remote script is halted and therefore the
*OPC query should be used judiciously. For example, the command “:MTEST:RUNtil FSAM-
PLES,100’; *OPC?” will lock the remote interface until 100 failed samples are detected, which
could take a very long time. Under these circumstances, the user must send a device clear or
power down to re-start the instrument. The *WAI command is similar to the *OPC? query as
Table 3-1. Status Registers
Status Register
Enable Register
Event Status Register
Event Status Enable Register
Status Byte Register
Service Request Enable Register
Содержание 86100A
Страница 18: ...1 14 Introduction Status Reporting Figure 1 4 Status Reporting Data Structures...
Страница 19: ...1 15 Introduction Status Reporting Status Reporting Data Structures continued...
Страница 94: ...2 40 Sample Programs BASIC Programming Examples...
Страница 124: ...4 16 Root Level Commands VIEW...
Страница 125: ...5 DATE 5 2 DSP 5 2 ERRor 5 3 HEADer 5 4 LONGform 5 5 MODE 5 6 SETup 5 7 TIME 5 7 System Commands...
Страница 132: ...5 8 System Commands TIME...
Страница 140: ...6 8 Acquire Commands SWAVeform RESet...
Страница 152: ...7 12 Calibration Commands STATus...
Страница 192: ...11 12 Display Commands SSAVer...
Страница 202: ...12 10 Function Commands VERTical RANGe...
Страница 203: ...13 AREA 13 2 DPRinter 13 2 FACTors 13 3 IMAGe 13 3 PRINters 13 4 Hardcopy Commands...
Страница 316: ...21 12 TDR TDT Commands Rev A 05 00 and Below STIMulus...
Страница 332: ......
Страница 353: ...26 DISPlay 26 2 LOAD 26 2 SAVE 26 3 XOFFset 26 3 XRANge 26 3 YOFFset 26 3 YRANge 26 4 Waveform Memory Commands...