Model / Software in-the-Loop Development and Test

The initial phase in designing and developing embedded software for an ECU typically begins within a model-based development environment. Depending on the specific application, the algorithm’s performance can be evaluated in a closed-loop simulation using a virtual model of the vehicle or the relevant subsystem being controlled. This type of testing, which focuses on validating control logic, is generally referred to as Model-in-the-Loop (MIL) simulation.

Once the control system’s performance has been verified, the process moves to Software-in-the-Loop (SIL) testing. This stage involves validating the embedded code generated from the designed algorithm.

The term plant simulation encompasses all elements required to test either the ECU control logic (MIL) or the embedded software (SIL) under development. For instance, the plant model includes simulations of all ECUs connected to the ECU under test, ensuring comprehensive coverage of data exchange across the network.

The figure below illustrates and example of model framework execution for Model/Software in the Loop.