Simulink Real-Time supports a subset of the ASAM XIL API. This API lets you 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.
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. This C# API lets you run real-time hardware-in-the-loop 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.imf that is located under
C:\ProgramData\ASAM\XIL\Implementation provides the correct
Register MATLAB as the automation server. Share the MATLAB session. In the MATLAB Command Window, type:
comserver('register','User','current'); enableservice('AutomationServer', true);
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