You are currently viewing 干货分享 | TSMaster如何同时记录标定变量和DBC信号至BLF文件

Sharing | How to Record Calibration Variables and DBC Signals to BLF File Simultaneously in TSMaster

When customers use the calibration function of TSMaster software, they have the following usage scenario: the signals in the DBC file and the calibration variables in the A2L file are recorded in one record file at the same time. For this application scenario, TSMaster software provides a method to fulfill this requirement. Today, we would like to share with you how to record calibration variables and DBC signals to BLF file at the same time in TSMaster software.

KEYWORDS IN THIS ARTICLE: calibration variables, DBC signals, BLF files

Table of Contents for this article

I. Load the A2L file and add calibration variables to the graphical observation

❖ Load A2L file

Create a new ECU at the Calibration Manager Calibration page Device Configuration before loading the A2L file at the Database. The contents of the loaded A2L file are displayed on the Database page.

❖ Adding calibration variables to the measurement list

Open the Calibration page, select the calibration variable you want to observe and record in the Database page and click the right mouse button, select "Add to Measurement List only".
After adding all the variables to be observed, you can see all the variables that have been added in the Measurement List window.

❖ Add calibration variables to the graphs

In the calibration page, select the calibration data that needs to be observed and recorded in the database page and click the right mouse button, select "Add to Graph" and select the corresponding graph window (if there is no graph window to select, you can select "Create New Graph Window"). ").
After adding the calibration variables to the graph window, the graph window will show all the variables that have been added. Start the project at this point and you can observe the graph of the calibration variables.

II. Enabling recording of calibration variables

❖ Enable recording of calibration variables

After adding all the variables and signals to be observed to the graph window, it is necessary to enable the recording of calibrations in order to record the calibrations in the same BLF file as the DBC signals. This is done as follows:

Click System Variables on the Simulation page to bring up the System Variables Manager window. Select the "Internal Variables" button under the window to select the calibration variables you want to record on the page (you can enter the keywords of the calibration variables in the "Filter" column for quick filtering).

Once you have found the variable you want to log, select it and right-click on it and select "Enable logging of selected variables".

III. Adding DBC signals to graphical observation

To record both signal data and calibration data from the DBC database, you need to load the DBC database into the TSMaster software and add the signals to be observed to the graph window. The specific operation is as follows.

❖ Load DBC database

Click "Show CAN Database" in the Software Analysis - Database page, the CAN Database window will be displayed, in which you can load the DBC database. select a channel in the CAN Database window and click the right mouse button, select "Load CAN Database", a file selection window will pop up, select the database you need to load in the folder. Select a channel in the CAN database window, right click the mouse and select "Load CAN database", a file selection window will pop up, select the database you need to load in the folder.

❖ Add Message Sending

Clicking "Add CAN/CANFD Transmission" in the Analyze - Transmission page displays the CAN/CANFD Transmission window, where you can add any frame to the transmission and set the generator type of the signal to be observed under this message.

Right-click on the CAN/CANFD transmitter window, select "Add Message from Database", select the message to be observed in the pop-up database window and click OK to add the message to the CAN/CANFD transmitter window.

When this message is selected, the signal contained in the message is displayed, and the generator type of the signal is set here.

❖ Adding signals to graphical observations

Clicking on the Graph button on the Analyze page will display the Graph window where you can add the DBC signals you want to observe.

Click the right mouse button on the left side of the graph window, select "Add CAN Signal", the database window will pop up, the user can select the signal to be observed according to the needs of the user, after the selection is complete, click OK, the signal can be added to the graph window.

Four, start the project, enable all variables and record as BLF file

In TSMaster software, click Analyze - Bus Record button to add bus record, then the Bus Record window will pop up, in which you can set the save location and file naming method of BLF file.
After setting the above contents, start the project and enable all variables, click the Analyze-Start Recording button to record both the calibration variables and DBC signals into the same BLF file. When you want to stop recording, click the Analyze - Stop Recording button.

V. Playback of BLF files

Before playing back the BLF file, you need to load the A2L and DBC files and add the calibration variables and DBC signals to be observed to the graphic page, and then do the following.

The BLF file is played back to view the recorded calibration variables and DBC signal data, using offline playback as an example:

  1. Open the Offline Playback page in the Bus Playback window.
  2. Right-click on the blank space and click on the pop-up function menu to select Record File - Record Module.
  3. The BLF loads in and shows up in the offline playback window.
  4. Select the BLF file on the Offline Playback page, click the Start Playback button, and finally view the signal data and message data of the calibration signals in the Graphics window and the CAN/CANFD Message Information window.

发表回复