The paper presents an actuator based on a coil placed in the casing, with specially prepared connection rods. The construction allows installation of the fiber Bragg grating sensors inside the coil. It allows to measure deformation of the composite that is located in the core of the coil. Thanks to the signal generation with use of DASYLab software, it is possible to precisely control the frequency, value of amplitude excitation and to send the signal to the system with use of the measurement card. The main goal of the experiment is to keep constant value of deformation, by means of a feedback loop with use of PID control, and to change the initial conditions of the test by change of the external force. The system is designed to return to the initial settings by appropriate control of the intensity of magnetic field, and thus the deformation of the sample.