R&S SMB100A Operating Manual page 283

Rf and microwave signal generator
Hide thumbs Also See for SMB100A:
Table of Contents

Advertisement

®
R&S
SMB100A
Table 6-2: Synchronization using *OPC, *OPC? and *WAI
Com-
mand
*OPC
*OPC?
*WAI
Command synchronization using *WAI or *OPC? is a good choice if the overlapped
command takes only little time to process. The two synchronization commands simply
block overlapped execution of the command. Append the synchronization command to
the overlapping command, for example:
SINGle; *OPC?
For time consuming overlapped commands you can allow the controller or the instru-
ment to do other useful work while waiting for command execution. Use one of the fol-
lowing 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.
Event Status Register (ESE)
1. Set the OPC mask bit (bit no. 0) in the ESE: *ESE 1
2. Send the overlapped command without *OPC, *OPC? or *WAI
Operating Manual 1407.0806.32 ─ 21
Action
Sets the Operation Complete bit in the ESR
after all previous commands have been exe-
cuted.
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.
Stops further command processing until all
commands sent before *WAI have been exe-
cuted.
Remote Control Basics
Command Sequence and Synchronization
Programming the controller
Setting bit 0 in the ESE
Setting bit 5 in the SRE
Waiting for service request (SRQ)
Sending *OPC? directly after the command
whose processing should be terminated
before other commands can be executed.
Sending *WAI directly after the command
whose processing should be terminated
before other commands are executed.
268

Advertisement

Table of Contents
loading

Table of Contents