canmatrix
canmatrix copied to clipboard
How to add signal attribute with all the fields.
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.
Hi @AyushPatil41
there is no obvious way to to it, but
db.add_define_default("GenSigSendType", "cyclic")
should do it