Format.data - Keithley DMM7510 Reference Manual

7 1/2 digit graphical sampling multimeter
Hide thumbs Also See for DMM7510:
Table of Contents

Advertisement

Section 8: TSP command reference

format.data

This attribute sets the data format for data that is printed using the printnumber() and printbuffer()
functions.
Type
TSP-Link accessible
Attribute (RW)
No
Usage
value = format.data
format.data = value
value
Details
You can control the precision of numeric values with the format.asciiprecision attribute. If
format.REAL32 or format.REAL64 is selected, you can select the byte order with the
format.byteorder attribute.
The IEEE Std 754 binary formats use four bytes for single-precision values and eight bytes for
double-precision values.
When data is written with any of the binary formats, the response message starts with #0 and ends
with a new line. When data is written with the ASCII format, elements are separated with a comma
and space.
Example
format.asciiprecision = 10
x = 3.14159265
format.data = format.ASCII
printnumber(x)
format.data = format.REAL64
printnumber(x)
Also see
format.asciiprecision
format.byteorder
printbuffer()
(on page 8-232)
printnumber()
8-216
Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
Affected by
Restore configuration
Instrument reset
Power cycle
The format to use for data, set to one of the following values:
ASCII format: format.ASCII
Single-precision IEEE Std 754 binary format: format.REAL32
Double-precision IEEE Std 754 binary format: format.REAL64
(on page 8-214)
(on page 8-215)
(on page 8-234)
Where saved
Default value
Configuration script
format.ASCII
Output a number represented by x in ASCII
using a precision of 10, then output the
same number in binary using double
precision format.
Output:
3.141592650e+00
#0ñÔÈSû!
DMM7510-901-01 Rev. B / May 2015
@

Advertisement

Table of Contents
loading

Table of Contents