The design of a closed loop linear motor system