measuring output voltage