Language Reference

STB

Executing STB? always sets the command-complete bit. For this reason, STB cannot be used to monitor the completion of commands. Refer to the DONE command.

STB must be used as either a query or as a source in another analyzer- command function. Form a query by ending the STB statement with ?. When used as a query, STB gives the decimal equivalent of the status-byte register to the computer. Use STB as a source by incorporating the STB statement into the source of any spectrum-analyzer command having prede￿ned function in its syntax diagram. When STB is used as a source, the decimal equivalent is used for operation by the command that contains STB.

Spectrum-Analyzer Status-Byte Register

Bit Number

Decimal

Spectrum-Analyzer

 

 

 

 

 

 

Description

 

 

Equivalent

State

 

 

 

 

 

 

 

 

 

7

128

 

Unused.

 

 

 

 

 

 

 

6

64

RQS

Set

when status-b yte register

bit and corresponding bit

in

 

 

 

service-request

mask

are

true.

Indicates service-request

has

 

 

 

occurred.

 

 

 

 

 

 

5

32

ERROR PRESENT

Set

when error

register

contains an error.

 

4

16

COMMAND COMPLETE

Set

at

completion

of command

execution.

 

3

8

 

Unused.

 

 

 

 

 

 

 

2

4

END OF SWEEP

Set

at

completion

of

sweep.

 

 

1

2

MESSAGE

Set

when messages

appear, such as UNCAL (uncalibrated),

 

 

 

UNCOR

(uncorrected),

or

power bar zeroing.

 

0

 

TRIGGER ARMED

Set

when analyzer

is

ready to

receive a sweep trigger .

 

1

 

Query Response

See Also CLS, SRQ, RQS

7-461