Adding message to a TraceWindow

Comprehensive CAN monitor for Windows® and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
dennisds
Posts: 2
Joined: Thu 8. Aug 2013, 10:15

Adding message to a TraceWindow

Post by dennisds » Thu 8. Aug 2013, 10:37

Hello,

is it possible to add a new message to the TraceMessage collection of a TraceWindow?
If I try the following code (using Python and COM):

Code: Select all

newMsg = tracer.Messages.Add()
I get the error

Code: Select all

"(-2147352567, 'Ausnahmefehler aufgetreten.', (0, None, None, None, 0, -2147418113), None)"
=> "Schwerwiegender Fehler".
The code

Code: Select all

print("Count:", tracer.Messages.Count)
succeeds, so I am able to access the message list of the Tracer object.

However, it would be nice to extend the message list of a TraceWindow in order to implement custom message filter which e.g. inspects the message data.

Thank you for your help

K.Wolf
Software Development
Software Development
Posts: 141
Joined: Wed 22. Sep 2010, 15:37

Re: Adding message to a TraceWindow

Post by K.Wolf » Mon 12. Aug 2013, 11:45

Hi,

your code should work, but indeed it doesn't. After testing this myself I can only say this is a bug.
Will be fixed in the upcoming version 5.3.3.

Post Reply