
14-26
SCPI Command Reference
Model 2520 User’s Manual
The “#0” header is not affected by this command. The header is always
sent at the beginning of the data string for each measurement conver-
sion.
The ASCII data format can only be sent in the normal byte order. The
SWAPped selection is simply ignored when the ASCII format is
selected.
NOTE
The SWAPped byte order must be used when transmitting binary data to any
IBM PC compatible computer.
Status register format
SREGister <name>
:FORMat:SREGister <name>
Set data format for reading status registers
Parameters
<name> =
ASCii
Decimal format
Hexadecimal
Hexadecimal format
OCTal
Octal format
BINary
Binary format
Query
:SREGister?
Query format for reading status registers
Description
Query commands are used to read the contents of the status event regis-
ters. This command is used to set the response message format for those
query commands.
When a status register is queried, the response message is a value that
indicates which bits in the register are set. For example, if bits B5, B4,
B2, B1, and B0 of a register are set (110111), the following values will
be returned for the selected data format:
ASCii
55
(decimal value)
Hexadecimal
#H37
(hexadecimal value)
OCTal
#Q67
(octal value)
BINary
#B110111
(binary value)
See
“STATus subsystem,” page 14-49
, for more informa-
tion.
Summary of Contents for 2520
Page 250: ...A Specifications ...
Page 254: ...B StatusandErrorMessages ...
Page 262: ...C DataFlow ...
Page 266: ...D IEEE 488BusOverview ...
Page 281: ...E IEEE 488andSCPI ConformanceInformation ...
Page 285: ...F MeasurementConsiderations ...
Page 308: ...G GPIB488 1Protocol ...
Page 312: ...H ExamplePrograms ...
Page 317: ...I ContinuousPulseMode ...