Model 2461 Interactive SourceMeter® Instrument Reference Manual
Appendix C: Status model
2461-901-01 A/November 2015
C-15
Reading the registers
You can read any register in the status model. The response is a decimal value that indicates which
bits in the register are set. See
(on page C-16) for information on how to
convert the decimal value to bits.
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))