Main Content

Install and Set Up the Simulink Test Support Package for ASAM XIL Standard

The ASAM® XIL standard defines communication between test automation tools and test benches. You can use the Simulink® Test™ Support Package for ASAM® XIL Standard to use Simulink Test to control a test bench.

If you are using Simulink Real-Time™ and switching between test benches, or if you are using a third-party test bench, you must install the support package. If you are using Simulink Real-Time as your test bench and do not need to switch between test benches, you do not need to install the Simulink Test Support Package for ASAM XIL Standard. Instead use Simulink Real-Time with the real-time test case provided with Simulink Test.

To use the ASAM XIL API, first install the Simulink Test Support Package for ASAM XIL Standard, and then set up your test bench and Simulink model.

Install the Support Package

  1. On the MATLAB® Home tab, in the Environment section, click Add-Ons > Get Hardware Support Packages.

  2. In the Add-On Explorer window, browse or search for the Simulink Test Support Package for ASAM XIL Standard.

  3. Select the support package and click Install.

    If you are using Simulink Real-Time as your test bench, you must also install the Simulink Real-Time Support Package for ASAM XIL Standard. See Install the Simulink Real-Time Support Package for ASAM XIL Standard (Simulink Real-Time).

  4. After the support package installation completes, set up your test bench and build the model you want to run on it.

Set Up the Test Bench

  1. Verify that your version of MATLAB® is compatible with your test bench. Depending on test bench compatibility, you might have to use an older version of MATLAB to build the model for your test bench.

  2. Install and set up your test bench. Refer to the information supplied with your test bench. If you are using Simulink Real-Time as your test bench, see Install the Simulink Real-Time Support Package for ASAM XIL Standard (Simulink Real-Time) for setup information.

  3. Install the test bench compiler toolchain supplied with your test bench on your Windows® computer. You use the compiler toolchain when building your Simulink model.

Configure and Build Your Model

Note

Use the same version of MATLAB that you verified as compatible with your test bench.

  1. In your Simulink model, in the Modeling tab, click Model Settings to open the Configuration Parameters dialog box. In the left pane, click Code Generation, then set Toolchain to test bench toolchain.

  2. Build the model for your test bench, creating a binary image that is runnable on the test bench.

  3. Create a Simulink Real-Time or vendor-specific port configuration file. See Real-Time Testing with the Simulink Test Support Package for ASAM XIL Standard for information and examples of setting up configuration files.

Note

After you have installed the support package and set up the test bench, you can build additional models and configurations at any time without having to set up the test bench again.

See Also

Related Topics

External Websites