This paper deals with a theoretical and experimental study about the motion measurement in ballscrews for avionic system. The measurement system is based on a magnetic sensor optimized by a suitable finite element analysis. In particular the sensor performances are simulated for different configurations in order to maximize the sensitivity. The efficiency and the reliability of the optimal configuration found have been validated by means of a dedicated experiment for the simulation of the operative mode of the ballscrews in the avionic environment.