TPT MiL Testing. The smart way to test Simulink models.

We designed TPT to be the best testing tool for Simulink and TargetLink models. Every model that runs in Simulink can be tested with TPT. It does not matter if your model is small or large. TPT masters your tests and simplifies creation, management, maintenance and analysis of tests. That’s why TPT is the ideal tool for Model-in-the-Loop testing for Simulink and TargetLink models.

TPT manages your tests – and you save time to drive your business.

Testing Simulink models with TPT. How it works.

Test setup and execution of Simulink or TargetLink models with TPT is easy. You only have to make a few configurations. TPT does the rest – fully automated in the background including MiL-SiL Back-to-Back testing.

Typically, Model-in-the-Loop testing is done in Simulink. Just create the test cases and execute them in Model-in-the-Loop MODE in Simulink. Next, you generate your code with TargetLink, Embedded Coder or Simulink Coder to execute them for Software-in-the-Loop testing MODE. After automatic code generation the test cases can be executed automatically. This way the test results can be easily compared – in a completely automated way and with error-tolerant signal comparison (see Test Assessment).

You can control TPT directly from within MATLAB/ Simulink via the MATLAB Toolbox (also applicable for TargetLink users).

Watch the tutorial: Testing MATLAB/Simulink models with TPT.​

Interface analysis.

Before TPT can execute tests, it must know the interface of your Simulink or TargetLink model: Depending on your setup, TPT will automatically analyze all signals and parameters from your model. As a result, TPT knows exactly the model interface. Not just the signals and parameters, but also data types, arrays, buses, scaling, message signals and internal signals. All these data can be changed and observed.

Test case design: Manually.

Test cases can be modeled manually as functional test cases. TPT supports many unique techniques for modeling tests. TPT test case design is very natural and intuitive. It is very easy to create and easy to maintain tests for Simulink and TargetLink.

Test case design: Automagically (TASMO).

If you are interested in test cases that meet certain coverage criteria (Condition Coverage, Decision Coverage), TPT offers a technology, called TASMO, to generate suitable test cases at the push of a button. You just select the desired coverage criteria and TASMO searches for the test cases for you. TASMO generates a minimum number of test cases automatically that lead to a maximum structural coverage of your Simulink model, Stateflow model or TargetLink model.The generated test cases can also be used for back-to-back regression tests.

TPT Workflow

Test execution: Run it.

You don’t have to care about the details of test execution. It is as simple as pushing a button. TPT automatically generates a test harness model which contains a copy of your Simulink or TargetLink model to be tested and the actual TPT test driver that does all the work for you. TPT starts and controls the entire test execution remotely.

Compile before run.

To speed up test execution Simulink models can also be automatically compiled to C-code before test execution. This option can significantly reduce the test execution time compared to pure Simulink model testing. It also allows the execution of tests on separate machines.

Complex test suites are welcome.

Complex tests or test suites can be executed unattended in batch mode or by using the TPT Jenkins plugin, for example overnight. TPT can also remote control several MATLAB instances in parallel which can tremendously reduce test execution time.

Analysis, analysis, analysis.

After the test execution, TPT starts the test assessment based on the collected data on signals and parameters. Also internal signals, that can been tracked by TPT automatically on request, can be included in those assessments. A report of the results is generated.

MiL-SiL-PiL Back-to-Back tests.

Test cases can be executed with Simulink or TargetLink models running in MiL (Model-in-the-Loop) SiL (Software-in-the-Loop) or PiL (Processor-in-the-Loop) mode. Comparing the behavior between these modes is simple with TPT. Just configure several execution configurations using different simulation modes (MiL, SiL, PiL) and enable and configure the Back-to-Back assessment. TPT will run all tests in the desired modes and compares the results automatically.


Control TPT with the MATLAB Toolbox

You can control TPT from within MATLAB/ Simulink via the MATLAB Toolbox (with TPT 17 or later). You can set up TPT projects for Simulink or TargetLink subsystems, including the following functions:

  • Controlling TPT directly from within Simulink
  • Creation of a TPT project for a selected MATLAB/ Simulink subsystem.
  • Selection of signals in the subsystem that are going to be logged by TPT during the test execution.
  • Opening of an existing TPT project for the selected subsystem.
  • Linking of a MATLAB/ Simulink model to an existing TPT project.
  • Automatic interface import into TPT
  • Set up of Simulink platform in TPT

Watch the tutorial: MATLAB Toolbox & TPT

ISO26262 compliant Model-in-the-Loop testing.

TPT provides you with the test tool that supports you along the (test) road and facilitates the development of a safety-relevant system in accordance with the relevant safety standards. The required qualification of TPT can be easily implemented. For software development, ISO 26262 defines requirements for the various development phases. With TPT you have the test tool that optimally supports you up to ASIL-D. A qualification from TPT to ASIL-D is easy to implement.

Monitor interface signals and internal signals in TPT.

If you need to monitor both interface signals and internal signals, you can log those signal types in TPT, as illustrated in the TPT tutorial below. For Simulink or TargetLink model testing you can configure signals in TPT in a few easy steps. Eventually you will be able to get a detailed overview of all configured signals in your test report. 

Advantages of testing Simulink and TargetLink models with TPT

What is Model-in-Loop Testing? Learn more here.

Related topics.

C code testing with TPT

C/C++ Code Testing

C and C++ code can be easily tested with TPT. Testing C or C++ code is possible for module and integration tests.

TPT testing tool banner

Safety & ISO 26262

The development of safety-relevant systems requires compliance with certain safety standards, such as IEC/EN 61508, DO178, EN50128 or ISO 26262 must be taken into account.

TPT testing tool

TPT Testing Tool

With TPT, you can test ECU software and embedded control systems in all development phases from MiL, SiL, PiL, HiL, ECU testing to vehicle testing.

What's new?