A Measurement Apparatus for On-Line Diagnosis of Electrical Systems