Model 2701 User’s Manual
Status Structure
11-7
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
example, 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 (see
Table 11-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
Table 11-2
Data format command 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
2701-900-01.book Page 7 Wednesday, August 3, 2011 9:43 AM
Содержание 2701
Страница 344: ...12 CommonCommands 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Страница 352: ...13 SCPISignalOriented MeasurementCommands 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Страница 366: ...15 SCPIReferenceTables 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Страница 393: ...A Specifications 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Страница 399: ...B Model7700ConnectionGuide 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Страница 410: ...C StatusandErrorMessages 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Страница 417: ...D SignalProcessing SequenceandDataFlow 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Страница 430: ...E MeasurementConsiderations 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Страница 450: ...G KE2700InstrumentDriver Examples 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...