You are currently viewing 新功能发布 | TSMaster诊断模块之系统变量的灵活应用

New Feature Release | Flexible Application of System Variables in TSMaster Diagnostic Module

overviewPreface
TSMaster introduces system variables as parameters into the diagnostic module, which greatly expands the ability of the diagnostic module to interact with data from other modules, and this paper mainly demonstrates the specific operation.

A. System variables as parameters

System variables have the ability to interact with data between internal and external modules of the software. TSMaster introduces system variables as parameters into the diagnostic module, which greatly expands the ability of the diagnostic module to interact with data from other modules. Below are a few typical application scenarios to illustrate its functions:

First, create two system variables, VIN_Code, and Voltage, as shown below:

The VIN_Code variable is of type string:
The Voltage variable is of type Double:
Associate system variables to Panel and Graphic as shown below:
[1] Set the voltage value Voltage in Panel and write it to ECU through diagnosis:
[2] Set the VIN code in Panel and write it to ECU through diagnosis:
[3] The internal voltage value of the ECU is read through diagnostics and displayed in Graphic:

Note: Variables that are read, need to be set manually by the user before they will be synchronized to the system variables.

[4] ECU internal VIN code is read through diagnostics and displayed in Panel:

B. System variables associated with the Console service

In the previous chapters, users can flexibly configure diagnostic services in the Diagnostic Console as needed. After these diagnostic services have been configured, users need to double-click on the diagnostic console to start the diagnostic services. However, if you want to start the diagnostic commands in the Panel interface, you need to use system variables. The steps are as follows:

[1] First, in the Diagnostic BasicConfig form, select the target service, and then register the diagnostic service as a system variable in the right-click menu, as shown below:

After the registration is completed, the icon of the service item changes to the following icon, indicating that it becomes a service with system variables registered, as shown below:
[2] After the registration is completed, you can see the system variable in the System Variable Manager, as shown below:
[3] Add a Button to Panel and associate this system variable as shown below:
[4] Run the program and click the Test button on Panel, you can see that the Diagnostic module executes the DiagnosticSessionControl service. As shown below:

C. External process control diagnostics

External programs can exchange data with TSMaster through system variables.

发表回复