EasyManua.ls Logo

Keithley 6482 - Reading Registers

Keithley 6482
350 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6482-901-01 Rev. A / August 2012 Return to Section Topics 13-5
Model 6482 Dual-Channel Picoammeter / Voltage Source Reference Manual Section 13: Status Structure
Figure 13-2
16-bit status register
The <NDN> (nondecimal numeric) parameter type is used to send nondecimal values. These
values require a header (#B, #H, or #Q) to identify the data format being sent. The letter in the
header can be upper or lower case. The <NRf> (numeric representation format) parameter type is
used to send decimal values, and does not use a header. The following examples show the proper
parameter syntax for setting bits B5, B3, and B2:
#b101100 Binary format (<NDN> parameter type)
#h2C Hexadecimal format (<NDN> parameter type)
#q54 Octal format (<NDN> parameter type)
44 Decimal format (<NRf> parameter type)
Valid characters for the non-decimal parameter values are shown as follows:
Reading registers
Any register in the status structure can be read by using the appropriate query (?) command. The
following explains how to interpret the returned value (response message). The actual query
commands are covered later in this section (Table 13-3 through Table 13-7).
The response message will be a value that indicates which bits in the register are set. That value
(if not already binary) must be converted to its binary equivalent. For example, for a binary value of
100101, bits B5, B2, and B0 are set.
The returned value can be in the binary, decimal, hexadecimal, or octal format. The
FORMat:SREGister command is used to select the data format for the returned value (Table 13-2).
<NDN> format Valid characters
Binary
Hexadecimal
Octal
1 and 0
0 through 9 and A through F
0 through 7
(2
7
)(2
6
)(2
5
)(2
4
)(2
3
)
(2
2
)
(2
1
)(2
0
)
(2
15
)(2
14
)
(2
13
)(2
12
)(2
11
)(2
10
)(2
9
)(2
8
)
Bit position
Binary value
Decimal
Weights
B7
B6
B5
B4
B3
B2
B1 B0
0/1
0/1 0/10/1 0/1 0/10/10/1
128
64
32
16
8 4
2
1
B15 B14 B13 B12 B11 B10 B9 B8
32768
16384
8192
4096 2048 1024 512 256
0/1
0/1 0/10/1 0/1 0/10/10/1
Bit position
Binary value
Decimal
Weights
B. Bits 8 through 15
A. Bits 0 through 7

Table of Contents

Related product manuals