Torsional vibrations, resulting from the interaction between the engine, transmission, and other components, can lead to reduced driveline performance, increased fatigue, and compromised vehicle reliability. Thus, understanding and effectively managing these vibrations are crucial for ensuring optimal truck operation and safety. This thesis investigates the phenomenon of torsional vibrations in trucks and proposes an algorithm-based approach for detecting natural frequencies and controlling vibrations along the driveline.