Message¶
- class canlib.kvadblib.Message(db, handle, name=None, id=None, flags=None, dlc=None, comment=None)[source]¶
Database message, holds signals.
- bind(frame=None)[source]¶
Bind this message to a frame
Creates a new BoundMessage object representing this message bound to the given Frame object, or a new Frame object if
frame
isNone
.
- property comment¶
Comment message
- Type
str
- delete_signal(signal)[source]¶
Delete signal from message.
- Parameters
signal (
Signal
) – signal to be deleted
- property dlc¶
The message dlc
- Type
int
- property flags¶
The message flags
- Type
- get_attribute_value(name)[source]¶
Return attribute value
If the attribute is not set on the message, we return the attribute definition default value.
Changed in version 1.18: When an EnumAttribute is not set, the default value will now be returned as
int
(instead ofEnumValue
with emptyname
).
- property id¶
The message identifier
- Type
int
- property name¶
The message name
- Type
str
- new_signal(name, type=SignalType.UNSIGNED, byte_order=SignalByteOrder.INTEL, mode=SignalMultiplexMode.SIGNAL, representation=None, size=None, scaling=None, limits=None, unit=None, comment=None, enums=None)[source]¶
Create and add a new signal to the message.
- property qualified_name¶
The qualified message name
Returns database and message names separated by a dot.
- Type
str