FormatPy

SCPI Commands :

FORMat:BORDer
FORMat:BPATtern
Commands in total: 3
Subgroups: 1
Direct child commands: 2
get_border() ByteOrder[source]
# FORMat:BORDer
value: enums.ByteOrder = driver.formatPy.get_border()

Sets the endianness. The command is only relevant for data in integer and float format.

Returns:

byte_order: LSB first: little endian, least significant byte first MSB first: big endian, most significant byte first

get_bpattern() BitPattern[source]
# FORMat:BPATtern
value: enums.BitPattern = driver.formatPy.get_bpattern()

Sets the number format for remote bit pattern queries on serial protocols.

Returns:

bt_patt_fmt: DEC | HEX | OCT | BIN | ASCII | ASCii | STRG

set_border(byte_order: ByteOrder) None[source]
# FORMat:BORDer
driver.formatPy.set_border(byte_order = enums.ByteOrder.LSBFirst)

Sets the endianness. The command is only relevant for data in integer and float format.

Parameters:

byte_order – LSB first: little endian, least significant byte first MSB first: big endian, most significant byte first

set_bpattern(bt_patt_fmt: BitPattern) None[source]
# FORMat:BPATtern
driver.formatPy.set_bpattern(bt_patt_fmt = enums.BitPattern.ASCII)

Sets the number format for remote bit pattern queries on serial protocols.

Parameters:

bt_patt_fmt – DEC | HEX | OCT | BIN | ASCII | ASCii | STRG

Cloning the Group

# Create a copy of the original group, that exists independently
formatPy_copy = driver.formatPy.clone()

Subgroups