Software-based ohmmeters