Measuring the properties of a Diode.