Reading The Registers - Keithley 2450 Reference Manual

Interactive sourcemeter instrument
Table of Contents

Advertisement

Appendix C: Status model

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
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))
C-14
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Understanding bit settings
(on page C-15) for information on how to
2450-901-01 Rev. B/September 2013

Advertisement

Table of Contents
loading

Table of Contents