The present invention pertains to a device for controlling a valve of an
internal combustion engine, the device comprising an electromechanical
actuator equipped with a magnet, and a processor controlling a defluxing
current generating a magnetic field opposed to the magnetic field of the
magnet, characterized in that it comprises means for controlling this
defluxing current as a function of the open time of the valve and means
for determining the rapidity of opening and/or closing of the valve from
this open time, the controlled defluxing current ensuring the determined
rapidity of opening and/or closing.