Measuring MATLAB Simulink models' worst-case execution time with RapiTime
Determining worst-case execution time (WCET) is a recommended activity for real-time applications developed to comply with safety standards: ISO 26262 (for automotive) and DO-178B/C (for aerospace) guidelines. One popular use case of MATLAB Simulink is to generate real-time applications. To support this, Simulink offers some basic profiling tools. Whilst these do not aim to support the determination of WCET, it is possible to find WCET of code generated by Simulink Embedded Coder using RapiTime. This technical note describes how RapiTime can be integrated with MATLAB Simulink to achieve this level of reporting.