measurement of current and voltage