Real-time Implementation of Fault Detection and Control Algorithms on Electrical Drives