Abstract. In this paper we propose an Hardware-In-the-Loop (HIL) system for industrial drives. The system allows the user to optimize the design of control strategies by emulating complex mechanical applications. In fact, with this approach it is possible to simulate the behavior of the real mechanical system, and therefore to verify a priori the effectiveness of a control strategy and to achieve a rapid prototyping of the mechatronic system. The structure of the system consists of a couple of brushless motor which are connected by a mechanical joint. In one drive the control functions related to a specific application are implemented while the other one is used to replicate the mechanical system model of the application. A modular approach has been selected in order to allow a rapid development of a given application. In particular, a library of components has been implemented both in Simulink and in an IEC61131-3 language.