Phases of model-based development

There are typically three phases in the model-based development process:

      Software-in-the-Loop (SIL): The plant and controller are modeled and simulated on the host computer

      Processor-in-the-Loop (PIL): The controller algorithm is automatically compiled, linked, and downloaded to the target device for execution and testing

      Hardware-in-the-Loop (HIL): Plant hardware, sensors, and actuators function as the interface between the plant simulation and the code running on the target

You can generate code at any point in the process to continuously test the validity of your algorithms.