Measuring, processing, and analyzing hysteresis data