R&S PR100 User Manual
be set to "1" in enable registers SRE and ESE. Only those bits need to be set
that represent the situations for which a service request must be received.
Examples (also see Section 0):
Use command "*OPC" to generate an SRQ
• Set bit 0 in the ESE (Operation Complete)
• Set bit 5 in the SRE
After completion of the settings, the device generates an SRQ. For SCPI over
TCP/IP, this is a text-response “&SRQ<CR><LF>”, where <CR> is a carriage-
return, and <LF> is a line-feed. A C-type string would read as: “&SRQ\r\n”.
Indication of a signal during a sweep by means of an SRQ at the host
• Set bit 7 in the SRE (summary bit of the STATus:OPERation register)
• Set bit 3 (SWEeping) in the STATus:OPERation:ENABle.
• Set bit 3 in the STATus:OPERation:NTRansition so that the change of
SWEeping-bit 3 from 0 to 1 is also recorded in the EVENt section.
• Set bit 0 in STATus:OPERation:SWEeping:ENABle
• Set bit 0 in STATus:OPERation:SWEeping:PTRansition so that the
change of hold-bit 0 from 0 to 1 is also recorded in the EVENt section.
The device generates an SRQ after a signal has been found.
Once an SRQ has been received, the contents of the status-byte register can
be polled. For SCPI over TCP/IP, polling is done by sending the string
“&POL”. The PR100 device then answers with the string
“&<value><CR><LF>”, where <value> is the decimal value of the contents of
the STB.
The SRQ is the only possibility for the device to become active on its own.
Each host program should set the device so that a service request is initiated
in case of malfunction. The program should react appropriately to the service
request.
9.2.2.2 Query by means of commands
Each part of every status register can be read by means of queries. Only one
number is returned which represents the bit pattern of the register queried.
The format of the number can be set by the FORMat:SREGister command.
Queries are usually used after an SRQ in order to obtain more detailed
information on the cause of the SRQ.
9.2.2.3 Error-queue query
Each error state in the device results in an entry in the error queue. The
entries of the error queue are detailed plain-text error messages which can be
queried by the command SYSTem:ERRor?. Each call of SYSTem:ERRor?
provides one entry from the error queue. If no error messages are stored
there anymore, the device 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. Especially during the test phase of a controller program the error
queue should be queried regularly since faulty commands from the controller
to the device are recorded there as well.