Hardware-in-the-Loop, or hardware-software simulation, is an approach to testing the software of electronic systems by connecting them to a simulator of adjacent systems or environments. For example, to work out the control algorithms for a new engine, a special computer is connected to the ECU with an accurate software model of the engine and an accurate simulation of signals from it. For the ECU, this looks like regular work with a real unit.