Appendix B: Status model
2470 High Voltage SourceMeter Instrument Reference Manual
B-16
2470-901-01 Rev. A /
May
2019
For example, if a value of 129 is read as the value of the condition register, the binary equivalent is
0000 0000 1000 0001. This value indicates that bit B0 and bit B7 are set and all other bits are cleared.
If you read a value of 12288 for the condition register, the binary equivalent is 0011 0000 0000 0000.
This value indicates that bits B12 and B13 are set.
B15
B14
B13
B12
B11
B10
B9
B8
B7
B6
B5
B4
B3
B2
B1
B0
32768
16384 8192 4096 2048 1024 512 256 128 64
32
16
8
4
2
1
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
When bit B12 (4096) and bit B13 (8192) are set (1), the decimal equivalent is 4096 + 8192 = 12,288.
Clearing registers
Registers in the status model can be cleared using commands or by instrument actions. When a
register is cleared, the bits in the register are set to 0.
The event log and all registers are cleared when instrument power is cycled.
When you read a bit from the Operation Event, Questionable Event, or Standard Event Status
Register, the entire 16-bit or 8-bit register value is returned. The event register is cleared or set to 0.
Using SCPI commands:
To clear the event registers of the Questionable Event Status Register and Operation Event Status
Register sets, Standard Event Register, and Status Byte Register, send:
*CLS
When using the SCPI interface, this command does not affect the Questionable Event Enable
Register and Operation Event Enable Register sets.
To clear the Questionable Event Status Register, the Operation Event Status Register sets, Standard
Event Register, and Status Byte Register, send:
STATus:CLEar
When using the SCPI interface, this command does not affect the Questionable Event Enable
Register or Operation Event Enable Register sets.
Using TSP commands:
To clear the event registers of the Questionable Event Status Register and Operation Event Status
Register sets, Standard Event Register, and Status Byte Register send:
*CLS
To clear the Questionable Event Status Register, the Operation Event Status Register sets, Standard
Event Register, and Status Byte Register send:
status.clear()