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 or a Simulink model simulation as the 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 support package. For Simulink Real-Time, use 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
On the MATLAB® Home tab, in the Environment section, click Add-Ons > Get Hardware Support Packages.
In the Add-On Explorer window, browse or search for the Simulink Test Support Package for ASAM XIL Standard.
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).
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
Install and set up your test bench.
If you are using a third-party test bench, refer to the information supplied with that 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.
If you are using Simulink model simulation as your test bench, append
matlabroot\extern\bin\win64
to your Windows®PATH
variable.
If you are using Simulink Real-Time or a third-party product as your test bench, 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
These steps are required only if you are using Simulink Real-Time or a third-party product as your test bench. You do not need to perform these steps if you are using Simulink model simulation as your test bench.
Note
Use the same version of MATLAB® that you verified as compatible with your test bench.
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 the test bench toolchain.
Build the model for your test bench, creating a binary image that is runnable on the test bench.
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.
Create a Simulink Real-Time or vendor-specific port configuration file. See Create and Run Tests Using the ASAM XIL Standard for information and examples of setting up configuration files.
See Also
sltest.xil.framework.Framework
Related Topics
- Create and Run Tests Using the ASAM XIL Standard
- Create Tests That Use Third-Party Test Benches
- Create Tests Using Simulink Model Simulation as a Test Bench
- ASAM XIL Classes and Methods Supported by Simulink Test