Agilent Technologies N8201A Service Manual Page 101

  • Download
  • Add to my manuals
  • Print
  • Page
    / 332
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 100
Programming the Status Register System 4
Agilent N8211A/N8212A Performance Upconverter Synthetic Instrument Module, 250 kHz to 20 / 40 GHz 101
Status Register Bit Values
Each bit in a register is represented by a decimal value based on its location in the register
(see Tabl e 2 ).
To enable a particular bit in a register, send its value with the SCPI command. Refer to
the N8211A/N8212A’s SCPI command listing at the end of this book for more
information.
To enable more than one bit, send the sum of all the bits that you want to enable.
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 give a decimal
value of 65.
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.
Bit 15 is not used and is always set to zero.
Table 2 Status Register Bit Decimal Values
Decimal
Value
Always 0
16384
8192
4096
2048
1024
512
256
128
64
32
16
8
4
2
1
Bit Number 15 14 13 12 11 10 9876543210
Page view 100
1 2 ... 96 97 98 99 100 101 102 103 104 105 106 ... 331 332

Comments to this Manuals

No comments