Model 6517B Electrometer Reference Manual
Section 14: SCPI command reference
6517B-901-01 Rev. C / August 2015
14-51
[:DATA] <type>[,length]
This command specifies the data format
Usage
:FORMat[:DATA] <type>[,<length>]
[:DATA]?
<type>
ASCii
: ASCII format
REAL
: IEEE754 single precision format
REAL
: IEEE754 double precision format
SREal
: IEEE754 single precision format
DREal
: IEEE754 double precision format
<length>
32 or 64; optional for
REAL
; default 32, single precision format
Details
When using the
ASCII, SREal
, or
DREal
parameter, a
<length>
parameter is not required.
This command is used to select the data format for transferring readings over the bus. For every
reading conversion, the data string sent over the bus contains the elements specified by the
:ELEMents
command. The specified elements are sent in a particular order.
The ASCII data format is in a direct readable form for the operator. Most BASIC languages easily
convert ASCII mantissa and exponent to other formats. However, some speed is compromised to
accommodate the conversion. The figure below shows the ASCII format that includes all the data
elements.
Figure 113: ASCII data format