FormatPy

SCPI Command :

SBUS<*>:FORMat
Commands in total: 1
Subgroups: 0
Direct child commands: 1
get(serialBus=SerialBus.Default) SbusDataFormat[source]
# SBUS<*>:FORMat
value: enums.SbusDataFormat = driver.sbus.formatPy.get(serialBus = repcap.SerialBus.Default)

Sets the number format for decoded data values of the indicated serial bus. It defines the format in the decode table, and in the combs of the decoded signal on the screen.

Parameters:

serialBus – optional repeated capability selector. Default value: Nr1 (settable in the interface ‘Sbus’)

Returns:

data_format: HEX | OCT | BIN | ASCII | ASCii | SIGN | USIG | DEC | SYMB | LIST | FLIN

  • HEX: Hexadecimal format

  • OCT: Octal format

  • BIN: Binary format

  • ASCII = ASCii: ASCII format

  • SIGN: Signed, e.g. 8 bits signed ranges from -128 to +127 decimal

  • DEC=USIG: Unsigned, e.g. 8 bits unsigned ranges from 0 to 255 decimal

  • LIST: Value list

  • FLIN: Linear function

set(data_format: SbusDataFormat, serialBus=SerialBus.Default) None[source]
# SBUS<*>:FORMat
driver.sbus.formatPy.set(data_format = enums.SbusDataFormat.ASCII, serialBus = repcap.SerialBus.Default)

Sets the number format for decoded data values of the indicated serial bus. It defines the format in the decode table, and in the combs of the decoded signal on the screen.

Parameters:
  • data_format

    HEX | OCT | BIN | ASCII | ASCii | SIGN | USIG | DEC | SYMB | LIST | FLIN

    • HEX: Hexadecimal format

    • OCT: Octal format

    • BIN: Binary format

    • ASCII = ASCii: ASCII format

    • SIGN: Signed, e.g. 8 bits signed ranges from -128 to +127 decimal

    • DEC=USIG: Unsigned, e.g. 8 bits unsigned ranges from 0 to 255 decimal

    • LIST: Value list

    • FLIN: Linear function

  • serialBus – optional repeated capability selector. Default value: Nr1 (settable in the interface ‘Sbus’)