EasyManua.ls Logo

NF ZM2371 - Page 179

NF ZM2371
255 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5.6 Command Explanation
5-52 ZM2371/ZM2372
:FORMat[:DATA] {ASCii|REAL[,64]|PACKed}
:FORMat[:DATA]?
Description: Sets/queries the data transfer format.
The set data transfer format is applied to the response message
of :DATA[:DATA]?, :FETCh?, or :READ? query.
Parameters: ASCii ASCII format (NR1/NR2/NR3, character string)
REAL[ ,64] Real number format (double-precision floating point,
64-bit binary)
PACKed Packed format (display digit fixed ASCII format)
Setting example: :FORM ASC
Sets the data transfer format to ASCII.
Response: {ASC|REAL|PACK}
Query example: :FORM?
Response example: ASC
The data transfer format is ASCII.
ASCII format
The data is expressed with characters, and respective characters are transferred with ASCII
codes.
Depending on the parameter, a numeric value is transferred in either of the following
formats:
NR1 Integer (ex. : +123)
NR2 Explicit decimal point format not having exponent (ex. : +0.12345)
NR3 Explicit decimal point format having exponent (ex. : +123456E-07)
When multiple numeric values are transferred, numeric values are separated with a comma
(,). At the end, a message terminator (for instance, LF^EOI) is added.
Real number format
The data is transferred in the 64-bit double-precision floating point format in accordance
with IEEE 754.
When multiple numeric values are transferred, all data are expressed in the
double-precision floating point format.
Repeat
# <number of digits> <number of bytes> <data> <message terminator>
# # is attached at the leading position
<number of digits> Number of digits of character string that ASCII
indicates the number of bytes (1 byte)
<number of bytes> Number of bytes of all data (multiples of 8)
<data> Double-precision floating point (8 bytes) Binary
Sign 1 bit, exponential part 11 bits, decimal part 52 bits from
higher-order bit.
Data are transferred from most significant byte toward lower bytes in
order.
When multiple numeric data are transferred, they are fed successively without separating
them with a comma (,).
At the end, a message terminator is added. Note that a message terminator is added at the
end, different from the definite length arbitrary block specified by the IEEE 488.2 Standard.

Table of Contents