FormatPy
SCPI Commands :
FORMat:BORDer
FORMat:SREGister
FORMat:[DATA]
- class FormatPyCls[source]
FormatPy commands group definition. 3 total commands, 0 Subgroups, 3 group commands
- get_border() ByteOrder[source]
# SCPI: FORMat:BORDer value: enums.ByteOrder = driver.formatPy.get_border()
Determines the sequence of bytes within a binary block. This only affects blocks which use the IEEE754 format internally.
- return:
border: - NORMal: Expects/sends the least significant byte of each IEEE754 floating-point number first and the most significant byte last. - SWAPped: Expects/sends the most significant byte of each IEEE754 floating-point number first and the least significant byte last.
- get_data() FormData[source]
# SCPI: FORMat:[DATA] value: enums.FormData = driver.formatPy.get_data()
Determines the data format the instrument uses to return data via the IEC/IEEE bus. The instrument automatically detects the data format used by the controller, and assigns it accordingly. Data format determined by this SCPI command is in this case irrelevant.
- return:
data: - ASCii: Transfers numerical data as plain text separated by commas. - PACKed: Transfers numerical data as binary block data.The format within the binary data depends on the command. The various binary data formats are explained in the description of the parameter types.
- get_sregister() FormStatReg[source]
# SCPI: FORMat:SREGister value: enums.FormStatReg = driver.formatPy.get_sregister()
Determines the numeric format for responses of the status register.
- return:
format_py: - ASCii: Returns the register content as a decimal number. - BINary|HEXadecimal|OCTal: Returns the register content either as a binary, hexadecimal or octal number. According to the selected format, the number starts with #B (binary) , #H (hexadecimal) or #O (octal) .
- set_border(border: ByteOrder) None[source]
# SCPI: FORMat:BORDer driver.formatPy.set_border(border = enums.ByteOrder.NORMal)
Determines the sequence of bytes within a binary block. This only affects blocks which use the IEEE754 format internally.
- param border:
NORMal: Expects/sends the least significant byte of each IEEE754 floating-point number first and the most significant byte last.
SWAPped: Expects/sends the most significant byte of each IEEE754 floating-point number first and the least significant byte last.
- set_data(data: FormData) None[source]
# SCPI: FORMat:[DATA] driver.formatPy.set_data(data = enums.FormData.ASCii)
Determines the data format the instrument uses to return data via the IEC/IEEE bus. The instrument automatically detects the data format used by the controller, and assigns it accordingly. Data format determined by this SCPI command is in this case irrelevant.
- param data:
ASCii: Transfers numerical data as plain text separated by commas.
PACKed: Transfers numerical data as binary block data.The format within the binary data depends on the command. The various binary data formats are explained in the description of the parameter types.
- set_sregister(format_py: FormStatReg) None[source]
# SCPI: FORMat:SREGister driver.formatPy.set_sregister(format_py = enums.FormStatReg.ASCii)
Determines the numeric format for responses of the status register.
- param format_py:
ASCii: Returns the register content as a decimal number.
BINary|HEXadecimal|OCTal: Returns the register content either as a binary, hexadecimal or octal number. According to the selected format, the number starts with #B (binary) , #H (hexadecimal) or #O (octal) .