Status Register Bit Values; Example: Enable A Register; Example: Query A Register - Keysight Technologies X-Series Programming Manual

Signal generators
Hide thumbs Also See for X-Series:
Table of Contents

Advertisement

Programming the Status Register System

Status Register Bit Values

Status Register Bit Values
Each bit in a register is represented by a decimal value based on its location in
the register (see
— To enable a particular bit in a register, send its value with the SCPI
— To enable more than one bit, send the sum of all the bits that you want to
— To verify the bits set in a register, query the register.

Example: Enable a Register

To enable bit 0 and bit 6 of the Standard Event Status Group's Event Register:
1. Add the decimal value of bit 0 (1) and the decimal value of bit 6 (64) to
2. Send the sum with the command: *ESE 65.

Example: Query a Register

To query a register for a condition, send a SCPI query command. For example,
if you want to query the Standard Operation Status Group's Condition Register,
send the command:
STATus:OPERation:CONDition?
If bit 7, bit 3 and bit 2 in this register are set (bits = 1) then the query will return
the decimal value 140. The value represents the decimal values of bit 7, bit 3
and bit 2: 128 + 8 + 4 = 140.
Table 4-1
Decimal
Value
Bit Number
Bit 15 is not used and is always set to zero.
172
Table
4-1).
command. Refer to the signal generator's SCPI command listing for more
information.
enable.
give a decimal value of 65.
Status Register Bit Decimal Values
15
14
13
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
12
11
10
9
8
7
6
5
4
3
2
1
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents