Patent ID: 8774973

Claim:
A device for controlling an electromagnetic valve, comprising: an input device adapted to write a multitude of measured values for at least one of (a) a current and (b) a voltage into a first memory to represent a characteristic; an analysis device adapted to perform (a) a state analysis and (b) a change-over-time analysis; and an evaluation device adapted to correct at least one control variable characterizing a control on the basis of (a) the state analysis via a state machine calculation and (b) the change-over-time analysis, and write values of the at least one control variable into a second memory; and a control device adapted to an output stage on the basis of the at least one control variable, wherein the control device is adapted to control the electromagnetic valve to dose fluid used in connection with an exhaust-gas aftertreatment in an internal combustion engine based on the corrected at least one control variable.