Method for controlling a common rail injector

The invention relates to a method for controlling a common rail injector. This comprises acquiring a signal (S) of a sensor, which is proportional to a pressure in a valve chamber of the common rail injector, evaluating a change of the signal (S) with time (t) to at least one operational event of the Common -Rail injector to detect, and changing at least one operating variable of the common-rail injector in dependence on the at least one operational event, wherein the at least one operating parameter is selected from an opening duration of a closing time, an opening timing and a closing timing of a switching valve of the Common -Rail injector and out of an opening period of an opening timing and a closing timing of a needle valve of the common rail injector.