A Digital-Signal-Processor-Based Measurement System for On-Line Fault Detection