1. A generator for exciting a piezoelectric transducer, the generator comprising: at least one digital processor unit configured to operate at least in an iterative operation stage comprising more than two successive iterations, each iteration of the more than two successive iterations comprising exciting the transducer at a plurality of frequencies in a frequency band about a set-point frequency; during transducer excitation, acquiring one or more values related to at least one electrical magnitude associated with the excitation of the transducer for a plurality of frequencies in the frequency band; and analyzing the values acquired to determine a new set-point frequency for a subsequent iteration.