Main Content

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.

  1. In MATLAB, select Home > Add-Ons > Get Add-Ons and install the Simulink Real-Time XIL API support package.

  2. After support package installation, verify that the manifest file MathWorksXILServer.imf that is located under C:\ProgramData\ASAM\XIL\Implementation provides the correct Assembly path.

  3. Add folder matlabroot\extern\bin\win64 to the PATH environment variable in Windows®.

  4. Make sure you have a supported version of .NET. For more information, see Requirements to Build .NET Engine Programs.

  5. To convert the MATLAB session to a shared session, in the Command Window, type:

    matlab.engine.shareEngine

    For more information, see matlab.engine.shareEngine.

  6. Build the model. The real-time application MLDATX file is required for setting up test cases.

  7. Create a configuration file for the test bench by using the createPortConfigureFile function.

After installing the support package, the PDF documentation for the support package is available in the support package folder.

cd(fullfile(matlabshared.supportpkg.getSupportPackageRoot,...
    'toolbox','slrealtime','xil'))

See Also

Related Examples

More About

External Websites