Implementation of a reconfigurable hard real-time control system for mechatronic and automotive applications