Reading Registers - Keithley 2500 User Manual

Photodiode meter
Hide thumbs Also See for 2500:
Table of Contents

Advertisement

14-6
Status Structure
format) parameter type is used to send decimal values, and does not use a header. The
following examples show the proper parameter syntax for setting Bits B5, B3, and B2:
#b101100
#h2C
#q54
44
Valid characters for the non-decimal parameter values are shown as follows:
<NDN> format
Binary
Hexadecimal
Octal

Reading registers

Any register in the status structure can be read by using the appropriate query (?) com-
mand. The following explains how to interpret the returned value (response message). The
actual query commands are covered later in this section
The response message will be a value that indicates which bits in the register are set. That
value (if not already binary) will have to be converted to its binary equivalent. For exam-
ple, for a binary value of 100101, bits B5, B2, and B0 are set.
The returned value can be in the binary, decimal, hexadecimal, or octal format. The
FORMat:SREGister command is used to select the data format for the returned value
(Table
For non-decimal formats, one of the following headers will accompany the returned value
to indicate which format is selected:
#B = Header for binary values
#H = Header for hexadecimal values
#Q = Header for octal values
Table 14-2
Data format commands for reading status registers
Command
:FORMat:SREGister <name>
Test Equipment Depot - 800.517.8431 - 99 Washington Street Melrose, MA 02176
TestEquipmentDepot.com
Binary format (<NDN> parameter type)
Hexadecimal format (<NDN> parameter type)
Octal format (<NDN> parameter type)
Decimal format (<NRf> parameter type)
Valid characters
1s and 0s
0 through 9 and A through F
0 through 7
14-2).
Select data format for reading status registers:
<name> = ASCii
Models 2500 and 2502 User's Manual
Description
Decimal format
HEXadecimal
Hexadecimal format
OCTal
Octal format
BINary
Binary format
(Table 14-3
through
Table
Default
ASCii
14-7).

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

2502

Table of Contents