Data

SCPI Command :

FORMat:BASE[:DATA]
class DataCls[source]

Data commands group definition. 1 total commands, 0 Subgroups, 1 group commands

class DataStruct[source]

Response structure. Fields:

  • Data_Type: enums.DataFormat: ASCii | REAL | BINary | HEXadecimal | OCTal ASCii Numeric data is transferred as ASCII bytes. Floating point numbers are transferred in scientific E notation. REAL Numeric data is transferred in a definite length block as IEEE floating point numbers (block data) . BINary | HEXadecimal | OCTal Numeric data is transferred in binary, hexadecimal or octal format.

  • Data_Length: int: The meaning depends on the DataType as listed below. A zero returned by a query means that the default value is used. For ASCii Decimal places of floating point numbers. That means, number of ‘b’ digits in the scientific notation a.bbbbbbE+ccc. Default: six decimal places For REAL Length of floating point numbers in bits: 32 bits = 4 bytes, format #14… 64 bits = 8 bytes, format #18… Default: 64 bits For BINary, HEXadecimal, OCTal Minimum number of digits. If the number is longer, more digits are used. If it is shorter, leading zeros are added. Default: 0, no leading zeros

get() DataStruct[source]
# SCPI: FORMat:BASE[:DATA]
value: DataStruct = driver.formatPy.data.get()

Selects the format for numeric data transferred to and from the R&S CMW, for example query results.

return:

structure: for return value, see the help for DataStruct structure arguments.

set(data_type: DataFormat, data_length: int = None) None[source]
# SCPI: FORMat:BASE[:DATA]
driver.formatPy.data.set(data_type = enums.DataFormat.ASCii, data_length = 1)

Selects the format for numeric data transferred to and from the R&S CMW, for example query results.

param data_type:

ASCii | REAL | BINary | HEXadecimal | OCTal ASCii Numeric data is transferred as ASCII bytes. Floating point numbers are transferred in scientific E notation. REAL Numeric data is transferred in a definite length block as IEEE floating point numbers (block data) . BINary | HEXadecimal | OCTal Numeric data is transferred in binary, hexadecimal or octal format.

param data_length:

The meaning depends on the DataType as listed below. A zero returned by a query means that the default value is used. For ASCii Decimal places of floating point numbers. That means, number of ‘b’ digits in the scientific notation a.bbbbbbE+ccc. Default: six decimal places For REAL Length of floating point numbers in bits: 32 bits = 4 bytes, format #14… 64 bits = 8 bytes, format #18… Default: 64 bits For BINary, HEXadecimal, OCTal Minimum number of digits. If the number is longer, more digits are used. If it is shorter, leading zeros are added. Default: 0, no leading zeros