Calibrate Parameters with ETAS Inca

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 (

Prepare Database

  1. Build and download real-time application ex_slrt_cal_osc.

  2. Open ETAS Inca.

  3. Add an ETAS Inca database with folder named SLRTDatabase.

  4. Add subfolders named Experiment, Project, and Workspace.

Prepare Project

  1. Under folder Project, add an ECU project.

  2. When prompted, select A2L file ex_slrt_cal_osc_slrt.a2l in your build folder. Ignore the prompt for a HEX file.

    If you change and rebuild the real-time application, delete the ECU project and recreate it with the new A2L file.

Prepare Workspace

  1. Under folder Workspace, add workspace ex_slrt_cal_osc_wksp.

  2. Add project ex_slrt_cal_osc_slrt to workspace ex_slrt_cal_osc_wksp.

  3. When prompted, add an Ethernet system XCP device to the workspace.

  4. Configure the XCP device and initialize it. Auto configure the ETAS network.

  5. 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.

Prepare Experiment

  1. Under folder Experiment, add experiment ex_slrt_cal_osc_exp.

  2. Add experiment ex_slrt_cal_osc_exp to workspace ex_slrt_cal_osc_wksp.

Configure Signals and Parameters

  1. Start experiment ex_slrt_cal_osc_exp.

  2. To create graphic controls for the variables, add variables Kg, DampedOsc, SignalGenerator, L_1D, L_2D, and zdata.

  3. Add YT oscilloscopes for DampedOsc, SignalGenerator, L_1D, L_2D.

  4. For each signal, set the sample time to the base sample time of the real-time application (250 µs).

Perform Signal Measurement and Parameter Calibration

  1. Start the ETAS Inca measurement.

  2. In Simulink® Real-Time™ Explorer, start the real-time application.

    The signal windows show the four waveforms, corresponding to the displays on the target computer screen.

  3. To shorten the ring time on DampedOsc, L_1D, and L_2D, set parameter Kg to, for example, 800.

  4. As required, toggle between reference page and working page.

  5. To freeze the parameter set on the target computer, use the freeze working data command.

    To save the working data on the development computer, use the save working data command.

Related Topics

External Websites