The invention further provides an algorithm that allows the user to specify parameters such as amplitude level of the driver, and then performs a multi-step frequency sweep to drive the transducer in one of several modes including constant current drive, constant voltage drive and constant power drive.