![Rohde & Schwarz Cable Rider ZPH User Manual Download Page 280](http://html1.mh-extra.com/html/rohde-and-schwarz/cable-rider-zph/cable-rider-zph_user-manual_1477802280.webp)
Remote Commands
R&S
®
Cable Rider ZPH
245
User Manual 1321.0950.02 ─ 03
ter 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.
Example:
Use of the command *OPC to generate an SRQ at the end of a sweep
●
CALL InstrWrite(analyzer, "*ESE 1")
'Set bit 0 in the ESE (Operation Complete)
●
CALL InstrWrite(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 initiated
in the case of malfunction. The program should react appropriately to the service
request.
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. 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 controller.
Query by Means of Commands
Each part of any status register can be read by means of queries. The individual com-
mands are listed in the description of the STATus Subsystem. The returned value is
always a number that represents the bit pattern of the queried register. This number is
evaluated by the controller program.
Queries are usually used after an SRQ in order to obtain more detailed information on
the cause of the SRQ.
Error Queue Query
Each error state in the instrument leads to an entry in the error queue. The entries of
the error queue are detailed plain-text error messages that can be displayed via man-
ual operation using the setup menu or queried via remote control using the command
SYSTem:ERRor?
. Each call of
SYSTem:ERRor?
provides one entry from the error
queue. If no error messages are stored there any more, the instrument responds with
0, "No error".
The error queue should be queried after every SRQ in the controller program as the
entries describe the cause of an error more precisely than the status registers. Espe-
cially in the test phase of a controller program the error queue should be queried regu-
Remote Control - Commands