This paper describes the optimal design of a miniature fiber-optic linear displacement sensor. The sensor consists of a triangular reflective grating and. Based on the special virtual instrument development tool LabVIEW, the data acquisition card and stepping motor are used to develop the optical fiber displacement measurement system, the system hardware platform composition and software design method are explained, respectively, the design principle. displacement, pressure, temperature and electric field. Recently, high precision fiber displacement sensors have received significant attention for applications ranging from industrial to medical fields that include reverse engineering and micro-assembly (Laurence et al.