Main Content

Configure AUTOSAR Adaptive Model for External Mode Simulation

Embedded Coder® Support Package for Linux® Applications enables you to configure an AUTOSAR adaptive model for external mode simulation using XCP communication channel. Install the support package from Add-Ons button from MATLAB home. For more information about the support package, see Support Package Installation (Embedded Coder).

Steps to enable external mode simulation:

  1. Open your AUTOSAR adaptive model.

  2. Set the Hardware board configuration parameter in the Hardware Implementation to Embedded Coder Linux Docker Container.

    Note

    Embedded Coder Linux Docker Container is only visible if the Embedded Coder Support Package for Linux Applications is installed.

  3. Set the Transport layer parameter in the XCP Server Configuration pane of the Code Generation > AUTOSAR Code Generation to XCP On TCP/IP.

  4. Specify the IP address of the target machine and port number for XCP communication in the Code Generation > AUTOSAR Code Generation > XCP Server Configuration section.

  5. Enable the External mode option in the Interface pane of Code Generation section.

  6. To log signals, select the signals you want to log and click the Log Signals in the Prepare pane of the Simulation section.

  7. Open the Linux Runtime Manager from the Simulink apps gallery. Alternatively, enter this command at the MATLAB Command Window.

    linuxRuntimeManager

  8. Deploy the model on the Linux target machine. See Build Simulink Model and Deploy Application (Embedded Coder) for more information.

  9. Select the model on the Linux Runtime Manager and click Monitor & Tune button. This will start the application and external mode simulation.

See Also

(Embedded Coder)

Related Topics