Control of flux in magnetic circuits for Barkhausen noise measurements