Format.data - Keithley 708B Reference Manual

Switching matrix
Hide thumbs Also See for 708B:
Table of Contents

Advertisement

Section 7: Command reference
Usage
order = format.byteorder
format.byteorder = order
order
Details
This attribute selects the byte order in which data is written when printing data values with the printnumber()
and printbuffer() functions. The byte order attribute is only used with the format.SREAL, format.REAL,
format.REAL32, and format.REAL64 data formats.
format.NORMAL, format.BIGENDIAN, and format.NETWORK select the same byte order. format.SWAPPED
and format.LITTLEENDIAN select the same byte order. Selecting which to use is a matter of preference.
Select the format.SWAPPED or format.LITTLEENDIAN byte order when sending data to a computer with a
Microsoft Windows operating system.
Binary formats are not intended to be human readable.
Example
x = 1.23
format.data = format.REAL32
format.byteorder = format.LITTLEENDIAN
printnumber(x)
format.byteorder = format.BIGENDIAN
printnumber(x)
Also see
format.asciiprecision

format.data

(on page 7-94)
printbuffer()
(on page 7-138)
printnumber()
format.data
This attribute sets the data format for data printed using the printnumber() and printbuffer() functions.
Type
TSP-Link accessible
Attribute (RW)
No
7-94
Byte order value as follows:
Most significant byte first: 0, format.NORMAL, format.NETWORK, or
format.BIGENDIAN
Least significant byte first: 1, format.SWAPPED or format.LITTLEENDIAN
(on page 7-93)
(on page 7-140)
Affected by
System reset
Models 707B and 708B Switching Matrix Reference Manual
NOTE
Output depends on the terminal program
you use, but will look something like:
#0¤p??
#0??p¤
Where saved
Create configuration script
Default value
format.ASCII
707B-901-01 Rev. A / August 2010

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

707b

Table of Contents