Language Reference

RQS

Description The RQS command enables the service-request mode. RQS de￿nes the service-request mask that selects which bits of the status-byte register

can generate a service request. Once RQS is executed, computer service is requested whenever any of the selected service conditions occur. For example, executing RQS 2 means that service is requested whenever a message is present in the message area. The analyzer requests service by setting bit 2 in the status-byte register true. Bit 6 of the status-byte register is set whenever the service-request condition is met. Bit 6 in the service-request mask does not need to be set in order for a service-request to occur. The service-request mask is shown in the following table.

Spectrum-Analyzer Service-Request Mask

Bit Number

Decimal

Spectrum-Analyzer

 

 

 

 

 

Description

 

 

 

 

 

Equivalent

State

 

 

 

 

 

 

 

 

 

 

 

7

128

00

Unused.

 

 

 

 

 

 

 

 

 

6

64

RQS

Does not need

to be set in order for a

service-request

to occur.

5

32

ERROR PRESENT

Set

to

request

service when error register contains an error.

4

16

COMMAND COMPLETE

Set

to

request

service at

completion

of

command

execution.

3

8

00

Unused.

 

 

 

 

 

 

 

 

 

2

4

END OF SWEEP

Set

to

request

service

at

completion

of

sweep.

 

 

 

1

2

MESSAGE

Set

to

request

service when messages appear, such as UNCAL

 

 

 

(uncalibrated),

UNCOR

(uncorrected),

or

power

bar

zeroing.

0

1

TRIGGER ARMED

Set

to request

service

when analyzer

is

ready

to

receive

a

 

 

 

sweep

trigger .

 

 

 

 

 

 

 

 

RQS is set to zero when power is applied to the spectrum analyzer or when it is cleared via HP-IB. (For example, the HP BASIC command, CLEAR 723, clears the optical spectrum analyzer when it is at HP-IB address 23, interface 7.)

Query Response

See Also SRQ, STB, CLS

7-428