EasyManua.ls Logo

Rohde & Schwarz CMW500 1201.0002K50 - Service Request

Rohde & Schwarz CMW500 1201.0002K50
291 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
176User Manual 1173.9463.02 ─ 02
6.6.4.1 Service Request
The measuring device can send a service request (SRQ) to the controller. Usually this
service request causes an interrupt, to which the control program can react appropriately.
It is also possible to wait until an SRQ is generated, see *SRQ? in chapter 7.1, "Common
Commands", on page 193).
Initiating an SRQ
As shown in section Overview of Status Registers, an SRQ is initiated if one or several
of bits 2, 3, 4, 5 or 7 of the status byte are set and enabled in the SRE. Each of these bits
summarizes the information of a further register, the error queue or the output buffer.
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
Status Reporting System

Table of Contents

Related product manuals