An electromagnetic method for measuring AC losses in HTS tapes without lock-in amplifier