Reading Registers - Keithley 708B Reference Manual

Switching matrix
Hide thumbs Also See for 708B:
Table of Contents

Advertisement

Appendix C: Status model
16-bit status register
Figure 104: 16-bit status register
Bit Position
Binary Value
Decimal
Weights
A. Bits 0 through 7
Bit Position
Binary Value
Decimal
Weights
B. Bits 8 through 15
When using a numeric parameter, registers are programmed by including the appropriate <mask>
value, for example:
*ese 1169
status.standard.enable = 1169
To convert from decimal to binary, use the information shown in the above figure. For example, to set
bits B0, B4, B7, and B10, a decimal value of 1169 would be used for the mask parameter (1169 = 1 +
16 + 128 + 1024).

Reading registers

Any register in the status structure can be read either by sending the common command query
(where applicable), or by including the script command for that register in either the print() or
print(tostring()) command. The print() command returns a numeric value, while the
print(tostring()) command returns the string equivalent. For example, any of the following
commands requests the Service Request Enable register value:
*SRE?
print(tostring(status.request_enable))
print(status.request_enable)
The response message will be a decimal value that indicates which bits in the register are set. That
value can be converted to its binary equivalent using the information in
transition registers
Bits B5, B2, and B0 are set.
C-14
B7
B6
B5
B4
0/1
0/1
0/1
0/1
128
64
32
16
7
6
5
(2
)
(2
)
(2
)
(2
B15
B14
B13
B12
0/1
0/1
0/1
0/1
32768 16384
8192
4096 2048 1024
15
14
13
12
(2
)
(2
)
(2
)
(2
(on page C-13). For example, for a decimal value of 37 (binary value of 100101),
Models 707B and 708B Switching Matrix Reference Manual
B3
B2
B1
0/1
0/1
0/1
8
4
2
2
4
3
1
(2
)
)
(2
)
(2
)
B11
B10
B9
0/1
0/1
0/1
512
11
10
9
)
(2
)
(2
)
(2
)
B0
0/1
1
0
(2
)
B8
0/1
256
8
(2
)
Programming enable and
707B-901-01 Rev. A / August 2010

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

707b

Table of Contents