One does two types of measurements - constant force measurements and constant height measurements
Doing force measurements at constant height can reveal differences in composition of the sample. To give just one example - one can study phase separation occurring in the sample.