Calculate CANbus Message Time Delta

  • Software
  • Calculate CANbus Message Time Delta
Gage Edwards

Posted on 16.04.2023 16:54

Hello,


I'm wondering if there is a way to calculate the period of time between receiving CANbus messages. For example, I'm working with a message that is periodically transmitted at 8ms, but sometimes it hitches or has excessive jitter. Is there a way to calculate that so that I can visualize it inside of Dewesoft? Right now I have to use Vehicle Spy 3 to keep an eye on it.


thanks,

Gage Edwards

Gregor Šmit

Posted on 18.04.2023 13:22

Dear Gage,


thank you for reaching out to us. It is possible to calculate the time difference between CAN channels. To achieve this you will need to create a time-stamp channel with Timebase set to the CAN message that you would like to calculate the time difference. Then you simply create a formula where the current value, of the time-stamp channel, is subtracted from the previous value.


In the attachment is an image of such two formulas to calculate the timestamp difference of V_SPEED2 channel.


Kind regards.


Attached files:
Login to reply to this topic. If you don't have account yet, you can signup for free account .