Hardware in The Loop
Hardware in The Loop
Hardware in The Loop
1. Introduction
HIL Testing
HIL simulation will also allow tests that would normally destroy or damage
the real machine. Testing beyond the normal range of operation can reveal if
the control system can safely operate the machine. This is closely related to
failure model and effects analysis. With HIL simulation, the correct action of
a control system to various failure modes can effectively be tested. This
makes HIL simulation and effective technique to increase the safety of
machines and systems.
3. HIL Simulator
PC based
The HIL simulator is generally a PC computer with a Windows or Linux
operating system. On this PC a simulation environment is installed, which is
used to run the plant model. The connection with the control system is
provided by IO which is connected with the fieldbus of the controller. The
simulation environment provides the proper communication between the
plant model and the IO.
Use HIL simulation to test the design of your controller when you are
performing Model-Based Design (MBD). The figure shows where HIL
simulation fits into the MBD design-to-realization workflow.
Automotive examples
Embedded Control Systems
Testing Embedded Control Systems
System Level Testing
What if the DC Motor is not available yet? What if test failures could
damage the DC Motor?
What if the DC Motor is very expensive (capital, maintenance, operation,
facilities)?
What if DC Motor conditions are not repeatable?
What if there are numerous variations of the DC Motor?
Component Level Testing
What is a Model?
System Modeling Tools
The reason the use of a HIL process is becoming more prevalent in all industries is driven
by two major factors: time to market and complexity.
As systems are getting more and more complex and time to market for a new product is
reducing rapidly, HIL testing is a nice way to directly evaluate a system at component level
by giving it input of all the possible situations it can face and then analyzing the
performance.
A typical HiL system comprises of two components
1. Function tests are possible at an early development stage, even before all
parts are available in reality.
2. Laboratory tests reduce time and cost and take place under controlled
conditions.