2470 High Voltage SourceMeter Instrument Reference Manual
Appendix B: Status model
2470-901-01 Rev. A /
May
2019
B-15
Using SCPI commands:
If you are using SCPI, you use the query commands in the STATus subsystem and common
commands to read registers.
Using TSP commands:
If you are using TSP, you print the TSP command to read the register. You can use either
print()
,
which returns the decimal value, or
print(tostring())
, which returns the string equivalent of the
decimal value.
You can also send the common commands to read the register.
For example, you can send any one of the following commands to read the Status Enable Register of
the Standard Event Register:
print(status.standard.enable)
*ese?
print(tostring(status.standard.enable))
Understanding bit settings
When you write to or read a status register, you can use binary, decimal, or hexadecimal values to
represent the binary values of the bit states. When the value is converted to its binary equivalent, you
can determine which bits are set on or clear. Zero (0) indicates that all bits are clear.
In the 2470, the least significant bit is always bit B0. The most significant bit differs for each register,
but in most cases is either bit B7 or bit B15.
Bit position
B7
B6
B5
B4
B3
B2
B1
B0
Binary value
1000
0000
0100
0000
0010
0000
0001
0000
1000
0100
0010
0001
Decimal value
128
64
32
16
8
4
2
1
Weight
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
Bit position
B15
B14
B13
B12
B11
B10
B9
B8
Binary value
1000
0000
0000
0000
0100
0000
0000
0000
0010
0000
0000
0000
0001
0000
0000
0000
1000
0000
0000
0100
0000
0000
0010
0000
0000
0001
0000
0000
Decimal value
32768
16384
8192
4096
2048
1024
512
256
Weight
2
15
2
14
2
13
2
12
2
11
2
10
2
9
2
8