A simple technique for measuring the relative extension or response of a piezoelectric tube as a function of frequency is presented. The method clearly identifies resonant modes of the system. This information is useful in tuning feedback control systems in scanned probe microscopes.