Input voltage/current measurement