How to monitor a DBC message sending cycle cover in the graph of TSMaster's small function?

How to monitor a certain DBC message sending period in the graph of TSMaster small function?

overview

Overview:

Today we introduce you to the TSMaster small function of how to monitor a certain DBC message sending cycle in the graph.

Step 1

1. Create a user variable Cycle, which is used to display in the graph.

How to monitor the sending cycle of a DBC message in the graph of TSMaster's small function?


Step 2

2. Add monitoring of Cycle to the graphics module.


Step 3

3. Create a C applet that creates the message delivery event to be monitored (in this case, the message with identifier 0X64).

How to monitor the sending cycle of a DBC message in the graph of TSMaster's small function?


Step 4

4. The send event will be triggered after each 0x64 message is successfully sent, just get the current message send time, and then subtract the last message send time, you can get the send cycle, the implementation code is as follows.

How to monitor the sending cycle of a DBC message in the graph of TSMaster's small function?
How to monitor the sending cycle of a DBC message in the graph of TSMaster's small function?


Step 5

5. Code Analysis

The first line indicates that this send function is for channel 1, so if you need it to work for all channels, just comment it out.

Line 3 is to get the timestamp (which is the same as the absolute time in the message message field) through the message structure ACANFD.

In line 4, if the message is sent for the first time, the period is not counted.

In line 11, the library function assigns the cycle value to the user variable Cycle, so that it can be monitored in the graph.

 

How to monitor the sending cycle of a DBC message in the graph of TSMaster's small function?
en_USEnglish
×
×

产品入口: 产品添加到购物车

Download location

Please click the download button below to start experiencing the powerful TSMaster features. Thank you for your support!

Beta version updated weekly, full version updated monthly
Installation environment
  • 1
    Windows 7 SP1 or higher, supports Win10, and WIn11.

    Operating System

  • 2
    8GB

    random access memory (RAM)

  • 3
    At least 550MB of free space

    disk space

  • 4
    Dual-core (2-core) or higher

    CPU

Please ensure that your computer meets at least these requirements in order to install and run the TSMaster software successfully. If your computer does not meet these requirements, it may cause performance problems or not run the software properly. You may want to consider upgrading your hardware if you need smoother running features.