- This involves compiling and running the source code on the host computer, enabling you to collect data on code coverage and execution times.
- By comparing results from normal and SIL simulations, you can confirm that the model and the generated code are numerically equivalent.
- Here, the source code is cross-compiled and executed on the actual target hardware.
- The setup you create for PIL simulation dictates how the code is compiled and run on the hardware.
- Comparing the results from normal and PIL simulations ensures that the model and the code maintain numerical consistency.
- A real-time virtual environment is set up, involving components like plants, sensors, and actuators, all running on a real-time target computer.
- The control algorithm is executed on an embedded controller, which interacts with the plant model through various input/output channels.
- HIL simulation is particularly useful for testing how your controller reacts to unexpected scenarios and events.