FormatPy
SCPI Command :
SBUS<*>:FORMat
- Commands in total: 1Subgroups: 0Direct child commands: 1
- get(serialBus=SerialBus.Default) BitPattern[source]
# SBUS<*>:FORMat value: enums.BitPattern = 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
HEX: Hexadecimal
OCT: Octal
BIN: Binary
ASCII = ASCii: American standard code for information interchange
SIGN: Signed, e.g. 8 bits signed ranges from -128 to +127 decimal
USIG: Unsigned, e.g. 8 bits unsigned ranges from 0 to 255 decimal
- set(data_format: BitPattern, serialBus=SerialBus.Default) None[source]
# SBUS<*>:FORMat driver.sbus.formatPy.set(data_format = enums.BitPattern.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
HEX: Hexadecimal
OCT: Octal
BIN: Binary
ASCII = ASCii: American standard code for information interchange
SIGN: Signed, e.g. 8 bits signed ranges from -128 to +127 decimal
USIG: Unsigned, e.g. 8 bits unsigned ranges from 0 to 255 decimal
serialBus – optional repeated capability selector. Default value: Nr1 (settable in the interface ‘Sbus’)