using electrical or magnetic means for both measurements