format
¶
The format commands module.
These commands are used in the following models: DAQ6510, DMM6500, DMM7510, SMU2450, SMU2460, SMU2461, SMU2470
THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.
Please report an issue if one is found.
Attributes and Functions
- format.asciiprecision
- format.byteorder
- format.data
Format
¶
Bases: BaseTSPCmd
The format command tree.
Constants
.ASCII: Sets the data format for data that is printed using the printnumber() and printbuffer() functions to be ASCII format..BIGENDIAN: Sets the binary byte order for the data that is printed using the printnumber() and printbuffer() functions to be most significant byte first..LITTLEENDIAN: Sets the binary byte order for the data that is printed using the printnumber() and printbuffer() functions to be least significant byte first..REAL32: Sets the data format for data that is printed using the printnumber() and printbuffer() functions to be single-precision IEEE Std 754 binary format..REAL64: Sets the data format for data that is printed using the printnumber() and printbuffer() functions to be double-precision IEEE Std 754 binary format.
Properties and methods
.asciiprecision: Theformat.asciiprecisionattribute..byteorder: Theformat.byteorderattribute..data: Theformat.dataattribute.
ASCII
class-attribute
instance-attribute
¶
ASCII = 'format.ASCII'
printbuffer() functions to be ASCII format.
BIGENDIAN
class-attribute
instance-attribute
¶
BIGENDIAN = 'format.BIGENDIAN'
printbuffer() functions to be most significant byte first.
LITTLEENDIAN
class-attribute
instance-attribute
¶
LITTLEENDIAN = 'format.LITTLEENDIAN'
printbuffer() functions to be least significant byte first.
REAL32
class-attribute
instance-attribute
¶
REAL32 = 'format.REAL32'
printbuffer() functions to be single-precision IEEE Std 754 binary format.
REAL64
class-attribute
instance-attribute
¶
REAL64 = 'format.REAL64'
printbuffer() functions to be double-precision IEEE Std 754 binary format.
asciiprecision
property
writable
¶
asciiprecision: str
Access the format.asciiprecision attribute.
Description
- This attribute sets the precision (number of digits) for all numbers returned in the ASCII format.
Usage
- Accessing this property will send the
print(format.asciiprecision)query. - Setting this property to a value will send the
format.asciiprecision = valuecommand.
TSP Syntax
- format.asciiprecision = value
- print(format.asciiprecision)
Info
precision, a number representing the number of digits to be printed for numbers printed with the print(), printbuffer(), and printnumber() functions; must be a number from 1 to 16; set to 0 to have the instrument select the precision automatically based on the number that is being formatted.
| Raises: |
|
|---|
byteorder
property
writable
¶
byteorder: str
Access the format.byteorder attribute.
Description
- This attribute sets the binary byte order for the data that is printed using the printnumber() and printbuffer() functions.
Usage
- Accessing this property will send the
print(format.byteorder)query. - Setting this property to a value will send the
format.byteorder = valuecommand.
TSP Syntax
- format.byteorder = value
- print(format.byteorder)
Info
-
order, the byte order value as follows:- Most significant byte first: format.BIGENDIAN
- Least significant byte first: format.LITTLEENDIAN.
| Raises: |
|
|---|
data
property
writable
¶
data: str
Access the format.data attribute.
Description
- This attribute sets the data format for data that is printed using the printnumber() and printbuffer() functions.
Usage
- Accessing this property will send the
print(format.data)query. - Setting this property to a value will send the
format.data = valuecommand.
TSP Syntax
- format.data = value
- print(format.data)
| Raises: |
|
|---|