Install the Simulink Real-Time Support Package for ASAM XIL Standard
Simulink Real-Time supports a subset of the ASAM XIL API. This API enables you to define ports for test cases. To use these APIs in Simulink Real-Time, install the Simulink Real-Time XIL API support package by using the Add On Explorer. For a list of support ASAM XIL APIs in the support package, see Classes and Methods of ASAM XIL API.
Prerequisites for Using ASAM XIL API
To enable support for the ASAM XIL API, install the Simulink Real-Time XIL API support package. This support package implements the ASAM XIL API standard for Simulink Real-Time target computers.
The Simulink Real-Time Support Package for ASAM XIL Standard implements the ASAM XIL standard API for Simulink Real-Time target computers. Using this C# API, you can run real-time hardware-in-the-loop (HIL) tests on a Simulink Real-Time target computer by using test cases created from any test automation software with the XIL framework. Also, you can use the support package to develop a custom XIL test framework for Simulink Real-Time.
In MATLAB, select Home > Add-Ons > Get Add-Ons and install the Simulink Real-Time XIL API support package.
After support package installation, verify that the manifest file
MathWorksXILServer.imfthat is located under
C:\ProgramData\ASAM\XIL\Implementationprovides the correct Assembly path.
PATHenvironment variable in Windows®.
Make sure you have a supported version of .NET. For more information, see Requirements to Build .NET Engine Programs.
To convert the MATLAB session to a shared session, in the Command Window, type:
For more information, see
Build the model. The real-time application MLDATX file is required for setting up test cases.
Create a configuration file for the test bench by using the
After installing the support package, the PDF documentation for the support package is available in the support package folder.