Global control of a noncontact atomic force microcantilever