![Rohde & Schwarz EX-IQ-BOX Скачать руководство пользователя страница 248](http://html1.mh-extra.com/html/rohde-and-schwarz/ex-iq-box/ex-iq-box_user-manual_1477982248.webp)
Remote Control Basics
R&S
®
EX-IQ-BOX
233
User Manual 1409.5570.32 ─ 05
8.3.1 Preventing Overlapping Execution
To prevent an overlapping execution of commands, one of the commands
*OPC
,
*OPC?
or
*WAI
can be used. All three commands cause a certain action only to be carried
out after the hardware has been set. By suitable programming, the controller can be
forced to wait for the corresponding action to occur.
Command
Action
Programming the controller
*OPC
Sets the Operation Complete bit in the ESR
after all previous commands have been exe-
cuted.
Setting bit 0 in the ESE
Setting bit 5 in the SRE
Waiting for service request (SRQ)
*OPC?
Stops command processing until 1 is
returned. This is only the case after the Oper-
ation Complete bit has been set in the ESR.
This bit indicates that the previous setting has
been completed.
Sending *OPC? directly after the command
whose processing should be terminated
before other commands can be executed.
*WAI
Stops further command processing until all
commands sent before *WAI have been exe-
cuted.
Sending *WAI directly after the command
whose processing should be terminated
before other commands are executed.
Command synchronization using
*WAI
or
*OPC?
appended to an overlapped command
is a good choice if the overlapped command takes only little time to process. The two
synchronization techniques simply block overlapped execution of the command.
For time consuming overlapped commands it is usually desirable to allow the controller
or the instrument to do other useful work while waiting for command execution. Use one
of the following methods:
*OPC with a service request
1. Set the OPC mask bit (bit no. 0) in the ESE:
*ESE 1
2. Set bit no. 5 in the SRE:
*SRE 32
to enable ESB service request.
3. Send the overlapped command with
*OPC
4. Wait for a service request
The service request indicates that the overlapped command has finished.
*OPC? with a service request
1. Set bit no. 4 in the SRE:
*SRE 16
to enable MAV service request.
2. Send the overlapped command with
*OPC?
3. Wait for a service request
The service request indicates that the overlapped command has finished.
Command Sequence and Synchronization
Содержание EX-IQ-BOX
Страница 147: ...Protocol Settings R S EX IQ BOX 132 User Manual 1409 5570 32 05 CPRI...
Страница 391: ......