Banner Simulink Testing

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).

The testing workflow for testing Simulink and TargetLink 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.

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.

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.

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.

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.

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.

Advantages of testing Simulink and TargetLink models with TPT.

Related topics.

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. Every piece of C/C++ code — small, big, or even integrated SW builds — can be tested with TPT.

Safety & ISO 26262

More and more electronic systems are being used in safety-critical areas where errors can have catastrophic consequences. To avoid hazards, safety standards such as  ISO 26262 must be taken into account.

TPT Testing Tool

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