![background image](http://html1.mh-extra.com/html/rands/esu-series/esu-series_operating-manual_3138875436.webp)
Operating Manual 1302.6163.12 - 03
5.31
R&S ESU
Remote Control – Basics
Status Reporting System
5.7.4
Application of the Status Reporting Systems
In order to be able to effectively use the status reporting system, the information
contained there must be transmitted to the controller and further processed there.
There are several methods which are represented in the following. Detailed program
examples are to be found in chapter
“Remote Control – Programming Examples”
5.7.4.1
Service Request, Making Use of the Hierarchy Structure
Under certain circumstances, the instrument can send a service request (SRQ) to
the controller. Usually this service request initiates an interrupt at the controller, to
which the control program can react with corresponding actions. As evident from
, an SRQ is always initiated if one or several of bits 2, 3, 4, 5 or 7 of the sta-
tus byte are set and enabled in the SRE. Each of these bits combines the informa-
tion of a further register, the error queue or the output buffer. The corresponding
setting of the ENABle parts of the status registers can achieve that arbitrary bits in
an arbitrary status register initiate an SRQ. In order to make use of the possibilities
of the service request, all bits should be set to "1" in enable registers SRE and ESE.
Examples (cf.
and chapter
“Remote Control – Programming Examples”
):
Use of command "*OPC" to generate an SRQ at the end of a sweep.
➢
CALL IBWRT(analyzer%, "*ESE 1")
Set bit 0 in the ESE (Operation
Complete)
➢
CALL IBWRT(analyzer%, "*SRE 32")
Set bit 5 in the SRE (ESB)
After its settings have been completed, the instrument generates an SRQ.
The SRQ is the only possibility for the instrument to become active on its own. Each
controller program should set the instrument in a way that a service request is initi-
ated in the case of malfunction. The program should react appropriately to the ser-
vice request. A detailed example for a service request routine is to be found in
chapter
“Remote Control – Programming Examples”
5.7.4.2
Serial Poll
In a serial poll, just as with command "*STB", the status byte of an instrument is que-
ried. However, the query is realized via interface messages and is thus clearly
faster. The serial-poll method has already been defined in IEEE 488.1 and used to
be the only standard possibility for different instruments to poll the status byte. The
method also works with instruments which do not adhere to SCPI or IEEE 488.2.
The VISUAL BASIC command for executing a serial poll is "IBRSP()". Serial poll is
mainly used to obtain a fast overview of the state of several instruments connected
to the GPIB.
5.7.4.3
Parallel Poll
In a parallel poll, up to eight instruments are simultaneously requested by the con-
troller by means of a single command to transmit 1 bit of information each on the
data lines, i.e., to set the data line allocated to each instrument to logically "0" or "1".
By analogy to the SRE register which determines under which conditions an SRQ is
generated, there is a parallel poll enable register (PPE) which is ANDed with the
STB bit by bit as well considering bit 6. The results are ORed, the result is then sent
(possibly inverted) as a response in the parallel poll of the controller. The result can
also be queried without parallel poll by means of command "*IST".
Содержание ESU Series
Страница 1: ...R S ESU EMI Test Receiver Operating Manual 1302 6163 12 03 Test Measurement Operating Manual...
Страница 25: ......
Страница 27: ...R S ESU Putting into Operation 1 2 Operating Manual 1302 6163 12 03...
Страница 29: ...R S ESU Getting Started 2 2 Operating Manual 1302 6163 12 03...
Страница 31: ...R S ESU Manual Operation 3 2 Operating Manual 1302 6163 12 03...
Страница 349: ...R S ESU Instrument Functions Basic Settings 4 318 Operating Manual 1302 6163 12 03...
Страница 405: ...R S ESU Instrument Functions User Port 4 374 Operating Manual 1302 6163 12 03...
Страница 439: ...R S ESU Remote Control Basics Status Reporting System 5 34 Operating Manual 1302 6163 12 03...
Страница 821: ...R S ESU Remote Control Programming Examples More Complex Programming Examples 7 32 Operating Manual 1302 6163 12 03...
Страница 841: ...R S ESU Error Messages Device Specific Messages 9 10 Operating Manual 1302 6163 12 03...
Страница 854: ...Operating Manual 1302 6163 12 03 10 13 R S ESU...
Страница 855: ...R S ESU 10 14 Operating Manual 1302 6163 12 03...