TSMaster软件支持在图形里面的信号表达式功能,主要用于多信号表达式运算和显示的场景。本文将以A2L中的标定变量为例,介绍如何使用图形中的信号表达式功能进行多信号的后处理运算和显示。
Keywords in this article: graphs, signal expressions, signal computation, expression arithmetic, scalar quantization
1. Introduction to Graphical Signal Expressions
Graphical Signal Expressions is a function included in the “Analyze-Graph” module of TSMaster software. The specific use scenario is that multiple signals can be expressed and displayed. Generally, you can add, subtract, multiply, divide, and trigonometric functions of multiple signals. The following figure shows the built-in arithmetic rules in the current software:

The signal types supported by this function specifically include: CAN signals, LIN signals, FlexRay signals, Ethernet signals, system variables and other types. Before configuring the signal expression function, you need to load the database file of the corresponding format and add the variables to be observed to the graphic window.
2. Examples of application scenarios for graphical signal expressions and calibration variables
Graphical signal expression function for arithmetic scenarios with multiple calibrated variables. The following describes how to calculate the sum of two calibrated variables using the graphical signal expression function for this application scenario.
The calibration variables ecu1.sineSignal, ecu1.noiseSignal and ecu1.sineNoiseMixSignal have now been added to the graphics window ahead of time, where ecu1.sineNoiseMixSignal is the variable uploaded back from the ECU and represents the sum of the values of the ecu1.sineSignal and the ecu1.noiseSignal values.

Using the Signal Expression function in Graphics, create a signal expression that is also used to calculate the sum of the values of the ecu1.sineSignal and ecu1.noiseSignal variables. Also compare it with the signal value of ecu1.sineNoiseMixSignal uploaded back from the ECU. The specific operation is as follows.
1) Right-click in the blank space of the graph window and select “Add Signal Expression”;

2) Double-click the variable Expr1524 corresponding to the newly added signal expression, and then click the icon button shown below;

3) The Signal Expression Editor interface is shown below;

① When more than one signal needs to be calculated, click this button to add a new independent variable downwards.
② After selecting an independent variable, click this button to delete the selected independent variable.
③ Click on this button to view some of the supported arithmetic rules

4) According to the test requirements, add a signal expression to calculate the sum of the values of the two variables ecu1.sineSignal and ecu1.noiseSignal. First, click the arrow selector to the right of the first variable x1 to associate the signal corresponding to the first variable;
[Note]: The signals available for association must be those that have been added to the graph window. If the signal to be selected has not been added to the graph window, the signal to be associated needs to be added to the graph window first.


5) The second variable is associated with the same operation as 4) above;
(6) After the variables are associated, edit the calculation rules of the corresponding variables. Click “OK” after the setting is completed, and finally click “Apply”;


7) Start the measurement and observe the values of the calibrated variables that have been added in the graphic window. It can be seen that the values of the variables of Expr1524 calculated using the signal expression and the values of the variables of ecu1.sineNoiseMixSignal uploaded back by the ECU are always equal, as expected.

Which feature of TSMaster are you most interested in? Or what problems have you encountered in practical applications?
Welcome to share your experience or questions in the comment section, any ideas or suggestions can also be comment section message interaction, will have the opportunity to win the TOSUN mystery gift bag Oh ~!
Tip:
1. Software download:
Click on the software download link below to download and install directly, beta version is recommended:
2. Software upgrades:
You can check for upgrades to the latest version within the software, provided that your computer has an Internet connection.
Note: TOSUN Technical Support Email:support@tosunai.cnWe welcome inquiries! (Company and contact information must be indicated)