format
¶
The format commands module.
These commands are used in the following models: SMU2601B, SMU2602B, SMU2604B, SMU2611B, SMU2612B, SMU2614B, SMU2634B, SMU2635B, SMU2636B
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..DREAL: Sets the data format for data that is printed using the printnumber() and printbuffer() functions to be double-precision IEEE Std 754 binary format..NETWORK: Sets the binary byte order for the data that is printed using the printnumber() and printbuffer() functions to be most significant byte first..NORMAL: Sets the binary byte order for the data that is printed using the printnumber() and printbuffer() functions to be most significant byte first..REAL: Sets the data format for data that is printed using the printnumber() and printbuffer() functions to be double-precision IEEE Std 754 binary format..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..SREAL: Sets the data format for data that is printed using the printnumber() and printbuffer() functions to be single-precision IEEE Std 754 binary format..SWAPPED: Sets the binary byte order for the data that is printed using the printnumber() and printbuffer() functions to be least significant byte first.
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.
DREAL
class-attribute
instance-attribute
¶
DREAL = 'format.DREAL'
printbuffer() functions to be double-precision IEEE Std 754 binary format.
NETWORK
class-attribute
instance-attribute
¶
NETWORK = 'format.NETWORK'
printbuffer() functions to be most significant byte first.
NORMAL
class-attribute
instance-attribute
¶
NORMAL = 'format.NORMAL'
printbuffer() functions to be most significant byte first.
REAL
class-attribute
instance-attribute
¶
REAL = 'format.REAL'
printbuffer() functions to be double-precision IEEE Std 754 binary format.
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.
SREAL
class-attribute
instance-attribute
¶
SREAL = 'format.SREAL'
printbuffer() functions to be single-precision IEEE Std 754 binary format.
SWAPPED
class-attribute
instance-attribute
¶
SWAPPED = 'format.SWAPPED'
printbuffer() functions to be least significant byte first.
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 between 1 and 16.
| 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: 0, format.NORMAL, format.NETWORK, or format.BIGENDIAN
- Least significant byte first: 1, format.SWAPPED or 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: |
|
|---|