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:
Open your AUTOSAR adaptive model.
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.Set the Transport layer parameter in the XCP Server Configuration pane of the Code Generation > AUTOSAR Code Generation to
XCP On TCP/IP
.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.
Enable the External mode option in the Interface pane of Code Generation section.
To log signals, select the signals you want to log and click the Log Signals in the Prepare pane of the Simulation section.
Open the Linux Runtime Manager from the Simulink apps gallery. Alternatively, enter this command at the MATLAB Command Window.
linuxRuntimeManager
Deploy the model on the Linux target machine. See Build Simulink Model and Deploy Application (Embedded Coder) for more information.
Select the model on the Linux Runtime Manager and click Monitor & Tune button. This will start the application and external mode simulation.
See Also
Linux Runtime Manager (Embedded Coder)