Hardware-in-the-loop (HIL) simulation is a technique for validating your control algorithm, running on an intended target controller, by creating a virtual real-time environment that represents your physical system to control. HIL helps to test the behavior of your control algorithms without physical prototypes.
With this approach, HIL simulation can eliminate costly iterations in hardware fabrication.
HIL simulation is especially useful when testing your control algorithm on the real physical system is costly or dangerous. HIL simulation is widely used in the automotive, aerospace and defense, and industrial automation and machinery industries to test embedded designs. HIL is also being adopted in medical devices, communications, semiconductors, and other industries.
Common HIL simulation examples include:
You can use Simulink Real-Time™ and Speedgoat target hardware to perform real-time simulation and testing. Engineers can start with desktop simulation using MATLAB® and Simulink® and then design, build, and test the real-time application. Using Simscape™, you can build physical models of your plant and then perform HIL simulation using Simulink Real-Time and Speedgoat target hardware.