Vibrating wire apparatus for periodic magnetic structure measurement