Measuring open circuit voltage