A Pulse-type Hysteresis Loop Tracer For Rare Earth Based Permanent Magnets