Linear electromagnetic actuators realizing periodic oscillations have gained significant importance in the compressor and pump technology. This is due to the need of compact drive units to increase the power density of modern pumps and compressors. This work presents an energy-based control approach for harmonic oscillations of linear electromagnetic drives and analyzes the functionality and performance of the oscillation control for periodic actuator movements up to 250 Hz. To obtain a more robust control behavior, the control structure needs to be decoupled, with an amplitude and phase component using a periodical harmonic carrier function. This approach avoids a standstill of the actuator by constantly triggering an oscillation at the fundamental frequency of the mechanical system. The presented control approach is especially beneficial for oscillatory systems which need to adapt their oscillation frequency to mechanical loads.