15-6
Status Structure
2400 Series SourceMeter
®
User’s Manual
The <NDN> (non-decimal numeric) parameter type is used to send non-decimal values.
These values require a header (#B, #H or #Q) to identify the data format being sent. The
letter in the header can be upper or lower case. The <NRf> (numeric representation for-
mat) parameter type is used to send decimal values, and does not use a header. The follow-
ing examples show the proper parameter syntax for setting Bits B5, B3, and B2:
#b101100
Binary format (<NDN> parameter type)
#h2C
Hexadecimal format (<NDN> parameter type)
#q54
Octal format (<NDN> parameter type)
44
Decimal format (<NRf> parameter type)
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. (See
Table 15-3
and
Table 15-4
through
Table 15-7
.)
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 15-2
).
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
Valid characters for the non-decimal parameter values are shown as follows:
<NDN> format
Valid characters
Binary
Hexadecimal
Octal
1s and 0s
0 through 9 and A through F
0 through 7
Table 15-2
Data format commands for reading status registers
Command
Description
Default
:FORMat:SREGister <name>
Select data format for reading status registers:
<name> = ASCii
Decimal format
HEXadecimal
Hexadecimal format
OCTal
Octal format
BINary
Binary format
ASCii
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Summary of Contents for SourceMeter 2400
Page 589: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 591: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 592: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...