Setting And Querying The Status Register - Keysight N9320B Programmer's Manual

Spectrum analyzer
Hide thumbs Also See for N9320B:
Table of Contents

Advertisement

Status Registers
Status Register System

Setting and Querying the Status Register

Each bit in a register is represented by a numerical value based on
its location. This number is sent with the command to enable a
particular bit. To enable more than one bit, send the sum of all of
the bits involved.
For example, to enable bit 0 and bit 6 of the standard event status
register, you would send the command *ESE 65 (1 + 64).
The results of a query are evaluated in a similar way. If the *STB?
command returns a decimal value of 140, (140 = 128 + 8 + 4) then
bit 7 is true, bit 3 is true, and bit 2 is true.
29

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents