The problem of control of the number of cycle slippings of an electric machine rotor by means of an external moment is considered by the example of a simple mathematical model. The speed-gradient method with the objective function determined by the oscillation energy function is applied to solve this problem. The use of quite a small control is a feature of this approach, which helps to save energy. We have developed an algorithm to control oscillations of an electric machine rotor, so that the rotor performs a predetermined number of cycle slippings. The simulation results illustrate the efficiency of the suggested algorithm.