A Virtual Instrument for the Measurement of the Characteristics of Magnetic Materials