Network and Remote Operation
R&S
®
FSVA3000/ R&S
®
FSV3000
679
User Manual 1178.8520.02 ─ 01
13.1.7.4
Application of the Status Reporting System
The purpose of the status reporting system is to monitor the status of one or several
devices in a measuring system. To do this and react appropriately, the controller must
receive and evaluate the information of all devices. The following standard methods
are used:
●
Service request
(SRQ) initiated by the instrument
●
Serial poll
of all devices in the bus system, initiated by the controller in order to
find out who sent a SRQ and why
●
Parallel poll
of all devices
●
Query of a
specific instrument status
by means of commands
●
Query of the
error queue
Service Request
Under certain circumstances, the instrument can send a service request (SRQ) to the
controller. A service request is a request from an instrument for information, advice or
treatment by the controller. Usually this service request initiates an interrupt at the con-
troller, to which the control program can react appropriately. As evident from
, an SRQ is always 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 combines 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. In order to make use of the possibilities of the service request effectively, all bits
should be set to "1" in enable registers SRE and ESE.
The service request is the only possibility for the instrument to become active on its
own. Each controller program should cause the instrument to initiate a service request
if errors occur. The program should react appropriately to the service request.
Use of the command *OPC to generate an SRQ at the end of a sweep
1.
CALL InstrWrite(analyzer, "*ESE 1")
'Set bit 0 in the ESE (Operation
Complete)
2.
CALL InstrWrite(analyzer, "*SRE 32")
'Set bit 5 in the SRE (ESB)
3.
CALL InstrWrite(analyzer, "*INIT;*OPC")
' Generate an SRQ after
operation complete
After its settings have been completed, the instrument generates an SRQ.
A detailed example for a service request routine is provided in
Serial Poll
In a serial poll, just as with command
*STB
, the status byte of an instrument is queried.
However, the query is realized via interface messages and is thus clearly faster.
Remote Control Basics