measuring electrical characteristics