The invention relates to an apparatus (1) and a method for driving a
solenoid valve (3), having an evaluation and
control unit (10), a PWM apparatus (20) and a current measuring apparatus (AM), wherein, in normal operation, the evaluation and
control unit (10) generates a PWM
signal (PWM) having a duty ratio (TV) and emits said PWM
signal to a
magnet assembly (3.1) of the
solenoid valve (3) by means of the PWM apparatus (20), wherein the current measuring apparatus (AM) detects a current (I) through the
magnet assembly (3.1) resulting from the PWM
signal (PWM) and reports said current back to the evaluation and
control circuit (10), wherein a current (I) that is above a response threshold of the
magnet assembly (3.1) triggers a switching process of the
solenoid valve (3), and wherein, in test operation, the evaluation and
control circuit (10) generates and emits at least one test PWM signal (TPWM1, TPWM2) having a duty ratio (TV1, TV2) by means of the PWM apparatus (20), said at least one test PWM signal inducing a test current (IT1, IT2) that is below the response threshold through the magnet assembly (3.1), and to a hydraulic assembly having such an apparatus (1) for driving a solenoid valve (3). In this case, in test operation, the evaluation and
control unit (10) generates and emits at least two different test
PWM signals (TPWM1, TPWM2) and detects the resulting test currents (IT1, IT2), wherein the evaluation and control unit (10) derives presently prevailing ambient conditions from the predefined test
PWM signals (TPWM1, TPWM2) and the resulting test currents (IT1, IT2) and, in normal operation, generates and emits a subsequent PWM signal (PWM) based on the presently prevailing ambient conditions, said subsequent PWM signal inducing a current (I) that is above the response threshold, for the purpose of switching the solenoid valve (3).