A computer program product comprising program code embedded in a non-transitory storage medium, which program code, when loaded into a memory of a processing unit of a production machine or machine tool and executed by a microprocessor of the processing unit, causes the processing unit to receive freely selectable parameters or machine-specific parameters, or both, and generate therefrom the control program which
- defines a movement profile with at least one test run for at least one axis of the respective production machine or machine tool;
- produces with the at least one test run an axis excitation of the at least one axis suitable for determining at least one mechatronic characteristic variable of the at least one axis, and
- determines a number of acceleration jumps along a predetermined limited travel distance for the at least one test run;
- wherein the at least one test run comprises the determined number of acceleration jumps and a constant speed travel before and after each acceleration jump.