This example shows how to view signals and tune parameters by using ETAS® Inca. You must have already completed the steps in Prepare ASAP2 Data Description File.
You also must be familiar with the ETAS Inca user interface. For information about the user interface, see the
vendor documentation (
Build and download real-time application
Start the real-time application by selecting REAL-TIME > RUN ON TARGET > Start Application.
Disconnect the connection from MATLAB:
tg = slrealtime disconnect(tg)
Open ETAS Inca.
Add an ETAS Inca database by using the folder named
Add subfolders named
Project, add an ECU project.
When prompted, select A2L file
which is extracted from the project file. Ignore the prompt for a HEX
If you change and rebuild the real-time application, delete the ECU project and recreate it with the new A2L file.
Workspace, add workspace
slrt_ex_osc_cal_slrt to workspace
When prompted, add an Ethernet system XCP device to the workspace.
Configure the XCP device and initialize it. Autoconfigure the ETAS network.
To upload data from the device hardware, use enhanced operations on memory pages.
Data is uploaded from the real-time application on the target computer.
Experiment, add experiment
slrt_ex_osc_cal_exp to workspace
To create graphic controls for the variables, add variables
Add YT oscilloscopes for
For each signal, set the sample time to the base sample time of the
Start the ETAS Inca measurement.
To shorten the ring time on
L_2D, set parameter
As required, toggle between the reference page and the working page.
When using the Run on Target button on the Simulink Editor Real-Time tab to run the simulation, there is a time lag of a couple of seconds between the start of the real-time application on the target computer and the connect model operation on the development computer. If you are examining signals at or very close to application start, consider using the step-by-step approach to connect model and then using an SSH connection (for example, using PuTTY) start the real-time application. For more information, see Execute Real-Time Application in Simulink External Mode by Using Step-by-Step Commands and Execute Target Computer RTOS Commands at Target Computer Command Line.