EasyManua.ls Logo

Rohde & Schwarz CMW500 - Page 193

Rohde & Schwarz CMW500
323 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Remote Control
R&S
®
CMW500
177User Manual 1173.9463.02 ─ 06
The ENABle parts of the status registers can be set such that arbitrary bits in an arbitrary
status register initiate an SRQ. To use the possibilities of the service request effectively,
all bits in the enable registers SRE and ESE should be set to "1".
Example: Use *OPC to generate an SRQ
1. Set bit 0 in the ESE (Operation Complete).
2. Set bit 5 in the SRE (ESB).
3. Insert *OPC in the command sequence
As soon as all commands preceding *OPC have been completed, the instrument gener-
ates an SRQ.
Example: Indicate measurement state via SRQ
In this example the reporting path is enabled for a specific measurement state, so that
an SRQ will be generated when this state is reached. Then the instrument is commanded
to wait until an SRQ is generated.
1. Enable reporting for the state RDY of the GPRF power measurement:
STATus:OPERation:TASK:A:GPRF:MEASurement:POWer:XESRq (RDY)
2. Start the GPRF measurement:
INITiate:GPRF:MEASurement:POWer
3. Wait until the measurement reaches the state RDY and an SRQ is generated. If no
SRQ has been generated after 1 minute (60000 ms), continue nevertheless:
*SRQ? 60000
Evaluate the returned value: 0 indicates that a timeout occurred, 1 indicates that an
SRQ was generated.
The following steps show an alternative way to achieve the same result without SRQ
generation.
1. Start the GPRF measurement:
INITiate:GPRF:MEASurement:POWer
2. Wait until the measurement reaches the state RDY. If the state has not been reached
after 1 minute (60000 ms), continue nevertheless:
STAT:OPER:TASK:A:GPRF:MEAS:POW:XWEVent? (RDY),60000
Evaluate the returned value: () indicates that a timeout occurred, (RDY) indicates that
the state has been reached.
The SRQ is the only possibility for the instrument to become active on its own. Each
controller program should set the instrument such that a service request is initiated in the
case of malfunction. The program should react appropriately to the service request.
Status Reporting System

Table of Contents

Related product manuals