High Voltage SourceMeter Instrument Reference Manual Appendix B:
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 t
he
dec
imal 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
Binary value
Decimal value
Weight
Bit position
Binary value
1000
0000
0000
0100
0000
0000
0010
0000
0000
0001
0000
0000
1000
0000
0000
0100
0000
0000
0010
0000
0000
0001
0000
0000
Decimal value
Weight