FormatPy
SCPI Command :
SBUS<*>:DPHY:FORMat:FRAMe<*>:FLD<*>:FORMat
- Commands in total: 1Subgroups: 0Direct child commands: 1
- get(serialBus=SerialBus.Default, frame=Frame.Default, field=Field.Default) SbusDataFormat[source]
# SBUS<*>:DPHY:FORMat:FRAMe<*>:FLD<*>:FORMat value: enums.SbusDataFormat = driver.sbus.dphy.formatPy.frame.fld.formatPy.get(serialBus = repcap.SerialBus.Default, frame = repcap.Frame.Default, field = repcap.Field.Default)
Specifies the numerical format for the condition value of the selected field in the selected frame.
- Parameters:
serialBus – optional repeated capability selector. Default value: Nr1 (settable in the interface ‘Sbus’)
frame – optional repeated capability selector. Default value: Ix1 (settable in the interface ‘Frame’)
field – optional repeated capability selector. Default value: Ix1 (settable in the interface ‘Fld’)
- Returns:
numeric_format: HEX | OCT | BIN | ASCII | ASCii | SIGN | USIG | DEC | LIST | FLIN
HEX: Hexadecimal format
OCT: Octal format
BIN: Binary format
ASCII = ASCii: ASCII format
SIGN: Signed, decimal format
DEC=USIG: Unsigned, decimal format
LIST: Value list
FLIN: Linear function
- set(numeric_format: SbusDataFormat, serialBus=SerialBus.Default, frame=Frame.Default, field=Field.Default) None[source]
# SBUS<*>:DPHY:FORMat:FRAMe<*>:FLD<*>:FORMat driver.sbus.dphy.formatPy.frame.fld.formatPy.set(numeric_format = enums.SbusDataFormat.ASCII, serialBus = repcap.SerialBus.Default, frame = repcap.Frame.Default, field = repcap.Field.Default)
Specifies the numerical format for the condition value of the selected field in the selected frame.
- Parameters:
numeric_format –
HEX | OCT | BIN | ASCII | ASCii | SIGN | USIG | DEC | LIST | FLIN
HEX: Hexadecimal format
OCT: Octal format
BIN: Binary format
ASCII = ASCii: ASCII format
SIGN: Signed, decimal format
DEC=USIG: Unsigned, decimal format
LIST: Value list
FLIN: Linear function
serialBus – optional repeated capability selector. Default value: Nr1 (settable in the interface ‘Sbus’)
frame – optional repeated capability selector. Default value: Ix1 (settable in the interface ‘Frame’)
field – optional repeated capability selector. Default value: Ix1 (settable in the interface ‘Fld’)