canmatrix icon indicating copy to clipboard operation
canmatrix copied to clipboard

How to add signal attribute with all the fields.

Open AyushPatil41 opened this issue 2 months ago • 1 comments

Image

Using the "db.add_signal_defines("GenSigSendType", "ENUM")" I am creating the signal attribute but unable to add one field of Default, and I am adding attributes in one of two ways either "signal.add_attribute("GenSigSendType", "cyclic")"

or signal = canmatrix.Signal( attributes=["GenSigSendType", "cyclic"] )

Is it possible to add the Default filed as shown in the image when creating a new signal attribute if yes, can you help me add the default files as shown in the image.

AyushPatil41 avatar Oct 30 '25 09:10 AyushPatil41

Hi @AyushPatil41

there is no obvious way to to it, but

db.add_define_default("GenSigSendType", "cyclic")

should do it

ebroecker avatar Nov 02 '25 10:11 ebroecker