Prototype for a power quality analyser