Performing a resistance measurement